diff options
-rw-r--r-- | arch/x86/ia32/ia32_binfmt.c | 5 | ||||
-rw-r--r-- | include/asm-x86/hw_irq_64.h | 3 | ||||
-rw-r--r-- | include/asm-x86/system_64.h | 3 |
3 files changed, 1 insertions, 10 deletions
diff --git a/arch/x86/ia32/ia32_binfmt.c b/arch/x86/ia32/ia32_binfmt.c index d3c53e8b05c0..118b9f9ff499 100644 --- a/arch/x86/ia32/ia32_binfmt.c +++ b/arch/x86/ia32/ia32_binfmt.c | |||
@@ -112,11 +112,8 @@ struct elf_prpsinfo | |||
112 | char pr_psargs[ELF_PRARGSZ]; /* initial part of arg list */ | 112 | char pr_psargs[ELF_PRARGSZ]; /* initial part of arg list */ |
113 | }; | 113 | }; |
114 | 114 | ||
115 | #define __STR(x) #x | ||
116 | #define STR(x) __STR(x) | ||
117 | |||
118 | #define _GET_SEG(x) \ | 115 | #define _GET_SEG(x) \ |
119 | ({ __u32 seg; asm("movl %%" STR(x) ",%0" : "=r"(seg)); seg; }) | 116 | ({ __u32 seg; asm("movl %%" __stringify(x) ",%0" : "=r"(seg)); seg; }) |
120 | 117 | ||
121 | /* Assumes current==process to be dumped */ | 118 | /* Assumes current==process to be dumped */ |
122 | #define ELF_CORE_COPY_REGS(pr_reg, regs) \ | 119 | #define ELF_CORE_COPY_REGS(pr_reg, regs) \ |
diff --git a/include/asm-x86/hw_irq_64.h b/include/asm-x86/hw_irq_64.h index 09dfc18a6dd0..dc0a953da6a6 100644 --- a/include/asm-x86/hw_irq_64.h +++ b/include/asm-x86/hw_irq_64.h | |||
@@ -148,9 +148,6 @@ extern atomic_t irq_mis_count; | |||
148 | 148 | ||
149 | #define IO_APIC_IRQ(x) (((x) >= 16) || ((1<<(x)) & io_apic_irqs)) | 149 | #define IO_APIC_IRQ(x) (((x) >= 16) || ((1<<(x)) & io_apic_irqs)) |
150 | 150 | ||
151 | #define __STR(x) #x | ||
152 | #define STR(x) __STR(x) | ||
153 | |||
154 | #include <asm/ptrace.h> | 151 | #include <asm/ptrace.h> |
155 | 152 | ||
156 | #define IRQ_NAME2(nr) nr##_interrupt(void) | 153 | #define IRQ_NAME2(nr) nr##_interrupt(void) |
diff --git a/include/asm-x86/system_64.h b/include/asm-x86/system_64.h index ec4c29bcfcb0..4cb23848d460 100644 --- a/include/asm-x86/system_64.h +++ b/include/asm-x86/system_64.h | |||
@@ -7,9 +7,6 @@ | |||
7 | 7 | ||
8 | #ifdef __KERNEL__ | 8 | #ifdef __KERNEL__ |
9 | 9 | ||
10 | #define __STR(x) #x | ||
11 | #define STR(x) __STR(x) | ||
12 | |||
13 | #define __SAVE(reg,offset) "movq %%" #reg ",(14-" #offset ")*8(%%rsp)\n\t" | 10 | #define __SAVE(reg,offset) "movq %%" #reg ",(14-" #offset ")*8(%%rsp)\n\t" |
14 | #define __RESTORE(reg,offset) "movq (14-" #offset ")*8(%%rsp),%%" #reg "\n\t" | 11 | #define __RESTORE(reg,offset) "movq (14-" #offset ")*8(%%rsp),%%" #reg "\n\t" |
15 | 12 | ||