linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] headers: linux/mutex.h: drop linkage.h
@ 2018-02-25  5:22 Randy Dunlap
  2018-02-25 14:06 ` [tip:locking/core] mutex: Drop linkage.h from mutex.h tip-bot for Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2018-02-25  5:22 UTC (permalink / raw)
  To: LKML, X86 ML

From: Randy Dunlap <rdunlap@infradead.org>

<linux/mutex.h> does not use nor need <linux/linkage.h>, so drop that
one header file from mutex.h.

<linux/mutex.h> is currently #included in around 1250 C source files
(oops, I didn't count other header files that #include it), making it
the 27th most-used header file.

Build tested on i386 and x86_64 * (allnoconfig, tiny.config, defconfig,
allyesconfig, and allmodconfig) and x64_64 allmodconfig + SMP=disabled.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Ingo/Thomas, please include this in tip.git for more thorough testing.

 include/linux/mutex.h |    1 -
 1 file changed, 1 deletion(-)

--- linux.orig/include/linux/mutex.h
+++ linux.next/include/linux/mutex.h
@@ -14,7 +14,6 @@
 #include <asm/current.h>
 #include <linux/list.h>
 #include <linux/spinlock_types.h>
-#include <linux/linkage.h>
 #include <linux/lockdep.h>
 #include <linux/atomic.h>
 #include <asm/processor.h>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip:locking/core] mutex: Drop linkage.h from mutex.h
  2018-02-25  5:22 [PATCH] headers: linux/mutex.h: drop linkage.h Randy Dunlap
@ 2018-02-25 14:06 ` tip-bot for Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Randy Dunlap @ 2018-02-25 14:06 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: rdunlap, linux-kernel, mingo, hpa, tglx

Commit-ID:  6ce5ae7977c89f2a09092954396a66c90e8213f2
Gitweb:     https://git.kernel.org/tip/6ce5ae7977c89f2a09092954396a66c90e8213f2
Author:     Randy Dunlap <rdunlap@infradead.org>
AuthorDate: Sat, 24 Feb 2018 21:22:12 -0800
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Sun, 25 Feb 2018 15:00:46 +0100

mutex: Drop linkage.h from mutex.h

<linux/mutex.h> does not use nor need <linux/linkage.h>, so drop that
one header file from mutex.h.

<linux/mutex.h> is currently #included in around 1250 C source files
(oops, I didn't count other header files that #include it), making it
the 27th most-used header file.

Build tested on i386 and x86_64 * (allnoconfig, tiny.config, defconfig,
allyesconfig, and allmodconfig) and x64_64 allmodconfig + SMP=disabled.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/582b3892-4e4c-06b2-a368-5c2d439de7fc@infradead.org

---
 include/linux/mutex.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/mutex.h b/include/linux/mutex.h
index f25c13423bd4..9b7fe56692bd 100644
--- a/include/linux/mutex.h
+++ b/include/linux/mutex.h
@@ -14,7 +14,6 @@
 #include <asm/current.h>
 #include <linux/list.h>
 #include <linux/spinlock_types.h>
-#include <linux/linkage.h>
 #include <linux/lockdep.h>
 #include <linux/atomic.h>
 #include <asm/processor.h>

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-25 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-25  5:22 [PATCH] headers: linux/mutex.h: drop linkage.h Randy Dunlap
2018-02-25 14:06 ` [tip:locking/core] mutex: Drop linkage.h from mutex.h tip-bot for Randy Dunlap

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).