linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/14] arch/arm: Removing undead ifdef __ASSEMBLY__
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
@ 2010-09-06 14:35 ` Christian Dietrich
  2010-09-06 14:36 ` [PATCH 02/14] arch/h8300: Removing dead ifdef __H8300_TLB_H__ Christian Dietrich
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:35 UTC (permalink / raw)
  To: Lennert Buytenhek, Russell King, linux-arm-kernel, linux-kernel; +Cc: vamos-dev

The __ASSEMBLY__ ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/arm/mach-ixp23xx/include/mach/platform.h |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-ixp23xx/include/mach/platform.h b/arch/arm/mach-ixp23xx/include/mach/platform.h
index db9d941..9f05ea4 100644
--- a/arch/arm/mach-ixp23xx/include/mach/platform.h
+++ b/arch/arm/mach-ixp23xx/include/mach/platform.h
@@ -43,7 +43,6 @@ extern struct sys_timer ixp23xx_timer;
 
 #define IXP23XX_UART_XTAL		14745600
 
-#ifndef __ASSEMBLY__
 /*
  * Is system memory on the XSI or CPP bus?
  */
@@ -51,7 +50,5 @@ static inline unsigned ixp23xx_cpp_boot(void)
 {
 	return (*IXP23XX_EXP_CFG0 & IXP23XX_EXP_CFG0_XSI_NOT_PRES);
 }
-#endif
-
 
 #endif
-- 
1.7.0.4


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

* [PATCH 02/14] arch/h8300: Removing dead ifdef __H8300_TLB_H__
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
  2010-09-06 14:35 ` [PATCH 01/14] arch/arm: Removing undead ifdef __ASSEMBLY__ Christian Dietrich
@ 2010-09-06 14:36 ` Christian Dietrich
  2010-09-06 18:32   ` Andreas Schwab
  2010-09-06 14:36 ` [PATCH 03/14] arch/parisc: Removing undead ifdef CONFIG_PA20 Christian Dietrich
                   ` (11 subsequent siblings)
  13 siblings, 1 reply; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:36 UTC (permalink / raw)
  To: Yoshinori Sato, linux-kernel; +Cc: vamos-dev

The nested __H8300_TLB_H__ include guard isn't necessary at this point,
because the symbol is always defined at this point and the block
content will always be removed.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/h8300/include/asm/tlb.h |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/arch/h8300/include/asm/tlb.h b/arch/h8300/include/asm/tlb.h
index 3dea80a..6339a02 100644
--- a/arch/h8300/include/asm/tlb.h
+++ b/arch/h8300/include/asm/tlb.h
@@ -7,17 +7,4 @@
 
 #define tlb_flush(tlb)	do { } while(0)
 
-/* 
-  include/asm-h8300/tlb.h 
-*/
-
-#ifndef __H8300_TLB_H__
-#define __H8300_TLB_H__
-
-#define tlb_flush(tlb)	do { } while(0)
-
-#include <asm-generic/tlb.h>
-
-#endif
-
 #endif
-- 
1.7.0.4


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

* [PATCH 03/14] arch/parisc: Removing undead ifdef CONFIG_PA20
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
  2010-09-06 14:35 ` [PATCH 01/14] arch/arm: Removing undead ifdef __ASSEMBLY__ Christian Dietrich
  2010-09-06 14:36 ` [PATCH 02/14] arch/h8300: Removing dead ifdef __H8300_TLB_H__ Christian Dietrich
@ 2010-09-06 14:36 ` Christian Dietrich
  2010-09-08 21:18   ` Kyle McMartin
  2010-09-06 14:36 ` [PATCH 04/14] arch/{s390,powerpc}: Removing undead ifdef __KERNEL__ Christian Dietrich
                   ` (10 subsequent siblings)
  13 siblings, 1 reply; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:36 UTC (permalink / raw)
  To: Kyle McMartin, Helge Deller, James E.J. Bottomley, Akinobu Mita,
	linux-parisc, linux-kernel
  Cc: vamos-dev

The CONFIG_PA20 ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/parisc/kernel/unaligned.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/parisc/kernel/unaligned.c b/arch/parisc/kernel/unaligned.c
index 92d977b..234e368 100644
--- a/arch/parisc/kernel/unaligned.c
+++ b/arch/parisc/kernel/unaligned.c
@@ -619,15 +619,12 @@ void handle_unaligned(struct pt_regs *regs)
 		flop=1;
 		ret = emulate_std(regs, R2(regs->iir),1);
 		break;
-
-#ifdef CONFIG_PA20
 	case OPCODE_LDD_L:
 		ret = emulate_ldd(regs, R2(regs->iir),0);
 		break;
 	case OPCODE_STD_L:
 		ret = emulate_std(regs, R2(regs->iir),0);
 		break;
-#endif
 	}
 #endif
 	switch (regs->iir & OPCODE3_MASK)
-- 
1.7.0.4


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

* [PATCH 04/14] arch/{s390,powerpc}: Removing undead ifdef __KERNEL__
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
                   ` (2 preceding siblings ...)
  2010-09-06 14:36 ` [PATCH 03/14] arch/parisc: Removing undead ifdef CONFIG_PA20 Christian Dietrich
@ 2010-09-06 14:36 ` Christian Dietrich
  2010-09-06 14:36 ` [PATCH 05/14] arch/x86: Removing undead ifdef ACPI/X86_IO_ACPI Christian Dietrich
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:36 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Paul Mackerras, Alexander Graf, K.Prasad,
	Dave Kleikamp, Martin Schwidefsky, Heiko Carstens, linux390,
	linuxppc-dev, linux-kernel, linux-s390
  Cc: vamos-dev

The __KERNEL__ ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/powerpc/include/asm/processor.h     |    2 --
 arch/powerpc/include/asm/vdso_datapage.h |    2 --
 arch/s390/include/asm/processor.h        |    4 ----
 3 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h
index 19c05b0..3defd7a 100644
--- a/arch/powerpc/include/asm/processor.h
+++ b/arch/powerpc/include/asm/processor.h
@@ -122,7 +122,6 @@ extern struct task_struct *last_task_used_spe;
 		TASK_UNMAPPED_BASE_USER32 : TASK_UNMAPPED_BASE_USER64 )
 #endif
 
-#ifdef __KERNEL__
 #ifdef __powerpc64__
 
 #define STACK_TOP_USER64 TASK_SIZE_USER64
@@ -139,7 +138,6 @@ extern struct task_struct *last_task_used_spe;
 #define STACK_TOP_MAX	STACK_TOP
 
 #endif /* __powerpc64__ */
-#endif /* __KERNEL__ */
 
 typedef struct {
 	unsigned long seg;
diff --git a/arch/powerpc/include/asm/vdso_datapage.h b/arch/powerpc/include/asm/vdso_datapage.h
index 08679c5..25e3922 100644
--- a/arch/powerpc/include/asm/vdso_datapage.h
+++ b/arch/powerpc/include/asm/vdso_datapage.h
@@ -116,9 +116,7 @@ struct vdso_data {
 
 #endif /* CONFIG_PPC64 */
 
-#ifdef __KERNEL__
 extern struct vdso_data *vdso_data;
-#endif
 
 #endif /* __ASSEMBLY__ */
 
diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h
index 73e2598..0e2a436 100644
--- a/arch/s390/include/asm/processor.h
+++ b/arch/s390/include/asm/processor.h
@@ -52,8 +52,6 @@ extern int get_cpu_capability(unsigned int *);
 
 #endif /* __s390x__ */
 
-#ifdef __KERNEL__
-
 #ifndef __s390x__
 #define STACK_TOP		(1UL << 31)
 #define STACK_TOP_MAX		(1UL << 31)
@@ -63,8 +61,6 @@ extern int get_cpu_capability(unsigned int *);
 #endif /* __s390x__ */
 
 
-#endif
-
 #define HAVE_ARCH_PICK_MMAP_LAYOUT
 
 typedef struct {
-- 
1.7.0.4


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

* [PATCH 05/14] arch/x86: Removing undead ifdef ACPI/X86_IO_ACPI
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
                   ` (3 preceding siblings ...)
  2010-09-06 14:36 ` [PATCH 04/14] arch/{s390,powerpc}: Removing undead ifdef __KERNEL__ Christian Dietrich
@ 2010-09-06 14:36 ` Christian Dietrich
  2010-09-06 14:57   ` Borislav Petkov
  2010-09-08  8:35   ` [tip:x86/cleanups] x86: Remove unnecessary #ifdef ACPI/X86_IO_ACPI tip-bot for Christian Dietrich
  2010-09-06 14:36 ` [PATCH 06/14] drivers/net: Removing undead ifdef CHELSIO_T1_1G Christian Dietrich
                   ` (8 subsequent siblings)
  13 siblings, 2 replies; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:36 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86,
	Borislav Petkov, linux-kernel
  Cc: vamos-dev

The ACPI/X86_IO_ACPI ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 arch/x86/kernel/early-quirks.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirks.c
index e5cc7e8..e4bd78c 100644
--- a/arch/x86/kernel/early-quirks.c
+++ b/arch/x86/kernel/early-quirks.c
@@ -98,7 +98,6 @@ static void __init nvidia_bugs(int num, int slot, int func)
 }
 
 #if defined(CONFIG_ACPI) && defined(CONFIG_X86_IO_APIC)
-#if defined(CONFIG_ACPI) && defined(CONFIG_X86_IO_APIC)
 static u32 __init ati_ixp4x0_rev(int num, int slot, int func)
 {
 	u32 d;
@@ -116,7 +115,6 @@ static u32 __init ati_ixp4x0_rev(int num, int slot, int func)
 	d &= 0xff;
 	return d;
 }
-#endif
 
 static void __init ati_bugs(int num, int slot, int func)
 {
-- 
1.7.0.4


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

* [PATCH 06/14] drivers/net: Removing undead ifdef CHELSIO_T1_1G
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
                   ` (4 preceding siblings ...)
  2010-09-06 14:36 ` [PATCH 05/14] arch/x86: Removing undead ifdef ACPI/X86_IO_ACPI Christian Dietrich
@ 2010-09-06 14:36 ` Christian Dietrich
  2010-09-07  1:39   ` David Miller
  2010-09-06 14:36 ` [PATCH 07/14] drivers/scsi: Removing undead ifdef __ISAPNP__ Christian Dietrich
                   ` (7 subsequent siblings)
  13 siblings, 1 reply; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:36 UTC (permalink / raw)
  To: David S. Miller, Roland Dreier, Alexey Dobriyan, Joe Perches,
	netdev, linux-kernel
  Cc: vamos-dev

The CHELSIO_T1_1G ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 drivers/net/chelsio/subr.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/net/chelsio/subr.c b/drivers/net/chelsio/subr.c
index 599d178..63ebf76 100644
--- a/drivers/net/chelsio/subr.c
+++ b/drivers/net/chelsio/subr.c
@@ -314,14 +314,12 @@ static int mi1_mdio_write(struct net_device *dev, int phy_addr, int mmd_addr,
 	return 0;
 }
 
-#if defined(CONFIG_CHELSIO_T1_1G)
 static const struct mdio_ops mi1_mdio_ops = {
 	.init = mi1_mdio_init,
 	.read = mi1_mdio_read,
 	.write = mi1_mdio_write,
 	.mode_support = MDIO_SUPPORTS_C22
 };
-#endif
 
 #endif
 
-- 
1.7.0.4


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

* [PATCH 07/14] drivers/scsi: Removing undead ifdef __ISAPNP__
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
                   ` (5 preceding siblings ...)
  2010-09-06 14:36 ` [PATCH 06/14] drivers/net: Removing undead ifdef CHELSIO_T1_1G Christian Dietrich
@ 2010-09-06 14:36 ` Christian Dietrich
  2010-09-06 14:36 ` [PATCH 08/14] drivers/scsi: Removing undead ifdef CONFIG_PCI Christian Dietrich
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:36 UTC (permalink / raw)
  To: Juergen E. Fischer, James E.J. Bottomley, Tejun Heo, linux-scsi,
	linux-kernel
  Cc: vamos-dev

The __ISAPNP__ ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 drivers/scsi/aha152x.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c
index 8eab858..08f59da 100644
--- a/drivers/scsi/aha152x.c
+++ b/drivers/scsi/aha152x.c
@@ -3806,9 +3806,7 @@ static int __init aha152x_init(void)
 #if defined(AHA152X_DEBUG)
 			setup[setup_count].debug       = DEBUG_DEFAULT;
 #endif
-#if defined(__ISAPNP__)
 			pnpdev[setup_count]            = dev;
-#endif
 			printk (KERN_INFO
 				"aha152x: found ISAPnP adapter at io=0x%03x, irq=%d\n",
 				setup[setup_count].io_port, setup[setup_count].irq);
-- 
1.7.0.4


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

* [PATCH 08/14] drivers/scsi: Removing undead ifdef CONFIG_PCI
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
                   ` (6 preceding siblings ...)
  2010-09-06 14:36 ` [PATCH 07/14] drivers/scsi: Removing undead ifdef __ISAPNP__ Christian Dietrich
@ 2010-09-06 14:36 ` Christian Dietrich
  2010-09-06 14:36 ` [PATCH 09/14] drivers/scsi: Removing undead ifdef REAL_DMA Christian Dietrich
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:36 UTC (permalink / raw)
  To: James E.J. Bottomley, linux-scsi, linux-kernel; +Cc: vamos-dev

The CONFIG_PCI ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 drivers/scsi/aic7xxx_old.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/aic7xxx_old.c b/drivers/scsi/aic7xxx_old.c
index 93984c9..c0953be 100644
--- a/drivers/scsi/aic7xxx_old.c
+++ b/drivers/scsi/aic7xxx_old.c
@@ -9655,9 +9655,7 @@ aic7xxx_detect(struct scsi_host_template *template)
           found++;
 	  continue;
 skip_pci_controller:
-#ifdef CONFIG_PCI
 	  pci_release_regions(temp_p->pdev);
-#endif
 	  kfree(temp_p);
         }  /* Found an Adaptec PCI device. */
         else /* Well, we found one, but we couldn't get any memory */
-- 
1.7.0.4


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

* [PATCH 09/14] drivers/scsi: Removing undead ifdef REAL_DMA
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
                   ` (7 preceding siblings ...)
  2010-09-06 14:36 ` [PATCH 08/14] drivers/scsi: Removing undead ifdef CONFIG_PCI Christian Dietrich
@ 2010-09-06 14:36 ` Christian Dietrich
  2010-09-06 14:36 ` [PATCH 10/14] drivers/video: Removing undead ifdef ATAFB_FALCON Christian Dietrich
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:36 UTC (permalink / raw)
  To: James E.J. Bottomley, Tejun Heo, linux-scsi, linux-kernel; +Cc: vamos-dev

The REAL_DMA ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 drivers/scsi/atari_NCR5380.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/drivers/scsi/atari_NCR5380.c b/drivers/scsi/atari_NCR5380.c
index 158ebc3..7edec2d 100644
--- a/drivers/scsi/atari_NCR5380.c
+++ b/drivers/scsi/atari_NCR5380.c
@@ -1942,9 +1942,7 @@ static int NCR5380_transfer_dma(struct Scsi_Host *instance,
 
 	NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(p));
 
-#ifdef REAL_DMA
 	NCR5380_write(MODE_REG, MR_BASE | MR_DMA_MODE | MR_ENABLE_EOP_INTR | MR_MONITOR_BSY);
-#endif /* def REAL_DMA  */
 
 	if (IS_A_TT()) {
 		/* On the Medusa, it is a must to initialize the DMA before
@@ -2101,16 +2099,12 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance)
 						cmd->scsi_done(cmd);
 						/* XXX - need to source or sink data here, as appropriate */
 					} else {
-#ifdef REAL_DMA
 						/* ++roman: When using real DMA,
 						 * information_transfer() should return after
 						 * starting DMA since it has nothing more to
 						 * do.
 						 */
 						return;
-#else
-						cmd->SCp.this_residual -= transfersize - len;
-#endif
 					}
 				} else
 #endif /* defined(REAL_DMA) */
-- 
1.7.0.4


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

* [PATCH 10/14] drivers/video: Removing undead ifdef ATAFB_FALCON
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
                   ` (8 preceding siblings ...)
  2010-09-06 14:36 ` [PATCH 09/14] drivers/scsi: Removing undead ifdef REAL_DMA Christian Dietrich
@ 2010-09-06 14:36 ` Christian Dietrich
  2010-09-10 17:50   ` Krzysztof Helt
  2010-09-06 14:36 ` [PATCH 11/14] drivers/video: Removing undead ifdef CONFIG_FB_MATROX_G Christian Dietrich
                   ` (3 subsequent siblings)
  13 siblings, 1 reply; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:36 UTC (permalink / raw)
  To: Krzysztof Helt, Andrew Morton, Geert Uytterhoeven, Tejun Heo,
	linux-kernel
  Cc: vamos-dev

The ATAFB_FALCON ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 drivers/video/atafb.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/video/atafb.c b/drivers/video/atafb.c
index f3aada2..5b2b5ef 100644
--- a/drivers/video/atafb.c
+++ b/drivers/video/atafb.c
@@ -1718,11 +1718,9 @@ static int falcon_setcolreg(unsigned int regno, unsigned int red,
 			(((red & 0xe000) >> 13) | ((red & 0x1000) >> 12) << 8) |
 			(((green & 0xe000) >> 13) | ((green & 0x1000) >> 12) << 4) |
 			((blue & 0xe000) >> 13) | ((blue & 0x1000) >> 12);
-#ifdef ATAFB_FALCON
 		((u32 *)info->pseudo_palette)[regno] = ((red & 0xf800) |
 						       ((green & 0xfc00) >> 5) |
 						       ((blue & 0xf800) >> 11));
-#endif
 	}
 	return 0;
 }
-- 
1.7.0.4


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

* [PATCH 11/14] drivers/video: Removing undead ifdef CONFIG_FB_MATROX_G
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
                   ` (9 preceding siblings ...)
  2010-09-06 14:36 ` [PATCH 10/14] drivers/video: Removing undead ifdef ATAFB_FALCON Christian Dietrich
@ 2010-09-06 14:36 ` Christian Dietrich
  2010-09-07 13:02   ` Jean Delvare
  2010-09-06 14:36 ` [PATCH 12/14] include/linux: Removing undead ifdef __KERNEL__ Christian Dietrich
                   ` (2 subsequent siblings)
  13 siblings, 1 reply; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:36 UTC (permalink / raw)
  To: Petr Vandrovec, Andrew Morton, Jean Delvare, linux-fbdev, linux-kernel
  Cc: vamos-dev

The CONFIG_FB_MATROX_G ifdef isn't necessary at this point, because it
is checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 drivers/video/matrox/matroxfb_DAC1064.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/video/matrox/matroxfb_DAC1064.c b/drivers/video/matrox/matroxfb_DAC1064.c
index f9fa0fd..1717623 100644
--- a/drivers/video/matrox/matroxfb_DAC1064.c
+++ b/drivers/video/matrox/matroxfb_DAC1064.c
@@ -869,12 +869,9 @@ static int MGAG100_preinit(struct matrox_fb_info *minfo)
 	minfo->capable.plnwt = minfo->devflags.accelerator == FB_ACCEL_MATROX_MGAG100
 			? minfo->devflags.sgram : 1;
 
-#ifdef CONFIG_FB_MATROX_G
 	if (minfo->devflags.g450dac) {
 		minfo->outputs[0].output = &g450out;
-	} else
-#endif
-	{
+	} else {
 		minfo->outputs[0].output = &m1064;
 	}
 	minfo->outputs[0].src = minfo->outputs[0].default_src;
-- 
1.7.0.4


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

* [PATCH 12/14] include/linux: Removing undead ifdef __KERNEL__
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
                   ` (10 preceding siblings ...)
  2010-09-06 14:36 ` [PATCH 11/14] drivers/video: Removing undead ifdef CONFIG_FB_MATROX_G Christian Dietrich
@ 2010-09-06 14:36 ` Christian Dietrich
  2010-09-06 16:16   ` Cyrill Gorcunov
  2010-09-06 14:37 ` [PATCH 13/14] kernel/: Removing undead ifdef CONFIG_SMP Christian Dietrich
  2010-09-06 14:37 ` [PATCH 14/14] kernel/: Removing undead ifdef CONFIG_DEBUG_LOCK_ALLOC Christian Dietrich
  13 siblings, 1 reply; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:36 UTC (permalink / raw)
  To: David S. Miller, Arnaldo Carvalho de Melo, Eric W. Biederman,
	Ben Hutchings, Cyrill Gorcunov, linux-kernel
  Cc: vamos-dev

The __KERNEL__ ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 include/linux/socket.h |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/include/linux/socket.h b/include/linux/socket.h
index a2fada9..09753f5 100644
--- a/include/linux/socket.h
+++ b/include/linux/socket.h
@@ -30,12 +30,10 @@ struct cred;
 #define __sockaddr_check_size(size)	\
 	BUILD_BUG_ON(((size) > sizeof(struct __kernel_sockaddr_storage)))
 
-#ifdef __KERNEL__
 # ifdef CONFIG_PROC_FS
 struct seq_file;
 extern void socket_seq_show(struct seq_file *seq);
 # endif
-#endif /* __KERNEL__ */
 
 typedef unsigned short	sa_family_t;
 
@@ -311,7 +309,6 @@ struct ucred {
 /* IPX options */
 #define IPX_TYPE	1
 
-#ifdef __KERNEL__
 extern void cred_to_ucred(struct pid *pid, const struct cred *cred, struct ucred *ucred);
 
 extern int memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len);
@@ -334,6 +331,5 @@ struct timespec;
 
 extern int __sys_recvmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen,
 			  unsigned int flags, struct timespec *timeout);
-#endif
-#endif /* not kernel and not glibc */
+#endif /* __KERNEL__ */
 #endif /* _LINUX_SOCKET_H */
-- 
1.7.0.4


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

* [PATCH 13/14] kernel/: Removing undead ifdef CONFIG_SMP
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
                   ` (11 preceding siblings ...)
  2010-09-06 14:36 ` [PATCH 12/14] include/linux: Removing undead ifdef __KERNEL__ Christian Dietrich
@ 2010-09-06 14:37 ` Christian Dietrich
  2010-09-08  8:36   ` [tip:sched/core] sched: Remove unnecessary #ifdef CONFIG_SMP tip-bot for Christian Dietrich
  2010-09-06 14:37 ` [PATCH 14/14] kernel/: Removing undead ifdef CONFIG_DEBUG_LOCK_ALLOC Christian Dietrich
  13 siblings, 1 reply; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:37 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Thomas Gleixner, Mike Galbraith,
	Tejun Heo, linux-kernel
  Cc: vamos-dev

The CONFIG_SMP ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 kernel/sched.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 09b574e..8eef8e5 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -426,9 +426,7 @@ struct root_domain {
 	 */
 	cpumask_var_t rto_mask;
 	atomic_t rto_count;
-#ifdef CONFIG_SMP
 	struct cpupri cpupri;
-#endif
 };
 
 /*
@@ -437,7 +435,7 @@ struct root_domain {
  */
 static struct root_domain def_root_domain;
 
-#endif
+#endif /* CONFIG_SMP */
 
 /*
  * This is the main, per-CPU runqueue data structure.
-- 
1.7.0.4


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

* [PATCH 14/14] kernel/: Removing undead ifdef CONFIG_DEBUG_LOCK_ALLOC
       [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
                   ` (12 preceding siblings ...)
  2010-09-06 14:37 ` [PATCH 13/14] kernel/: Removing undead ifdef CONFIG_SMP Christian Dietrich
@ 2010-09-06 14:37 ` Christian Dietrich
  2010-09-06 16:13   ` Paul E. McKenney
  13 siblings, 1 reply; 25+ messages in thread
From: Christian Dietrich @ 2010-09-06 14:37 UTC (permalink / raw)
  To: Dipankar Sarma, Paul E. McKenney, Ingo Molnar, Josh Triplett,
	Tejun Heo, Lai Jiangshan, linux-kernel
  Cc: vamos-dev

The CONFIG_DEBUG_LOCK_ALLOC ifdef isn't necessary at this point, because it is
checked in an outer ifdef level already and has no effect here.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
---
 kernel/srcu.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/kernel/srcu.c b/kernel/srcu.c
index 2980da3..c71e075 100644
--- a/kernel/srcu.c
+++ b/kernel/srcu.c
@@ -46,11 +46,9 @@ static int init_srcu_struct_fields(struct srcu_struct *sp)
 int __init_srcu_struct(struct srcu_struct *sp, const char *name,
 		       struct lock_class_key *key)
 {
-#ifdef CONFIG_DEBUG_LOCK_ALLOC
 	/* Don't re-initialize a lock while it is held. */
 	debug_check_no_locks_freed((void *)sp, sizeof(*sp));
 	lockdep_init_map(&sp->dep_map, name, key, 0);
-#endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
 	return init_srcu_struct_fields(sp);
 }
 EXPORT_SYMBOL_GPL(__init_srcu_struct);
-- 
1.7.0.4


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

* Re: [PATCH 05/14] arch/x86: Removing undead ifdef ACPI/X86_IO_ACPI
  2010-09-06 14:36 ` [PATCH 05/14] arch/x86: Removing undead ifdef ACPI/X86_IO_ACPI Christian Dietrich
@ 2010-09-06 14:57   ` Borislav Petkov
  2010-09-08  8:35   ` [tip:x86/cleanups] x86: Remove unnecessary #ifdef ACPI/X86_IO_ACPI tip-bot for Christian Dietrich
  1 sibling, 0 replies; 25+ messages in thread
From: Borislav Petkov @ 2010-09-06 14:57 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-kernel,
	vamos-dev

From: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
Date: Mon, Sep 06, 2010 at 10:36:18AM -0400

> The ACPI/X86_IO_ACPI ifdef isn't necessary at this point, because it is
> checked in an outer ifdef level already and has no effect here.
> 
> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>

Acked-by: Borislav Petkov <borislav.petkov@amd.com>

-- 
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632


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

* Re: [PATCH 14/14] kernel/: Removing undead ifdef CONFIG_DEBUG_LOCK_ALLOC
  2010-09-06 14:37 ` [PATCH 14/14] kernel/: Removing undead ifdef CONFIG_DEBUG_LOCK_ALLOC Christian Dietrich
@ 2010-09-06 16:13   ` Paul E. McKenney
  0 siblings, 0 replies; 25+ messages in thread
From: Paul E. McKenney @ 2010-09-06 16:13 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: Dipankar Sarma, Ingo Molnar, Josh Triplett, Tejun Heo,
	Lai Jiangshan, linux-kernel, vamos-dev

On Mon, Sep 06, 2010 at 04:37:12PM +0200, Christian Dietrich wrote:
> The CONFIG_DEBUG_LOCK_ALLOC ifdef isn't necessary at this point, because it is
> checked in an outer ifdef level already and has no effect here.

Good catch, queued!

							Thanx, Paul

> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
> ---
>  kernel/srcu.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/kernel/srcu.c b/kernel/srcu.c
> index 2980da3..c71e075 100644
> --- a/kernel/srcu.c
> +++ b/kernel/srcu.c
> @@ -46,11 +46,9 @@ static int init_srcu_struct_fields(struct srcu_struct *sp)
>  int __init_srcu_struct(struct srcu_struct *sp, const char *name,
>  		       struct lock_class_key *key)
>  {
> -#ifdef CONFIG_DEBUG_LOCK_ALLOC
>  	/* Don't re-initialize a lock while it is held. */
>  	debug_check_no_locks_freed((void *)sp, sizeof(*sp));
>  	lockdep_init_map(&sp->dep_map, name, key, 0);
> -#endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
>  	return init_srcu_struct_fields(sp);
>  }
>  EXPORT_SYMBOL_GPL(__init_srcu_struct);
> -- 
> 1.7.0.4
> 

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

* Re: [PATCH 12/14] include/linux: Removing undead ifdef __KERNEL__
  2010-09-06 14:36 ` [PATCH 12/14] include/linux: Removing undead ifdef __KERNEL__ Christian Dietrich
@ 2010-09-06 16:16   ` Cyrill Gorcunov
  0 siblings, 0 replies; 25+ messages in thread
From: Cyrill Gorcunov @ 2010-09-06 16:16 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: David S. Miller, Arnaldo Carvalho de Melo, Eric W. Biederman,
	Ben Hutchings, linux-kernel, vamos-dev

On Mon, Sep 06, 2010 at 04:36:59PM +0200, Christian Dietrich wrote:
> The __KERNEL__ ifdef isn't necessary at this point, because it is
> checked in an outer ifdef level already and has no effect here.
> 
> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
> ---

The origin looks weird indeed. So I presume it's here for historical reasons.
Well, from git log it shows a lot of glibc tricks were here. And the former
top __KERNEL__ is by commit 9c501935a3cdcf6b1d35aaee3aa11c7a7051a305 so

Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com>

Thanks Christian

	-- Cyrill

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

* Re: [PATCH 02/14] arch/h8300: Removing dead ifdef __H8300_TLB_H__
  2010-09-06 14:36 ` [PATCH 02/14] arch/h8300: Removing dead ifdef __H8300_TLB_H__ Christian Dietrich
@ 2010-09-06 18:32   ` Andreas Schwab
  0 siblings, 0 replies; 25+ messages in thread
From: Andreas Schwab @ 2010-09-06 18:32 UTC (permalink / raw)
  To: Christian Dietrich; +Cc: Yoshinori Sato, linux-kernel, vamos-dev

Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de> writes:

> The nested __H8300_TLB_H__ include guard isn't necessary at this point,
> because the symbol is always defined at this point and the block
> content will always be removed.
>
> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
> ---
>  arch/h8300/include/asm/tlb.h |   13 -------------
>  1 files changed, 0 insertions(+), 13 deletions(-)
>
> diff --git a/arch/h8300/include/asm/tlb.h b/arch/h8300/include/asm/tlb.h
> index 3dea80a..6339a02 100644
> --- a/arch/h8300/include/asm/tlb.h
> +++ b/arch/h8300/include/asm/tlb.h
> @@ -7,17 +7,4 @@
>  
>  #define tlb_flush(tlb)	do { } while(0)
>  
> -/* 
> -  include/asm-h8300/tlb.h 
> -*/
> -
> -#ifndef __H8300_TLB_H__
> -#define __H8300_TLB_H__
> -
> -#define tlb_flush(tlb)	do { } while(0)
> -
> -#include <asm-generic/tlb.h>
> -
> -#endif
> -
>  #endif

Looks like someone patched the file twice with the same patch, see
<http://git.kernel.org/?p=linux/kernel/git/tglx/history.git;a=commitdiff;h=398f579808cb74dd4c418df72ff8ff5971038e4f#patch24>

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: [PATCH 06/14] drivers/net: Removing undead ifdef CHELSIO_T1_1G
  2010-09-06 14:36 ` [PATCH 06/14] drivers/net: Removing undead ifdef CHELSIO_T1_1G Christian Dietrich
@ 2010-09-07  1:39   ` David Miller
  0 siblings, 0 replies; 25+ messages in thread
From: David Miller @ 2010-09-07  1:39 UTC (permalink / raw)
  To: qy03fugy; +Cc: rolandd, adobriyan, joe, netdev, linux-kernel, vamos-dev

From: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
Date: Mon, 6 Sep 2010 16:36:25 +0200

> The CHELSIO_T1_1G ifdef isn't necessary at this point, because it is
> checked in an outer ifdef level already and has no effect here.
> 
> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>

Applied.

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

* Re: [PATCH 11/14] drivers/video: Removing undead ifdef  CONFIG_FB_MATROX_G
  2010-09-06 14:36 ` [PATCH 11/14] drivers/video: Removing undead ifdef CONFIG_FB_MATROX_G Christian Dietrich
@ 2010-09-07 13:02   ` Jean Delvare
  0 siblings, 0 replies; 25+ messages in thread
From: Jean Delvare @ 2010-09-07 13:02 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: Petr Vandrovec, Andrew Morton, linux-fbdev, linux-kernel, vamos-dev

On Mon, 6 Sep 2010 16:36:53 +0200, Christian Dietrich wrote:
> The CONFIG_FB_MATROX_G ifdef isn't necessary at this point, because it
> is checked in an outer ifdef level already and has no effect here.
> 
> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
> ---
>  drivers/video/matrox/matroxfb_DAC1064.c |    5 +----
>  1 files changed, 1 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/video/matrox/matroxfb_DAC1064.c b/drivers/video/matrox/matroxfb_DAC1064.c
> index f9fa0fd..1717623 100644
> --- a/drivers/video/matrox/matroxfb_DAC1064.c
> +++ b/drivers/video/matrox/matroxfb_DAC1064.c
> @@ -869,12 +869,9 @@ static int MGAG100_preinit(struct matrox_fb_info *minfo)
>  	minfo->capable.plnwt = minfo->devflags.accelerator == FB_ACCEL_MATROX_MGAG100
>  			? minfo->devflags.sgram : 1;
>  
> -#ifdef CONFIG_FB_MATROX_G
>  	if (minfo->devflags.g450dac) {
>  		minfo->outputs[0].output = &g450out;
> -	} else
> -#endif
> -	{
> +	} else {
>  		minfo->outputs[0].output = &m1064;
>  	}
>  	minfo->outputs[0].src = minfo->outputs[0].default_src;

Indeed.

Acked-by: Jean Delvare <khali@linux-fr.org>

-- 
Jean Delvare

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

* [tip:x86/cleanups] x86: Remove unnecessary #ifdef ACPI/X86_IO_ACPI
  2010-09-06 14:36 ` [PATCH 05/14] arch/x86: Removing undead ifdef ACPI/X86_IO_ACPI Christian Dietrich
  2010-09-06 14:57   ` Borislav Petkov
@ 2010-09-08  8:35   ` tip-bot for Christian Dietrich
  1 sibling, 0 replies; 25+ messages in thread
From: tip-bot for Christian Dietrich @ 2010-09-08  8:35 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, qy03fugy, tglx, mingo, borislav.petkov

Commit-ID:  0f1cf415f00286a38f5ce35b459342dbfc895b50
Gitweb:     http://git.kernel.org/tip/0f1cf415f00286a38f5ce35b459342dbfc895b50
Author:     Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
AuthorDate: Mon, 6 Sep 2010 16:36:18 +0200
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Wed, 8 Sep 2010 08:14:02 +0200

x86: Remove unnecessary #ifdef ACPI/X86_IO_ACPI

The ACPI/X86_IO_ACPI ifdef isn't necessary at this point,
because it is checked in an outer ifdef level already and has no
effect here.

Cleanup only, no functional effect.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
Acked-by: Borislav Petkov <borislav.petkov@amd.com>
Cc: vamos-dev@i4.informatik.uni-erlangen.de
LKML-Reference: <d4376e6d79b8dc0f89a4b3ce4a880904a7b93ead.1283782701.git.qy03fugy@stud.informatik.uni-erlangen.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/kernel/early-quirks.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirks.c
index e5cc7e8..e4bd78c 100644
--- a/arch/x86/kernel/early-quirks.c
+++ b/arch/x86/kernel/early-quirks.c
@@ -98,7 +98,6 @@ static void __init nvidia_bugs(int num, int slot, int func)
 }
 
 #if defined(CONFIG_ACPI) && defined(CONFIG_X86_IO_APIC)
-#if defined(CONFIG_ACPI) && defined(CONFIG_X86_IO_APIC)
 static u32 __init ati_ixp4x0_rev(int num, int slot, int func)
 {
 	u32 d;
@@ -116,7 +115,6 @@ static u32 __init ati_ixp4x0_rev(int num, int slot, int func)
 	d &= 0xff;
 	return d;
 }
-#endif
 
 static void __init ati_bugs(int num, int slot, int func)
 {

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

* [tip:sched/core] sched: Remove unnecessary #ifdef CONFIG_SMP
  2010-09-06 14:37 ` [PATCH 13/14] kernel/: Removing undead ifdef CONFIG_SMP Christian Dietrich
@ 2010-09-08  8:36   ` tip-bot for Christian Dietrich
  0 siblings, 0 replies; 25+ messages in thread
From: tip-bot for Christian Dietrich @ 2010-09-08  8:36 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, efault, peterz, tj, tglx, qy03fugy, mingo

Commit-ID:  ed2d372c0738386b8a184a6a6bea9c16df6ffb68
Gitweb:     http://git.kernel.org/tip/ed2d372c0738386b8a184a6a6bea9c16df6ffb68
Author:     Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
AuthorDate: Mon, 6 Sep 2010 16:37:05 +0200
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Wed, 8 Sep 2010 08:14:20 +0200

sched: Remove unnecessary #ifdef CONFIG_SMP

The CONFIG_SMP ifdef isn't necessary at this point, because it
is checked in an outer ifdef level already and has no effect
here.

Cleanup only, no functional effect.

Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
Cc: vamos-dev@i4.informatik.uni-erlangen.de
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Tejun Heo <tj@kernel.org>
LKML-Reference: <7a3a39ef3f765a4473cb026b1f204059568a7098.1283782701.git.qy03fugy@stud.informatik.uni-erlangen.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 kernel/sched.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 09b574e..8eef8e5 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -426,9 +426,7 @@ struct root_domain {
 	 */
 	cpumask_var_t rto_mask;
 	atomic_t rto_count;
-#ifdef CONFIG_SMP
 	struct cpupri cpupri;
-#endif
 };
 
 /*
@@ -437,7 +435,7 @@ struct root_domain {
  */
 static struct root_domain def_root_domain;
 
-#endif
+#endif /* CONFIG_SMP */
 
 /*
  * This is the main, per-CPU runqueue data structure.

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

* Re: [PATCH 03/14] arch/parisc: Removing undead ifdef CONFIG_PA20
  2010-09-06 14:36 ` [PATCH 03/14] arch/parisc: Removing undead ifdef CONFIG_PA20 Christian Dietrich
@ 2010-09-08 21:18   ` Kyle McMartin
  0 siblings, 0 replies; 25+ messages in thread
From: Kyle McMartin @ 2010-09-08 21:18 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: Kyle McMartin, Helge Deller, James E.J. Bottomley, Akinobu Mita,
	linux-parisc, linux-kernel, vamos-dev

On Mon, Sep 06, 2010 at 04:36:06PM +0200, Christian Dietrich wrote:
> The CONFIG_PA20 ifdef isn't necessary at this point, because it is
> checked in an outer ifdef level already and has no effect here.
> 

Looks good, applied, thanks.
-- Kyle

> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
> ---
>  arch/parisc/kernel/unaligned.c |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/parisc/kernel/unaligned.c b/arch/parisc/kernel/unaligned.c
> index 92d977b..234e368 100644
> --- a/arch/parisc/kernel/unaligned.c
> +++ b/arch/parisc/kernel/unaligned.c
> @@ -619,15 +619,12 @@ void handle_unaligned(struct pt_regs *regs)
>  		flop=1;
>  		ret = emulate_std(regs, R2(regs->iir),1);
>  		break;
> -
> -#ifdef CONFIG_PA20
>  	case OPCODE_LDD_L:
>  		ret = emulate_ldd(regs, R2(regs->iir),0);
>  		break;
>  	case OPCODE_STD_L:
>  		ret = emulate_std(regs, R2(regs->iir),0);
>  		break;
> -#endif
>  	}
>  #endif
>  	switch (regs->iir & OPCODE3_MASK)
> -- 
> 1.7.0.4
> 
> 

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

* Re: [PATCH 10/14] drivers/video: Removing undead ifdef ATAFB_FALCON
  2010-09-06 14:36 ` [PATCH 10/14] drivers/video: Removing undead ifdef ATAFB_FALCON Christian Dietrich
@ 2010-09-10 17:50   ` Krzysztof Helt
  2010-10-03  8:15     ` Geert Uytterhoeven
  0 siblings, 1 reply; 25+ messages in thread
From: Krzysztof Helt @ 2010-09-10 17:50 UTC (permalink / raw)
  To: Christian Dietrich
  Cc: Andrew Morton, Geert Uytterhoeven, Tejun Heo, linux-kernel, vamos-dev

On Mon, 6 Sep 2010 16:36:47 +0200
Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de> wrote:

> The ATAFB_FALCON ifdef isn't necessary at this point, because it is
> checked in an outer ifdef level already and has no effect here.
> 
> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
> ---

Right.

Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>

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

* Re: [PATCH 10/14] drivers/video: Removing undead ifdef ATAFB_FALCON
  2010-09-10 17:50   ` Krzysztof Helt
@ 2010-10-03  8:15     ` Geert Uytterhoeven
  0 siblings, 0 replies; 25+ messages in thread
From: Geert Uytterhoeven @ 2010-10-03  8:15 UTC (permalink / raw)
  To: Krzysztof Helt
  Cc: Christian Dietrich, Andrew Morton, Tejun Heo, linux-kernel, vamos-dev

On Fri, Sep 10, 2010 at 19:50, Krzysztof Helt <krzysztof.h1@wp.pl> wrote:
> On Mon, 6 Sep 2010 16:36:47 +0200
> Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de> wrote:
>
>> The ATAFB_FALCON ifdef isn't necessary at this point, because it is
>> checked in an outer ifdef level already and has no effect here.
>>
>> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
>
> Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>

Applied to m68k tree, queued for 2.6.37.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

end of thread, other threads:[~2010-10-03  8:15 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <cover.1283782698.git.qy03fugy@stud.informatik.uni-erlangen.de>
2010-09-06 14:35 ` [PATCH 01/14] arch/arm: Removing undead ifdef __ASSEMBLY__ Christian Dietrich
2010-09-06 14:36 ` [PATCH 02/14] arch/h8300: Removing dead ifdef __H8300_TLB_H__ Christian Dietrich
2010-09-06 18:32   ` Andreas Schwab
2010-09-06 14:36 ` [PATCH 03/14] arch/parisc: Removing undead ifdef CONFIG_PA20 Christian Dietrich
2010-09-08 21:18   ` Kyle McMartin
2010-09-06 14:36 ` [PATCH 04/14] arch/{s390,powerpc}: Removing undead ifdef __KERNEL__ Christian Dietrich
2010-09-06 14:36 ` [PATCH 05/14] arch/x86: Removing undead ifdef ACPI/X86_IO_ACPI Christian Dietrich
2010-09-06 14:57   ` Borislav Petkov
2010-09-08  8:35   ` [tip:x86/cleanups] x86: Remove unnecessary #ifdef ACPI/X86_IO_ACPI tip-bot for Christian Dietrich
2010-09-06 14:36 ` [PATCH 06/14] drivers/net: Removing undead ifdef CHELSIO_T1_1G Christian Dietrich
2010-09-07  1:39   ` David Miller
2010-09-06 14:36 ` [PATCH 07/14] drivers/scsi: Removing undead ifdef __ISAPNP__ Christian Dietrich
2010-09-06 14:36 ` [PATCH 08/14] drivers/scsi: Removing undead ifdef CONFIG_PCI Christian Dietrich
2010-09-06 14:36 ` [PATCH 09/14] drivers/scsi: Removing undead ifdef REAL_DMA Christian Dietrich
2010-09-06 14:36 ` [PATCH 10/14] drivers/video: Removing undead ifdef ATAFB_FALCON Christian Dietrich
2010-09-10 17:50   ` Krzysztof Helt
2010-10-03  8:15     ` Geert Uytterhoeven
2010-09-06 14:36 ` [PATCH 11/14] drivers/video: Removing undead ifdef CONFIG_FB_MATROX_G Christian Dietrich
2010-09-07 13:02   ` Jean Delvare
2010-09-06 14:36 ` [PATCH 12/14] include/linux: Removing undead ifdef __KERNEL__ Christian Dietrich
2010-09-06 16:16   ` Cyrill Gorcunov
2010-09-06 14:37 ` [PATCH 13/14] kernel/: Removing undead ifdef CONFIG_SMP Christian Dietrich
2010-09-08  8:36   ` [tip:sched/core] sched: Remove unnecessary #ifdef CONFIG_SMP tip-bot for Christian Dietrich
2010-09-06 14:37 ` [PATCH 14/14] kernel/: Removing undead ifdef CONFIG_DEBUG_LOCK_ALLOC Christian Dietrich
2010-09-06 16:13   ` Paul E. McKenney

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