[PATCH 0/6] Cleanup cpumask.h inclusion in core headers

From: Yury Norov
Date: Mon May 27 2024 - 20:57:06 EST


Many core headers include linux/cpumask.h for nothing, and some others
include it just for types. We already have nodemask_types.h, and this
series adds cpumask_types.h to optimize core headers inclusion paths.

Interestingly, it doesn't improve on build time for me, but the headers
cleanup work should keep going.

Yury Norov (6):
MAINTAINERS: add linux/nodemask_types.h to BITMAP API
sched: pre-caculate ilog2(TASK_REPORT_MAX)
cpumask: split out include/linux/cpumask_types.h
sched: drop dependency on cpumask.h
cpumask: cleanup core headers inclusion
cpumask: make core headers including cpumask_types.h where possible

Yury Norov (6):
MAINTAINERS: add linux/nodemask_types.h to BITMAP API
sched: pre-caculate ilog2(TASK_REPORT_MAX)
cpumask: split out include/linux/cpumask_types.h
sched: drop dependency on cpumask.h
cpumask: cleanup core headers inclusion
cpumask: make core headers including cpumask_types.h where possible

MAINTAINERS | 2 +
include/linux/cacheinfo.h | 2 +-
include/linux/cgroup.h | 1 -
include/linux/clockchips.h | 2 +-
include/linux/cpu.h | 1 -
include/linux/cpu_cooling.h | 1 -
include/linux/cpu_rmap.h | 2 +-
include/linux/cpumask.h | 56 +----------------
include/linux/cpumask_types.h | 66 ++++++++++++++++++++
include/linux/interrupt.h | 2 +-
include/linux/irqchip/irq-partition-percpu.h | 2 +-
include/linux/kernel_stat.h | 1 -
include/linux/msi.h | 2 +-
include/linux/node.h | 1 -
include/linux/percpu.h | 1 -
include/linux/pm_domain.h | 2 +-
include/linux/profile.h | 1 -
include/linux/rcupdate.h | 1 -
include/linux/sched.h | 7 ++-
include/linux/seq_file.h | 1 -
include/linux/stop_machine.h | 2 +-
include/linux/torture.h | 2 +-
include/linux/tracepoint.h | 1 -
include/linux/workqueue.h | 2 +-
24 files changed, 83 insertions(+), 78 deletions(-)
create mode 100644 include/linux/cpumask_types.h

--
2.40.1