1 #include <linux/linkage.h>
2
3 #ifdef MODVERSIONS
4 # undef _set_ver
5 # undef X
6
7
8
9
10 # define _basic_version(symaddr,symstr) symaddr, symstr
11 # define _alias_version(really,symaddr,symstr) (void *) & really , symstr
12
13 # ifndef __GENKSYMS__
14 # ifdef MODULE
15 # define _set_ver(sym,ver) \
16 (void *) & sym ## _R ## ver, SYMBOL_NAME_STR(sym) "_R" #ver
17 # else
18 # define _set_ver(sym,ver) \
19 (void *) & sym, SYMBOL_NAME_STR(sym) "_R" #ver
20 # endif
21 # define X(sym) { _basic_version(sym) }
22
23
24
25
26
27
28
29
30
31
32 # define Xalias(really,sym) { _alias_version(really,sym) }
33 # endif
34 #else
35 # define X(sym) { (void *) & sym, SYMBOL_NAME_STR(sym)}
36 # define Xalias(really,sym) { (void *) & really, SYMBOL_NAME_STR(sym)}
37 #endif
38
39
40
41
42 #define XNOVERS(sym) { (void *) & sym, SYMBOL_NAME_STR(sym)}
43
44 #define EMPTY {0,0}
45 0, 0, 0, {