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:
parent
c2c2204605
commit
0f7d553f53
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145169
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user