diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h index 20c9e64451ac..026ebc7d0c60 100644 --- a/sys/sys/kernel.h +++ b/sys/sys/kernel.h @@ -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 {