From: Andy Shevchenko Date: Mon, 24 Nov 2025 20:57:52 +0000 (+0100) Subject: cpuidle: Update header inclusion X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d96ceff9aeb7e7a1713faaccf472f363cc6d48f;p=thirdparty%2Flinux.git 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 Link: https://patch.msgid.link/20251124205752.1328701-1-andriy.shevchenko@linux.intel.com Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpuidle/poll_state.c b/drivers/cpuidle/poll_state.c index 9b6d90a726019..c7524e4c522a2 100644 --- a/drivers/cpuidle/poll_state.c +++ b/drivers/cpuidle/poll_state.c @@ -4,9 +4,13 @@ */ #include +#include +#include #include #include #include +#include +#include #define POLL_IDLE_RELAX_COUNT 200