1 #include <generated/utsrelease.h>
2 
3 /* Simply sanity version stamp for modules. */
4 #ifdef CONFIG_SMP
5 #define MODULE_VERMAGIC_SMP "SMP "
6 #else
7 #define MODULE_VERMAGIC_SMP ""
8 #endif
9 #ifdef CONFIG_PREEMPT
10 #define MODULE_VERMAGIC_PREEMPT "preempt "
11 #else
12 #define MODULE_VERMAGIC_PREEMPT ""
13 #endif
14 #ifdef CONFIG_MODULE_UNLOAD
15 #define MODULE_VERMAGIC_MODULE_UNLOAD "mod_unload "
16 #else
17 #define MODULE_VERMAGIC_MODULE_UNLOAD ""
18 #endif
19 #ifdef CONFIG_MODVERSIONS
20 #define MODULE_VERMAGIC_MODVERSIONS "modversions "
21 #else
22 #define MODULE_VERMAGIC_MODVERSIONS ""
23 #endif
24 #ifndef MODULE_ARCH_VERMAGIC
25 #define MODULE_ARCH_VERMAGIC ""
26 #endif
27 
28 #define VERMAGIC_STRING 						\
29 	UTS_RELEASE " "							\
30 	MODULE_VERMAGIC_SMP MODULE_VERMAGIC_PREEMPT 			\
31 	MODULE_VERMAGIC_MODULE_UNLOAD MODULE_VERMAGIC_MODVERSIONS	\
32 	MODULE_ARCH_VERMAGIC
33 
34