Skip to content

Commit aa514a2

Browse files
andy-shevakpm00
authored andcommitted
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>
1 parent 6fb3acd commit aa514a2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

init/calibrate.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
55
* Copyright (C) 1991, 1992 Linus Torvalds
66
*/
77

8-
#include <linux/jiffies.h>
98
#include <linux/delay.h>
109
#include <linux/init.h>
11-
#include <linux/timex.h>
12-
#include <linux/smp.h>
10+
#include <linux/jiffies.h>
11+
#include <linux/kstrtox.h>
1312
#include <linux/percpu.h>
13+
#include <linux/printk.h>
14+
#include <linux/smp.h>
15+
#include <linux/stddef.h>
16+
#include <linux/timex.h>
1417

1518
unsigned long lpj_fine;
1619
unsigned long preset_lpj;

0 commit comments

Comments
 (0)