[patch 06/10] i386: voyager: use __attribute_unused__

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Rientjes
Date: Tuesday, May 1, 2007 - 9:28 pm

Replace automatic variable instances of __attribute__((unused)) with
__attribute_unused__ in mca_nmi_hook().

Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: David Rientjes <rientjes@google.com>
---
 arch/i386/mach-voyager/voyager_basic.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/i386/mach-voyager/voyager_basic.c b/arch/i386/mach-voyager/voyager_basic.c
--- a/arch/i386/mach-voyager/voyager_basic.c
+++ b/arch/i386/mach-voyager/voyager_basic.c
@@ -292,8 +292,8 @@ machine_emergency_restart(void)
 void
 mca_nmi_hook(void)
 {
-	__u8 dumpval __attribute__((unused)) = inb(0xf823);
-	__u8 swnmi __attribute__((unused)) = inb(0xf813);
+	__u8 dumpval __attribute_unused__ = inb(0xf823);
+	__u8 swnmi __attribute_unused__ = inb(0xf813);
 
 	/* FIXME: assume dump switch pressed */
 	/* check to see if the dump switch was pressed */
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 01/10] compiler: define __attribute_unused__, David Rientjes, (Tue May 1, 9:28 pm)
[patch 02/10] i386 pci: type may be unused, David Rientjes, (Tue May 1, 9:28 pm)
[patch 04/10] scsi: fix ambiguous gdthtable definition, David Rientjes, (Tue May 1, 9:28 pm)
[patch 06/10] i386: voyager: use __attribute_unused__, David Rientjes, (Tue May 1, 9:28 pm)
[patch 07/10] mips: excite: use __attribute_unused__, David Rientjes, (Tue May 1, 9:28 pm)
[patch 09/10] powerpc: ps3: use __attribute_unused__, David Rientjes, (Tue May 1, 9:28 pm)
[patch 10/10] i386 mmzone: use __attribute_unused__, David Rientjes, (Tue May 1, 9:28 pm)
[patch 08/10] mips: tlbex: use __attribute_unused__, David Rientjes, (Tue May 1, 9:28 pm)
[patch 05/10] frv: gdb: use __attribute_unused__, David Rientjes, (Tue May 1, 9:28 pm)
[patch 03/10] sh: dma: use __attribute_unused__, David Rientjes, (Tue May 1, 9:28 pm)
Re: [patch 01/10] compiler: define __attribute_unused__, Alexey Dobriyan, (Tue May 1, 10:17 pm)
Re: [patch 01/10] compiler: define __attribute_unused__, Rusty Russell, (Tue May 1, 10:40 pm)
Re: [patch 01/10] compiler: define __attribute_unused__, David Rientjes, (Tue May 1, 10:53 pm)
Re: [patch 01/10] compiler: define __attribute_unused__, David Rientjes, (Tue May 1, 11:06 pm)
Re: [patch 01/10] compiler: define __attribute_unused__, Andrew Morton, (Tue May 1, 11:08 pm)
Re: [patch 01/10] compiler: define __attribute_unused__, David Rientjes, (Tue May 1, 11:25 pm)
Re: [patch 01/10] compiler: define __attribute_unused__, Rusty Russell, (Tue May 1, 11:29 pm)
Re: [patch 01/10] compiler: define __attribute_unused__, David Rientjes, (Tue May 1, 11:41 pm)
Re: [patch 01/10] compiler: define __attribute_unused__, Andrew Morton, (Tue May 1, 11:52 pm)
Re: [patch 01/10] compiler: define __attribute_unused__, Robert P. J. Day, (Wed May 2, 12:02 am)
Re: [patch 01/10] compiler: define __attribute_unused__, Rusty Russell, (Wed May 2, 12:04 am)
Re: [patch 01/10] compiler: define __attribute_unused__, David Rientjes, (Wed May 2, 12:17 am)
Re: [patch 01/10] compiler: define __attribute_unused__, David Rientjes, (Wed May 2, 12:22 am)
Re: [patch 01/10] compiler: define __attribute_unused__, Robert P. J. Day, (Wed May 2, 12:47 am)
Re: [patch 01/10] compiler: define __attribute_unused__, Rusty Russell, (Wed May 2, 12:51 am)
Re: [patch 02/10] i386 pci: type may be unused, Andi Kleen, (Wed May 2, 3:35 am)
Re: [patch 02/10] i386 pci: type may be unused, David Rientjes, (Wed May 2, 10:05 am)
Re: [patch 01/10] compiler: define __attribute_unused__, David Rientjes, (Wed May 2, 10:16 am)
Re: [patch 08/10] mips: tlbex: use __attribute_unused__, Ralf Baechle, (Thu May 3, 10:23 am)
Re: [patch 01/10] compiler: define __attribute_unused__, David Rientjes, (Thu May 3, 11:56 am)
Re: [patch 01/10] compiler: define __attribute_unused__, David Rientjes, (Thu May 3, 12:24 pm)
Re: [patch 03/10] sh: dma: use __attribute_unused__, Paul Mundt, (Sun May 6, 6:28 pm)