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.
Showing the changes to kernel/workqueue.c (1 of 19 files). Show all
Unified · Split
| @@ -547,7 +547,7 @@ static void take_over_work(struct workqueue_struct *wq, unsigned int cpu) · 546 unmodified lines | ||
| 547 | 547 | } |
| 548 | 548 | |
| 549 | 549 | /* 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, | |
| 551 | 551 | unsigned long action, |
| 552 | 552 | void *hcpu) |
| 553 | 553 | { |