blob: 46919f9f5eb35b9d023e9c5a7818bc528b5fa2e5 [file] [log] [blame]
Sam Ravnborg63104ee2006-07-03 23:30:54 +02001#include <linux/utsrelease.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#include <linux/module.h>
3
4/* Simply sanity version stamp for modules. */
5#ifdef CONFIG_SMP
6#define MODULE_VERMAGIC_SMP "SMP "
7#else
8#define MODULE_VERMAGIC_SMP ""
9#endif
10#ifdef CONFIG_PREEMPT
11#define MODULE_VERMAGIC_PREEMPT "preempt "
12#else
13#define MODULE_VERMAGIC_PREEMPT ""
14#endif
Paolo 'Blaisorblade' Giarrusso5ac90c92006-04-10 22:54:28 -070015#ifdef CONFIG_MODULE_UNLOAD
16#define MODULE_VERMAGIC_MODULE_UNLOAD "mod_unload "
17#else
18#define MODULE_VERMAGIC_MODULE_UNLOAD ""
19#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#ifndef MODULE_ARCH_VERMAGIC
21#define MODULE_ARCH_VERMAGIC ""
22#endif
23
24#define VERMAGIC_STRING \
25 UTS_RELEASE " " \
26 MODULE_VERMAGIC_SMP MODULE_VERMAGIC_PREEMPT \
Paolo 'Blaisorblade' Giarrusso5ac90c92006-04-10 22:54:28 -070027 MODULE_VERMAGIC_MODULE_UNLOAD MODULE_ARCH_VERMAGIC \
Linus Torvalds1da177e2005-04-16 15:20:36 -070028 "gcc-" __stringify(__GNUC__) "." __stringify(__GNUC_MINOR__)