]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Remove __devinitdata from notifier block definitions
authorChandra Seetharaman <sekharan@us.ibm.com>
Tue, 25 Apr 2006 02:35:15 +0000 (19:35 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 26 Apr 2006 15:27:50 +0000 (08:27 -0700)
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.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/powerpc/kernel/sysfs.c
arch/s390/appldata/appldata_base.c
block/ll_rw_blk.c
kernel/hrtimer.c
kernel/rcupdate.c
kernel/sched.c
kernel/softirq.c
kernel/softlockup.c
kernel/timer.c

index 73560ef6f802e8942b04e1fc97da641092cc9e8e..0235eb7ecba68acf7d2628839749674e2cbc6b0d 100644 (file)
@@ -297,7 +297,7 @@ static int __devinit sysfs_cpu_notify(struct notifier_block *self,
        return NOTIFY_OK;
 }
 
-static struct notifier_block __devinitdata sysfs_cpu_nb = {
+static struct notifier_block sysfs_cpu_nb = {
        .notifier_call  = sysfs_cpu_notify,
 };
 
index 54d35c13090798810a5dfcc931446e07ec0dae8a..9a22434a580c52f1245bedd5d0a1a6a7d81d7866 100644 (file)
@@ -652,7 +652,7 @@ appldata_cpu_notify(struct notifier_block *self,
        return NOTIFY_OK;
 }
 
-static struct notifier_block __devinitdata appldata_nb = {
+static struct notifier_block appldata_nb = {
        .notifier_call = appldata_cpu_notify,
 };
 
index 1755c053fd68ce648ba90bcbc3c7132ac23d8ad1..e5041a02e21f5c7ee4e93597ef95967643380462 100644 (file)
@@ -3385,7 +3385,7 @@ static int blk_cpu_notify(struct notifier_block *self, unsigned long action,
 }
 
 
-static struct notifier_block __devinitdata blk_cpu_notifier = {
+static struct notifier_block blk_cpu_notifier = {
        .notifier_call  = blk_cpu_notify,
 };
 
index d2a7296c8251979b67be6a98640025c0181462c5..4b63bb9797b235e25c07a20e96b6becf442008a3 100644 (file)
@@ -860,7 +860,7 @@ static int __devinit hrtimer_cpu_notify(struct notifier_block *self,
        return NOTIFY_OK;
 }
 
-static struct notifier_block __devinitdata hrtimers_nb = {
+static struct notifier_block hrtimers_nb = {
        .notifier_call = hrtimer_cpu_notify,
 };
 
index 13458bbaa1be2bbac965b9584709152c9291cc46..193e5a0df1983267c99b1bc5a4ab831680d9610f 100644 (file)
@@ -537,7 +537,7 @@ static int __devinit rcu_cpu_notify(struct notifier_block *self,
        return NOTIFY_OK;
 }
 
-static struct notifier_block __devinitdata rcu_nb = {
+static struct notifier_block rcu_nb = {
        .notifier_call  = rcu_cpu_notify,
 };
 
index 365f0b90b4de534b628acb871ace309491672690..4c64f85698aee2205c442f3fec09d18a3db5d4a3 100644 (file)
@@ -4814,7 +4814,7 @@ static int migration_call(struct notifier_block *nfb, unsigned long action,
 /* Register at highest priority so that task migration (migrate_all_tasks)
  * happens before everything else.
  */
-static struct notifier_block __devinitdata migration_notifier = {
+static struct notifier_block migration_notifier = {
        .notifier_call = migration_call,
        .priority = 10
 };
index ec8fed42a86f5db1001701c2da36c3287cbcaa36..a13f2b342e4b110d046570c00963b3ac29c0fc61 100644 (file)
@@ -484,7 +484,7 @@ static int __devinit cpu_callback(struct notifier_block *nfb,
        return NOTIFY_OK;
 }
 
-static struct notifier_block __devinitdata cpu_nfb = {
+static struct notifier_block cpu_nfb = {
        .notifier_call = cpu_callback
 };
 
index ced91e1ff5647329d71ce4082f70b5eddca9473e..dabebac50868fb7aab936cbfe3378654f78ad7a3 100644 (file)
@@ -140,7 +140,7 @@ cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
        return NOTIFY_OK;
 }
 
-static struct notifier_block __devinitdata cpu_nfb = {
+static struct notifier_block cpu_nfb = {
        .notifier_call = cpu_callback
 };
 
index 8837737888361960307a2931177bd2a7d66631e7..d355d5a4d5ae608d2572c8f08b018952c7e52050 100644 (file)
@@ -1334,7 +1334,7 @@ static int __devinit timer_cpu_notify(struct notifier_block *self,
        return NOTIFY_OK;
 }
 
-static struct notifier_block __devinitdata timers_nb = {
+static struct notifier_block timers_nb = {
        .notifier_call  = timer_cpu_notify,
 };