mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] Nuke a few duplicate includes
@ 2008-01-02  2:39 Jesper Juhl
  2008-01-02  2:44 ` [PATCH 1/3] Nuke duplicate include from printk.c Jesper Juhl
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jesper Juhl @ 2008-01-02  2:39 UTC (permalink / raw)
  To: LKML; +Cc: Andrew Morton, Jesper Juhl

Including the same header twice (or more) in a .c file, outside any #ifdef's 
and whatnot,  serves no purpose except generating more work for the 
compiler, so here are 3 patches that get rid of some pointless duplicate 
includes.

Kind regards,
  Jesper Juhl <jesper.juhl@gmail.com>



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

* [PATCH 1/3] Nuke duplicate include from printk.c
  2008-01-02  2:39 [PATCH 0/3] Nuke a few duplicate includes Jesper Juhl
@ 2008-01-02  2:44 ` Jesper Juhl
  2008-01-02  2:45 ` [PATCH 2/3] Nuke a duplicate include from profile.c Jesper Juhl
  2008-01-02  2:46 ` [PATCH 3/3] Nuke duplicate header from sysctl.c Jesper Juhl
  2 siblings, 0 replies; 4+ messages in thread
From: Jesper Juhl @ 2008-01-02  2:44 UTC (permalink / raw)
  To: LKML; +Cc: Andrew Morton, Jesper Juhl

From: Jesper Juhl <jesper.juhl@gmail.com>


Remove the duplicate inclusion of linux/jiffies.h from kernel/printk.c

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---

 printk.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/printk.c b/kernel/printk.c
index 89011bf..b4bca0d 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -32,7 +32,6 @@
 #include <linux/security.h>
 #include <linux/bootmem.h>
 #include <linux/syscalls.h>
-#include <linux/jiffies.h>
 
 #include <asm/uaccess.h>
 




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

* [PATCH 2/3] Nuke a duplicate include from profile.c
  2008-01-02  2:39 [PATCH 0/3] Nuke a few duplicate includes Jesper Juhl
  2008-01-02  2:44 ` [PATCH 1/3] Nuke duplicate include from printk.c Jesper Juhl
@ 2008-01-02  2:45 ` Jesper Juhl
  2008-01-02  2:46 ` [PATCH 3/3] Nuke duplicate header from sysctl.c Jesper Juhl
  2 siblings, 0 replies; 4+ messages in thread
From: Jesper Juhl @ 2008-01-02  2:45 UTC (permalink / raw)
  To: LKML; +Cc: Andrew Morton, Jesper Juhl

From: Jesper Juhl <jesper.juhl@gmail.com>

Remove duplicate inclusion of linux/profile.h from kernel/profile.c

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---

 profile.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/profile.c b/kernel/profile.c
index 5e95330..ffaebea 100644
--- a/kernel/profile.c
+++ b/kernel/profile.c
@@ -20,7 +20,6 @@
 #include <linux/mm.h>
 #include <linux/cpumask.h>
 #include <linux/cpu.h>
-#include <linux/profile.h>
 #include <linux/highmem.h>
 #include <linux/mutex.h>
 #include <asm/sections.h>





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

* [PATCH 3/3] Nuke duplicate header from sysctl.c
  2008-01-02  2:39 [PATCH 0/3] Nuke a few duplicate includes Jesper Juhl
  2008-01-02  2:44 ` [PATCH 1/3] Nuke duplicate include from printk.c Jesper Juhl
  2008-01-02  2:45 ` [PATCH 2/3] Nuke a duplicate include from profile.c Jesper Juhl
@ 2008-01-02  2:46 ` Jesper Juhl
  2 siblings, 0 replies; 4+ messages in thread
From: Jesper Juhl @ 2008-01-02  2:46 UTC (permalink / raw)
  To: LKML; +Cc: Andrew Morton, Jesper Juhl

From: Jesper Juhl <jesper.juhl@gmail.com>


Don't include linux/security.h twice in kernel/sysctl.c

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---

 sysctl.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index c68f68d..01b12c3 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -37,7 +37,6 @@
 #include <linux/highuid.h>
 #include <linux/writeback.h>
 #include <linux/hugetlb.h>
-#include <linux/security.h>
 #include <linux/initrd.h>
 #include <linux/times.h>
 #include <linux/limits.h>

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

end of thread, other threads:[~2008-01-02  2:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-02  2:39 [PATCH 0/3] Nuke a few duplicate includes Jesper Juhl
2008-01-02  2:44 ` [PATCH 1/3] Nuke duplicate include from printk.c Jesper Juhl
2008-01-02  2:45 ` [PATCH 2/3] Nuke a duplicate include from profile.c Jesper Juhl
2008-01-02  2:46 ` [PATCH 3/3] Nuke duplicate header from sysctl.c Jesper Juhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome