Skip to content

Commit 4bd68e4

Browse files
andy-shevYuryNorov
authored andcommitted
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 <andriy.shevchenko@linux.intel.com> Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
1 parent c604cb5 commit 4bd68e4

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

arch/x86/include/asm/cpumask.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#ifndef _ASM_X86_CPUMASK_H
33
#define _ASM_X86_CPUMASK_H
44
#ifndef __ASSEMBLER__
5+
6+
#include <linux/compiler.h>
57
#include <linux/cpumask.h>
68

79
extern void setup_cpu_local_masks(void);

include/linux/cpumask.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
* set of CPUs in a system, one bit position per CPU number. In general,
88
* only nr_cpu_ids (<= NR_CPUS) bits are valid.
99
*/
10-
#include <linux/cleanup.h>
11-
#include <linux/kernel.h>
10+
#include <linux/atomic.h>
1211
#include <linux/bitmap.h>
12+
#include <linux/cleanup.h>
1313
#include <linux/cpumask_types.h>
14-
#include <linux/atomic.h>
15-
#include <linux/bug.h>
1614
#include <linux/gfp_types.h>
1715
#include <linux/numa.h>
16+
#include <linux/threads.h>
17+
#include <linux/types.h>
18+
19+
#include <asm/bug.h>
1820

1921
/**
2022
* cpumask_pr_args - printf args to output a cpumask

0 commit comments

Comments
 (0)