blob: 6f8fbcf10dfb8ac6dd3ead787c5e4cf27e142c42 [file] [log] [blame]
Sam Ravnborg273b2812009-10-18 00:52:28 +02001#include <generated/utsrelease.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07002
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
Paolo 'Blaisorblade' Giarrusso5ac90c92006-04-10 22:54:28 -070014#ifdef CONFIG_MODULE_UNLOAD
15#define MODULE_VERMAGIC_MODULE_UNLOAD "mod_unload "
16#else
17#define MODULE_VERMAGIC_MODULE_UNLOAD ""
18#endif
Rusty Russell6c2545e2008-05-09 16:23:17 +100019#ifdef CONFIG_MODVERSIONS
20#define MODULE_VERMAGIC_MODVERSIONS "modversions "
21#else
22#define MODULE_VERMAGIC_MODVERSIONS ""
23#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070024#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 \
Rusty Russell6c2545e2008-05-09 16:23:17 +100031 MODULE_VERMAGIC_MODULE_UNLOAD MODULE_VERMAGIC_MODVERSIONS \
32 MODULE_ARCH_VERMAGIC
Andi Kleen1bb49962006-09-26 10:52:37 +020033