Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

calibrate: update header inclusion

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>

authored by

Andy Shevchenko and committed by
Andrew Morton
aa514a29 6fb3acde

+6 -3
+6 -3
init/calibrate.c
··· 5 5 * Copyright (C) 1991, 1992 Linus Torvalds 6 6 */ 7 7 8 - #include <linux/jiffies.h> 9 8 #include <linux/delay.h> 10 9 #include <linux/init.h> 11 - #include <linux/timex.h> 12 - #include <linux/smp.h> 10 + #include <linux/jiffies.h> 11 + #include <linux/kstrtox.h> 13 12 #include <linux/percpu.h> 13 + #include <linux/printk.h> 14 + #include <linux/smp.h> 15 + #include <linux/stddef.h> 16 + #include <linux/timex.h> 14 17 15 18 unsigned long lpj_fine; 16 19 unsigned long preset_lpj;