History

[PATCH] Remove __devinitdata from notifier block definitions

Few of the notifier_chain_register() callers use __devinitdata in the definition of notifier_block data structure. It is incorrect as the data structure should be available after the initializations (they do not unregister them during initializations). This was leading to an oops when notifier_chain_register() call is invoked for those callback chains after initialization. This patch fixes all such usages to _not_ have the notifier_block data structure in the init data section.

Chandra Seetharaman committed 20 years ago

Commit 649bbaa1 parent e7edf9c9 files · +9 −9Browse files

Showing the changes to kernel/timer.c (1 of 9 files). Show all

Unified · Split

kernel/timer.c+1−1
@@ -1334,7 +1334,7 @@ static int __devinit timer_cpu_notify(struct notifier_block *self, · 1333 unmodified lines
1334 return NOTIFY_OK;1334 return NOTIFY_OK;
1335}1335}
1336 1336
1337static struct notifier_block __devinitdata timers_nb = {1337static struct notifier_block timers_nb = {
1338 .notifier_call = timer_cpu_notify,1338 .notifier_call = timer_cpu_notify,
1339};1339};
1340 1340