aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/module.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/include/asm/module.h')
-rw-r--r--arch/arm/include/asm/module.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/arm/include/asm/module.h b/arch/arm/include/asm/module.h
index 12c8e680cbff..d072c21332ee 100644
--- a/arch/arm/include/asm/module.h
+++ b/arch/arm/include/asm/module.h
@@ -25,8 +25,19 @@ struct mod_arch_specific {
25}; 25};
26 26
27/* 27/*
28 * Include the ARM architecture version. 28 * Add the ARM architecture version to the version magic string
29 */ 29 */
30#define MODULE_ARCH_VERMAGIC "ARMv" __stringify(__LINUX_ARM_ARCH__) " " 30#define MODULE_ARCH_VERMAGIC_ARMVSN "ARMv" __stringify(__LINUX_ARM_ARCH__) " "
31
32/* Add __virt_to_phys patching state as well */
33#ifdef CONFIG_ARM_PATCH_PHYS_VIRT
34#define MODULE_ARCH_VERMAGIC_P2V "p2v8 "
35#else
36#define MODULE_ARCH_VERMAGIC_P2V ""
37#endif
38
39#define MODULE_ARCH_VERMAGIC \
40 MODULE_ARCH_VERMAGIC_ARMVSN \
41 MODULE_ARCH_VERMAGIC_P2V
31 42
32#endif /* _ASM_ARM_MODULE_H */ 43#endif /* _ASM_ARM_MODULE_H */