aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2007-03-30 05:19:39 -0400
committerJens Axboe <jens.axboe@oracle.com>2007-07-16 02:52:46 -0400
commit4cf0723ac89b5f2189da2ad07ef875de26b83c77 (patch)
tree24af887ee01094740f4e3c672bd614b9d5db69bc /block
parent292b7f27129272c9ec0ee5fa56abb6f9061b1d83 (diff)
bsg: minor bug fixes
This fixes the following minor issues: - add EXPORT_SYMBOL_GPL for bsg_register_queue and bsg_unregister_queue. - shut up gcc warnings Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Jens Axboe <axboe@nelson.home.kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/bsg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/bsg.c b/block/bsg.c
index 4ef3cc550244..a333c9337093 100644
--- a/block/bsg.c
+++ b/block/bsg.c
@@ -961,8 +961,9 @@ void bsg_unregister_queue(struct request_queue *q)
961 bsg_device_nr--; 961 bsg_device_nr--;
962 mutex_unlock(&bsg_mutex); 962 mutex_unlock(&bsg_mutex);
963} 963}
964EXPORT_SYMBOL_GPL(bsg_unregister_queue);
964 965
965int bsg_register_queue(struct request_queue *q, char *name) 966int bsg_register_queue(struct request_queue *q, const char *name)
966{ 967{
967 struct bsg_class_device *bcd, *__bcd; 968 struct bsg_class_device *bcd, *__bcd;
968 dev_t dev; 969 dev_t dev;
@@ -1025,6 +1026,7 @@ err:
1025 mutex_unlock(&bsg_mutex); 1026 mutex_unlock(&bsg_mutex);
1026 return ret; 1027 return ret;
1027} 1028}
1029EXPORT_SYMBOL_GPL(bsg_register_queue);
1028 1030
1029static int bsg_add(struct class_device *cl_dev, struct class_interface *cl_intf) 1031static int bsg_add(struct class_device *cl_dev, struct class_interface *cl_intf)
1030{ 1032{