Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
422 | giacomo | 1 | #include <linux/version.h> |
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 |
||
15 | #ifndef MODULE_ARCH_VERMAGIC |
||
16 | #define MODULE_ARCH_VERMAGIC "" |
||
17 | #endif |
||
18 | |||
19 | #define VERMAGIC_STRING \ |
||
20 | UTS_RELEASE " " \ |
||
21 | MODULE_VERMAGIC_SMP MODULE_VERMAGIC_PREEMPT \ |
||
22 | MODULE_ARCH_VERMAGIC \ |
||
23 | "gcc-" __stringify(__GNUC__) "." __stringify(__GNUC_MINOR__) |