blk-mq: fix sparse warning on missed __percpu annotation
authorMing Lei <tom.leiming@gmail.com>
Tue, 3 Jun 2014 03:24:06 +0000 (11:24 +0800)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:50 +0000 (12:54 -0600)
commit43aba12bf3ac28a8fe0e801f41743e425a150081
tree9d71f3a1d20d38727b77d97f98824bad2f5ab458
parent482c93337a4b81dacb69e96c407ae05755c5b3ab
blk-mq: fix sparse warning on missed __percpu annotation

'struct blk_mq_ctx' is  __percpu, so add the annotation
and fix the sparse warning reported from Fengguang:

[block:for-linus 2/3] block/blk-mq.h:75:16: sparse: incorrect
type in initializer (different address spaces)

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
include/linux/blkdev.h