]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
calibrate: update header inclusion
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Nov 2025 23:06:06 +0000 (00:06 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 27 Nov 2025 22:24:45 +0000 (14:24 -0800)
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

index 09c2e61021105e0241020a992a853c1e1328f920..63be4c65bc52a9d5f9ccaf435a85c504b4bd11ca 100644 (file)
@@ -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;