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

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>

authored by

Andy Shevchenko and committed by
Rafael J. Wysocki
6d96ceff 15bfdadd

+4
+4
drivers/cpuidle/poll_state.c
··· 4 4 */ 5 5 6 6 #include <linux/cpuidle.h> 7 + #include <linux/export.h> 8 + #include <linux/irqflags.h> 7 9 #include <linux/sched.h> 8 10 #include <linux/sched/clock.h> 9 11 #include <linux/sched/idle.h> 12 + #include <linux/sprintf.h> 13 + #include <linux/types.h> 10 14 11 15 #define POLL_IDLE_RELAX_COUNT 200 12 16