We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932562a commit 2b010a6Copy full SHA for 2b010a6
include/linux/preempt.h
@@ -9,7 +9,7 @@
9
10
#include <linux/linkage.h>
11
#include <linux/cleanup.h>
12
-#include <linux/list.h>
+#include <linux/types.h>
13
14
/*
15
* We put the hardirq and softirq counter into the preemption
@@ -360,7 +360,9 @@ void preempt_notifier_unregister(struct preempt_notifier *notifier);
360
static inline void preempt_notifier_init(struct preempt_notifier *notifier,
361
struct preempt_ops *ops)
362
{
363
- INIT_HLIST_NODE(¬ifier->link);
+ /* INIT_HLIST_NODE() open coded, to avoid dependency on list.h */
364
+ notifier->link.next = NULL;
365
+ notifier->link.pprev = NULL;
366
notifier->ops = ops;
367
}
368
0 commit comments