* + calibrate-update-header-inclusion.patch added to mm-nonmm-unstable branch
@ 2025-11-25 17:58 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-11-25 17:58 UTC (permalink / raw)
To: mm-commits, andriy.shevchenko, akpm
The patch titled
Subject: calibrate: update header inclusion
has been added to the -mm mm-nonmm-unstable branch. Its filename is
calibrate-update-header-inclusion.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/calibrate-update-header-inclusion.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: calibrate: update header inclusion
Date: Tue, 25 Nov 2025 00:06:06 +0100
While cleaning up some headers, I got a build error on this file:
init/calibrate.c:20:9: error: call to undeclared function 'kstrtoul'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Update header inclusions to follow IWYU (Include What You Use) principle.
Link: https://lkml.kernel.org/r/20251124230607.1445421-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
init/calibrate.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
--- a/init/calibrate.c~calibrate-update-header-inclusion
+++ a/init/calibrate.c
@@ -5,12 +5,15 @@
* Copyright (C) 1991, 1992 Linus Torvalds
*/
-#include <linux/jiffies.h>
#include <linux/delay.h>
#include <linux/init.h>
-#include <linux/timex.h>
-#include <linux/smp.h>
+#include <linux/jiffies.h>
+#include <linux/kstrtox.h>
#include <linux/percpu.h>
+#include <linux/printk.h>
+#include <linux/smp.h>
+#include <linux/stddef.h>
+#include <linux/timex.h>
unsigned long lpj_fine;
unsigned long preset_lpj;
_
Patches currently in -mm which might be from andriy.shevchenko@linux.intel.com are
calibrate-update-header-inclusion.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-25 17:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-25 17:58 + calibrate-update-header-inclusion.patch added to mm-nonmm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.