aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSatyam Sharma <satyam@infradead.org>2007-08-23 03:29:40 -0400
committerJens Axboe <axboe@carl.home.kernel.dk>2007-10-10 03:25:56 -0400
commitdb47d475371bc85dd122112e957669cbbcc70dee (patch)
tree9e662c8521012485fd6dc3eac74f79572571e458
parent6c92e699b56287da582ccb12a64b959b6d6109ba (diff)
ll_rw_blk: blk_cpu_notifier should be __cpuinitdata
blk_cpu_notifier is marked as __devinitdata, but __devinitdata need not be __init even if HOTPLUG_CPU=n, which wastes space. It should be marked __cpuinitdata, and the callback itself as __cpuinit. Signed-off-by: Satyam Sharma <satyam@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--block/ll_rw_blk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
index c6b2a477d33e..3b2eff4e83a6 100644
--- a/block/ll_rw_blk.c
+++ b/block/ll_rw_blk.c
@@ -3555,7 +3555,7 @@ static void blk_done_softirq(struct softirq_action *h)
3555 } 3555 }
3556} 3556}
3557 3557
3558static int blk_cpu_notify(struct notifier_block *self, unsigned long action, 3558static int __cpuinit blk_cpu_notify(struct notifier_block *self, unsigned long action,
3559 void *hcpu) 3559 void *hcpu)
3560{ 3560{
3561 /* 3561 /*
@@ -3576,7 +3576,7 @@ static int blk_cpu_notify(struct notifier_block *self, unsigned long action,
3576} 3576}
3577 3577
3578 3578
3579static struct notifier_block __devinitdata blk_cpu_notifier = { 3579static struct notifier_block blk_cpu_notifier __cpuinitdata = {
3580 .notifier_call = blk_cpu_notify, 3580 .notifier_call = blk_cpu_notify,
3581}; 3581};
3582 3582