Skip to content

Commit 1bb4996

Browse files
Andi KleenAndi Kleen
authored andcommitted
[PATCH] Move compiler check for modules to ia64 only
Apparently IA64 needs it, but i386/x86-64 don't anymore since gcc 2.95 support was dropped. Nobody else on linux-arch requested keeping it generically Cc: tony.luck@intel.com Cc: kaos@sgi.com Signed-off-by: Andi Kleen <ak@suse.de>
1 parent dbf9272 commit 1bb4996

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

include/asm-ia64/module.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ struct mod_arch_specific {
2828
#define Elf_Ehdr Elf64_Ehdr
2929

3030
#define MODULE_PROC_FAMILY "ia64"
31-
#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
31+
#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY \
32+
"gcc-" __stringify(__GNUC__) "." __stringify(__GNUC_MINOR__)
3233

3334
#define ARCH_SHF_SMALL SHF_IA_64_SHORT
3435

include/linux/vermagic.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
#define VERMAGIC_STRING \
2525
UTS_RELEASE " " \
2626
MODULE_VERMAGIC_SMP MODULE_VERMAGIC_PREEMPT \
27-
MODULE_VERMAGIC_MODULE_UNLOAD MODULE_ARCH_VERMAGIC \
28-
"gcc-" __stringify(__GNUC__) "." __stringify(__GNUC_MINOR__)
27+
MODULE_VERMAGIC_MODULE_UNLOAD MODULE_ARCH_VERMAGIC
28+

0 commit comments

Comments
 (0)