Rev 4103 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4103 | Rev 6934 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | * exporting a simple symbol or two. |
6 | * exporting a simple symbol or two. |
7 | * |
7 | * |
8 | * Try not to add #includes here. It slows compilation and makes kernel |
8 | * Try not to add #includes here. It slows compilation and makes kernel |
9 | * hackers place grumpy comments in header files. |
9 | * hackers place grumpy comments in header files. |
10 | */ |
10 | */ |
- | 11 | ||
- | 12 | /* Some toolchains use a `_' prefix for all user symbols. */ |
|
- | 13 | #ifdef CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX |
|
- | 14 | #define __VMLINUX_SYMBOL(x) _##x |
|
- | 15 | #define __VMLINUX_SYMBOL_STR(x) "_" #x |
|
- | 16 | #else |
|
- | 17 | #define __VMLINUX_SYMBOL(x) x |
|
- | 18 | #define __VMLINUX_SYMBOL_STR(x) #x |
|
- | 19 | #endif |
|
11 | #define EXPORT_SYMBOL(sym) |
20 | #define EXPORT_SYMBOL(sym) |
12 | #define EXPORT_SYMBOL_GPL(sym) |
21 | #define EXPORT_SYMBOL_GPL(sym) |
13 | #define EXPORT_SYMBOL_GPL_FUTURE(sym) |
22 | #define EXPORT_SYMBOL_GPL_FUTURE(sym) |
14 | #define EXPORT_UNUSED_SYMBOL(sym) |
23 | #define EXPORT_UNUSED_SYMBOL(sym) |
15 | #define EXPORT_UNUSED_SYMBOL_GPL(sym) |
24 | #define EXPORT_UNUSED_SYMBOL_GPL(sym) |