Skip to content

Commit 6d96cef

Browse files
andy-shevrafaeljw
authored andcommitted
cpuidle: Update header inclusion
While cleaning up some headers, I got a build error on this file: drivers/cpuidle/poll_state.c:52:2: error: call to undeclared library function 'snprintf' with type 'int (char *restrict, unsigned long, const char *restrict, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Update header inclusions to follow IWYU (Include What You Use) principle. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20251124205752.1328701-1-andriy.shevchenko@linux.intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 15bfdad commit 6d96cef

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/cpuidle/poll_state.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
*/
55

66
#include <linux/cpuidle.h>
7+
#include <linux/export.h>
8+
#include <linux/irqflags.h>
79
#include <linux/sched.h>
810
#include <linux/sched/clock.h>
911
#include <linux/sched/idle.h>
12+
#include <linux/sprintf.h>
13+
#include <linux/types.h>
1014

1115
#define POLL_IDLE_RELAX_COUNT 200
1216

0 commit comments

Comments
 (0)