History

[PATCH] Remove __devinit and __cpuinit from notifier_call definitions

Few of the notifier_chain_register() callers use __init in the definition of notifier_call. It is incorrect as the function definition should be available after the initializations (they do not unregister them during initializations). This patch fixes all such usages to _not_ have the notifier_call __init section.

Chandra Seetharaman committed 20 years ago

Commit 83d722f1 parent 649bbaa19 files · +19 −19Browse files

Showing the changes to kernel/workqueue.c (1 of 19 files). Show all

Unified · Split

kernel/workqueue.c+1−1
@@ -547,7 +547,7 @@ static void take_over_work(struct workqueue_struct *wq, unsigned int cpu) · 546 unmodified lines
547547 }
548548
549549 /* We're holding the cpucontrol mutex here */
550−static int __devinit workqueue_cpu_callback(struct notifier_block *nfb,
550+static int workqueue_cpu_callback(struct notifier_block *nfb,
551551 unsigned long action,
552552 void *hcpu)
553553 {