提交 4cf0723a 编写于 作者: F FUJITA Tomonori 提交者: Jens Axboe

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: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: NJens Axboe <axboe@nelson.home.kernel.dk>
上级 292b7f27
...@@ -961,8 +961,9 @@ void bsg_unregister_queue(struct request_queue *q) ...@@ -961,8 +961,9 @@ void bsg_unregister_queue(struct request_queue *q)
bsg_device_nr--; bsg_device_nr--;
mutex_unlock(&bsg_mutex); mutex_unlock(&bsg_mutex);
} }
EXPORT_SYMBOL_GPL(bsg_unregister_queue);
int bsg_register_queue(struct request_queue *q, char *name) int bsg_register_queue(struct request_queue *q, const char *name)
{ {
struct bsg_class_device *bcd, *__bcd; struct bsg_class_device *bcd, *__bcd;
dev_t dev; dev_t dev;
...@@ -1025,6 +1026,7 @@ int bsg_register_queue(struct request_queue *q, char *name) ...@@ -1025,6 +1026,7 @@ int bsg_register_queue(struct request_queue *q, char *name)
mutex_unlock(&bsg_mutex); mutex_unlock(&bsg_mutex);
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(bsg_register_queue);
static int bsg_add(struct class_device *cl_dev, struct class_interface *cl_intf) static int bsg_add(struct class_device *cl_dev, struct class_interface *cl_intf)
{ {
......
...@@ -51,7 +51,7 @@ struct bsg_class_device { ...@@ -51,7 +51,7 @@ struct bsg_class_device {
struct request_queue *queue; struct request_queue *queue;
}; };
extern int bsg_register_queue(struct request_queue *, char *); extern int bsg_register_queue(struct request_queue *, const char *);
extern void bsg_unregister_queue(struct request_queue *); extern void bsg_unregister_queue(struct request_queue *);
#else #else
struct bsg_class_device { }; struct bsg_class_device { };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册