From: Andy Shevchenko Date: Mon, 24 Nov 2025 20:39:59 +0000 (+0100) Subject: cpumask: Don't use "proxy" headers X-Git-Tag: v6.19-rc1~87^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4bd68e475300bc97b33a7f1ef9bd112970018789;p=thirdparty%2Fkernel%2Fstable.git cpumask: Don't use "proxy" headers Update header inclusions to follow IWYU (Include What You Use) principle. Note that kernel.h is discouraged to be included as it's written at the top of that file. Signed-off-by: Andy Shevchenko Signed-off-by: Yury Norov (NVIDIA) --- diff --git a/arch/x86/include/asm/cpumask.h b/arch/x86/include/asm/cpumask.h index 70f6b60ad67b9..9df9e9cde670b 100644 --- a/arch/x86/include/asm/cpumask.h +++ b/arch/x86/include/asm/cpumask.h @@ -2,6 +2,8 @@ #ifndef _ASM_X86_CPUMASK_H #define _ASM_X86_CPUMASK_H #ifndef __ASSEMBLER__ + +#include #include extern void setup_cpu_local_masks(void); diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index ff8f41ab7ce63..df89eedc6e91f 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -7,14 +7,16 @@ * set of CPUs in a system, one bit position per CPU number. In general, * only nr_cpu_ids (<= NR_CPUS) bits are valid. */ -#include -#include +#include #include +#include #include -#include -#include #include #include +#include +#include + +#include /** * cpumask_pr_args - printf args to output a cpumask