diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-11-25 00:06:06 +0100 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-11-27 14:24:45 -0800 |
| commit | aa514a297a0c175239f24a2e582ebd37f0727494 (patch) | |
| tree | 3160bb1bab1ec37135419c6cfc8e3158fbd4e428 | |
| parent | 6fb3acdebf65a72df0a95f9fd2c901ff2bc9a3a2 (diff) | |
| download | tip-aa514a297a0c175239f24a2e582ebd37f0727494.tar.gz | |
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>
| -rw-r--r-- | init/calibrate.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/init/calibrate.c b/init/calibrate.c index 09c2e61021105e..63be4c65bc52a9 100644 --- a/init/calibrate.c +++ b/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; |
