linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yury Norov <yury.norov@gmail.com>
To: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org,
	linux-mm@kvack.org, rcu@vger.kernel.org,
	linux-trace-kernel@vger.kernel.org
Cc: Yury Norov <yury.norov@gmail.com>,
	"Paul E. McKenney" <paulmck@kernel.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Amit Daniel Kachhap <amit.kachhap@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Anna-Maria Behnsen <anna-maria@linutronix.de>,
	Christoph Lameter <cl@linux.com>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	Dennis Zhou <dennis@kernel.org>,
	Frederic Weisbecker <frederic@kernel.org>,
	Johannes Weiner <hannes@cmpxchg.org>,
	Juri Lelli <juri.lelli@redhat.com>,
	Kees Cook <keescook@chromium.org>,
	Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Tejun Heo <tj@kernel.org>, Thomas Gleixner <tglx@linutronix.de>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Vincent Guittot <vincent.guittot@linaro.org>,
	Viresh Kumar <viresh.kumar@linaro.org>,
	Zefan Li <lizefan.x@bytedance.com>
Subject: [PATCH 0/6] Cleanup cpumask.h inclusion in core headers
Date: Mon, 27 May 2024 17:56:42 -0700	[thread overview]
Message-ID: <20240528005648.182376-1-yury.norov@gmail.com> (raw)

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


             reply	other threads:[~2024-05-28  0:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-28  0:56 Yury Norov [this message]
2024-05-28  0:56 ` [PATCH 1/6] MAINTAINERS: add linux/nodemask_types.h to BITMAP API Yury Norov
2024-05-28  0:56 ` [PATCH 2/6] sched: avoid using ilog2() in sched.h Yury Norov
2024-05-28  0:56 ` [PATCH 3/6] cpumask: split out include/linux/cpumask_types.h Yury Norov
2024-05-28  0:56 ` [PATCH 4/6] sched: drop sched.h dependency on cpumask Yury Norov
2024-05-28  0:56 ` [PATCH 5/6] cpumask: cleanup core headers inclusion Yury Norov
2024-05-28  0:56 ` [PATCH 6/6] cpumask: make core headers including cpumask_types.h where possible Yury Norov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240528005648.182376-1-yury.norov@gmail.com \
    --to=yury.norov@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=amit.kachhap@gmail.com \
    --cc=anna-maria@linutronix.de \
    --cc=cgroups@vger.kernel.org \
    --cc=cl@linux.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=dennis@kernel.org \
    --cc=frederic@kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=juri.lelli@redhat.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=lizefan.x@bytedance.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=paulmck@kernel.org \
    --cc=peterz@infradead.org \
    --cc=rafael@kernel.org \
    --cc=rcu@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=tj@kernel.org \
    --cc=ulf.hansson@linaro.org \
    --cc=vincent.guittot@linaro.org \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).