]> Git Repo - linux.git/commitdiff
headers: Drop two #included headers from <linux/interrupt.h>
authorRandy Dunlap <[email protected]>
Fri, 16 Feb 2018 00:49:45 +0000 (16:49 -0800)
committerIngo Molnar <[email protected]>
Fri, 16 Feb 2018 07:59:16 +0000 (08:59 +0100)
It seems that <linux/interrupt.h> does not need <linux/linkage.h>
nor <linux/preempt.h>.  8 kernels builds are successful without
these 2 headers (allmodconfig, allyesconfig, allnoconfig, and
tinyconfig on both i386 and x86_64).

<linux/interrupt.h> is #included 3875 times in 4.16-rc1, so this
reduces #include processing of these 2 files by a total of 7750 times.

Since I only tested x86 builds, this needs to be tested on other
$ARCHes as well.

Signed-off-by: Randy Dunlap <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
include/linux/interrupt.h

index 69c238210325e7a894e4577afdf6d2397da433ea..5426627f9c550a048fcfa6b7cfc370c0aecaa594 100644 (file)
@@ -4,9 +4,7 @@
 #define _LINUX_INTERRUPT_H
 
 #include <linux/kernel.h>
-#include <linux/linkage.h>
 #include <linux/bitops.h>
-#include <linux/preempt.h>
 #include <linux/cpumask.h>
 #include <linux/irqreturn.h>
 #include <linux/irqnr.h>
This page took 0.058371 seconds and 4 git commands to generate.