From nobody Fri Jul 24 23:30:38 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 869A3313E0D for ; Wed, 22 Jul 2026 06:21:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784701319; cv=none; b=AKgd2GpUZA9GtSBwBlNSkqOoQ/1DD0FrtXzZ9d6bd0n+pvkCvE3uWk9LND6SpdoI2Yk6Itwm8Mz9O0w6NTuyyndl9+cqHuTFI2YbqPTRTgmRLpJuY8qxL7yrYtxC4zxfD8JAR7GkIqYM8BBJwaGd0ExIPoGe6/LYyyC09lciimg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784701319; c=relaxed/simple; bh=9vmNJZZFkISZC2GR/RIFjs6Slmaa8ukC47h6DWfrTPI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Y395m19FFqGmEmTfvxm66vCaCaPOvUbr0O+iSV1Bkt/7srlsrlBxY/ymUUa3dYGH9KpOtcOQ1XDEy4p1BEU1KRlUTmgxKCcrz50kf5004HKN2vG5b5ky0ayIIZrp6/suHeEIB3ZGFiVv/mT1i0uPKoVTxBgu5AOhszuNxYcoS6I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=N4eYmgBb; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="N4eYmgBb" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4954d29264cso21990385e9.2 for ; Tue, 21 Jul 2026 23:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784701316; x=1785306116; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=JI+6SZOz110EzXeab8BODm2e6IeLlRfZpMr1hgn1gtM=; b=N4eYmgBb8DwaNPgT8d99GecNin2TupobYA2oRq16LQuU5UgxAEfh7FIKqG4AfgD1cv dRYW6hDybrwOegEwdrc/AW4uFMSa21r3MauLPz0WRjl5U4BZfafphsN6556CKBARz6ej yRU0e3XF1YikiSowXzzh4zt8vkq/Iejfe+/zVDbkMadi/LMJa6ry/XdhIt/3VPG+qPtk AgsSka6rKkoUYYx94CgJBmjhJZ3Fyqwng8km1A4/BztDHsq8f5HtojK/f6NsUfREm2qT lyx/J5EE+mQt8re7tbKLF0qChffq6z/bRe+3rN7qV2iGbP+7RNwT830KPrgxfwMkIUy0 0UJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784701316; x=1785306116; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=JI+6SZOz110EzXeab8BODm2e6IeLlRfZpMr1hgn1gtM=; b=LHEEbvL1VVoMX1GNv8ZnCEmNcerPngD2+w8wqMmdrgvpiKC8V9ijQwb2PhpoP0Ih0L 86jXcSZHYCCdrlZJTNvx/5fIaIm5BM3h1f5rPkjB1bVf/dN8D2FyBS/WMBLzHhHy9rxS BEmmGnrVOetmkMPadZe7N48APjv9Sv57nk5pXH1lCT+aw8BRUPF0JBGFtbbpijstdl5o eKfnIMbQBLWGwtmUZDxoOS5FcfWJV6zpeQ0yIIiXQccAQaAS2ONtqVdOISeWK6/SANn/ FHIol4WRfJCqG3v9peQaBxmOy6KH/VfP+Dpz1lye2AJqJTMTYdjw3QtY3K+KNi5e3z6t gF4g== X-Forwarded-Encrypted: i=1; AHgh+Rr3dUcYGy2J7nkOWj2u/iCnH4P7X5BFq6Rpy9oNEWS2Odrdwv3s5r2HufxNB7Shric58CORJvnuZxYuEE0=@vger.kernel.org X-Gm-Message-State: AOJu0YxbR7EGKkwJEsYjkpJXvO1BmZIYYRZFe53RN5sA8gHgact4Hinc ZByGBl6OeKXzbS9mIkZMxYHKAcB/6Yyjv/IvC3vCjd3gAkTbC+577Cxz5naBC0PV X-Gm-Gg: AR+sD10dQNpiJP+D3++9iOmw/bRxymDxyADEhGFgQi94eP2eLKLQKh7gIm5pGcQMZYK tihhIJQia8vhtPJcyaq4BHsBDa9WomX/BJRYfiM3rKtngYNnejQTR4bKg6g2CAZmgzQm2n190z0 MR11dYSegSgSD8TurY3t8/DgRl83awyUlSEeU4g/tImluGNgws4NnDzpvYK4aauw5gldZSLqM9j /erqK+OmaN2HSXbGcZqWSIPZoMlLVnbJZpUs3fz8kD1pOpJByT5g94eMHBAKk1FNJGOJUN+aMcv JpDh1Btj2IL8sJ1xp3ukQ7MuYxcPhGmNeVFeDCJe75MmZdWJqYG300dJNPhFeMwOmpPe1e3ycFF PYlJ7xhCQrbQ++lhCwjwu7jotxQUR3mnW757yCfmuV8lSQG6hzJNTyS15xjv29RQ/frAh3aqBRv /J61J97X2d7Q/14fFdzJ2goOeC+FivZPaT38sLzEsKEG86szjwsakk4kXBP1nXYX7RdxCDxgFZ4 zPkb8OkcOmODOC88bYlu1zDfn+CC5kD1D3wa5jbbfwv7GWrvCv4whClKb/8YKycKdgGktuodNyi XrQT6kYFp2yR/Q== X-Received: by 2002:a7b:c344:0:b0:494:282:106c with SMTP id 5b1f17b1804b1-4954a3f5295mr180517995e9.16.1784701315448; Tue, 21 Jul 2026 23:21:55 -0700 (PDT) Received: from localhost.localdomain (dynamic-2a02-3100-ac57-0f01-2d95-8753-45c1-c833.310.pool.telefonica.de. [2a02:3100:ac57:f01:2d95:8753:45c1:c833]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4956b043727sm25845655e9.4.2026.07.21.23.21.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 21 Jul 2026 23:21:54 -0700 (PDT) From: Karl Mehltretter To: Anna-Maria Behnsen , Frederic Weisbecker , Ingo Molnar , Thomas Gleixner Cc: Karl Mehltretter , linux-kernel@vger.kernel.org Subject: [PATCH] tick: Include ktime.h and jiffies.h in linux/tick.h Date: Wed, 22 Jul 2026 08:21:41 +0200 Message-Id: <20260722062141.19671-1-kmehltretter@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The !CONFIG_NO_HZ_COMMON stubs use ktime_add(), ktime_get() and TICK_NSEC, but tick.h includes neither nor . Most configurations build only because those declarations arrive transitively. Commit 6440966067dc ("cpuset: Remove cpuset_cpu_is_isolated()") removed from . The include chain had been satisfying these declarations before was parsed. Commit 8aa76aa41589 ("ring-buffer: Use a housekeeping CPU to wake up waiters") then added to ring_buffer.c ahead of any header which provides them. Neither change is wrong on its own: the failure requires both and appeared in v7.0. ARM rpc_defconfig + CONFIG_FUNCTION_TRACER fails to build: $ make ARCH=3Darm rpc_defconfig $ ./scripts/config -e FTRACE -e FUNCTION_TRACER $ make ARCH=3Darm olddefconfig $ make ARCH=3Darm kernel/trace/ring_buffer.o In file included from include/linux/sched/isolation.h:6, from kernel/trace/ring_buffer.c:8: include/linux/tick.h: In function 'tick_nohz_get_next_hrtimer': include/linux/tick.h:156:9: error: implicit declaration of function 'ktime_add'; did you mean 'size_add'? include/linux/tick.h:156:19: error: implicit declaration of function 'ktime_get'; did you mean 'time_init'? include/linux/tick.h:156:32: error: 'TICK_NSEC' undeclared Include the headers the file actually uses. Fixes: 8aa76aa41589 ("ring-buffer: Use a housekeeping CPU to wake up waiter= s") Assisted-by: Codex:gpt-5.6-sol Signed-off-by: Karl Mehltretter --- include/linux/tick.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/tick.h b/include/linux/tick.h index 1cf4651f09ad..47750ccd1314 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h @@ -7,6 +7,8 @@ =20 #include #include +#include +#include #include #include #include --=20 2.53.0