Linuxkpi: Prevent easy generated ctor name conflicts with prefix

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2019-08-17 03:00:58 +00:00
parent 2bc9c25782
commit 419fe172c2

View File

@ -91,11 +91,12 @@ struct delayed_work {
#define DECLARE_DELAYED_WORK(name, fn) \
struct delayed_work name; \
static void name##_init(void *arg) \
static void __linux_delayed_ ## name ## _init(void *arg) \
{ \
linux_init_delayed_work(&name, fn); \
} \
SYSINIT(name, SI_SUB_LOCK, SI_ORDER_SECOND, name##_init, NULL)
SYSINIT(name, SI_SUB_LOCK, SI_ORDER_SECOND, \
__linux_delayed_ ## name##_init, NULL)
static inline struct delayed_work *
to_delayed_work(struct work_struct *work)