Concatenate the line number rather than the string `__FILE__' in the

NET_NEEDS_GIANT macro.  Until now this wasn't a problem because no
translation unit contains NET_NEEDS_GIANT more than once.
This commit is contained in:
stefanf 2005-04-16 20:47:32 +00:00
parent 6d4ec686f8
commit 7d12bcaef9

View File

@ -362,7 +362,7 @@ struct tunable_str {
void net_warn_not_mpsafe(const char *component);
#define NET_NEEDS_GIANT(component) \
SYSINIT(__net_warn_not_mpsafe_ ## __FILE__, \
SYSINIT(__CONCAT(__net_warn_not_mpsafe_, __LINE__), \
SI_SUB_SETTINGS, SI_ORDER_SECOND, net_warn_not_mpsafe, component);
struct intr_config_hook {