diff options
author | Divyesh Shah <dpshah@google.com> | 2010-04-15 02:54:59 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-04-15 02:54:59 -0400 |
commit | b6ac23af2c66e114d3a87ef28d56f1ceec283007 (patch) | |
tree | f514445bea36dbeb2bc37f663a6f94275d484515 /block | |
parent | c0d97e9ca2cfa66bdfd1ed8ecb5dcd230924d675 (diff) |
blkio: fix for modular blk-cgroup build
After merging the block tree, 20100414's linux-next build (x86_64
allmodconfig) failed like this:
ERROR: "get_gendisk" [block/blk-cgroup.ko] undefined!
ERROR: "sched_clock" [block/blk-cgroup.ko] undefined!
This happens because the two symbols aren't exported and hence not available
when blk-cgroup code is built as a module. I've tried to stay consistent with
the use of EXPORT_SYMBOL or EXPORT_SYMBOL_GPL with the other symbols in the
respective files.
Signed-off-by: Divyesh Shah <dpshah@google.com>
Acked-by: Gui Jianfeng <guijianfeng@cn.fujitsu.cn>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/genhd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/genhd.c b/block/genhd.c index d13ba76a169c..154b5f80b3ab 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -596,6 +596,7 @@ struct gendisk *get_gendisk(dev_t devt, int *partno) | |||
596 | 596 | ||
597 | return disk; | 597 | return disk; |
598 | } | 598 | } |
599 | EXPORT_SYMBOL(get_gendisk); | ||
599 | 600 | ||
600 | /** | 601 | /** |
601 | * bdget_disk - do bdget() by gendisk and partition number | 602 | * bdget_disk - do bdget() by gendisk and partition number |