Sam Ravnborg | 63104ee | 2006-07-03 23:30:54 +0200 | [diff] [blame] | 1 | #include <linux/utsrelease.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #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' Giarrusso | 5ac90c9 | 2006-04-10 22:54:28 -0700 | [diff] [blame] | 15 | #ifdef CONFIG_MODULE_UNLOAD |
| 16 | #define MODULE_VERMAGIC_MODULE_UNLOAD "mod_unload " |
| 17 | #else |
| 18 | #define MODULE_VERMAGIC_MODULE_UNLOAD "" |
| 19 | #endif |
Rusty Russell | 6c2545e | 2008-05-09 16:23:17 +1000 | [diff] [blame] | 20 | #ifdef CONFIG_MODVERSIONS |
| 21 | #define MODULE_VERMAGIC_MODVERSIONS "modversions " |
| 22 | #else |
| 23 | #define MODULE_VERMAGIC_MODVERSIONS "" |
| 24 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | #ifndef MODULE_ARCH_VERMAGIC |
| 26 | #define MODULE_ARCH_VERMAGIC "" |
| 27 | #endif |
| 28 | |
| 29 | #define VERMAGIC_STRING \ |
| 30 | UTS_RELEASE " " \ |
| 31 | MODULE_VERMAGIC_SMP MODULE_VERMAGIC_PREEMPT \ |
Rusty Russell | 6c2545e | 2008-05-09 16:23:17 +1000 | [diff] [blame] | 32 | MODULE_VERMAGIC_MODULE_UNLOAD MODULE_VERMAGIC_MODVERSIONS \ |
| 33 | MODULE_ARCH_VERMAGIC |
Andi Kleen | 1bb4996 | 2006-09-26 10:52:37 +0200 | [diff] [blame] | 34 | |