diff options
-rw-r--r-- | block/bsg.c | 4 | ||||
-rw-r--r-- | include/linux/bsg.h | 2 |
2 files changed, 4 insertions, 2 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 | } |
964 | EXPORT_SYMBOL_GPL(bsg_unregister_queue); | ||
964 | 965 | ||
965 | int bsg_register_queue(struct request_queue *q, char *name) | 966 | int 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 | } |
1029 | EXPORT_SYMBOL_GPL(bsg_register_queue); | ||
1028 | 1030 | ||
1029 | static int bsg_add(struct class_device *cl_dev, struct class_interface *cl_intf) | 1031 | static int bsg_add(struct class_device *cl_dev, struct class_interface *cl_intf) |
1030 | { | 1032 | { |
diff --git a/include/linux/bsg.h b/include/linux/bsg.h index 0475a6d3ff6a..0dd01f90ba5e 100644 --- a/include/linux/bsg.h +++ b/include/linux/bsg.h | |||
@@ -51,7 +51,7 @@ struct bsg_class_device { | |||
51 | struct request_queue *queue; | 51 | struct request_queue *queue; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | extern int bsg_register_queue(struct request_queue *, char *); | 54 | extern int bsg_register_queue(struct request_queue *, const char *); |
55 | extern void bsg_unregister_queue(struct request_queue *); | 55 | extern void bsg_unregister_queue(struct request_queue *); |
56 | #else | 56 | #else |
57 | struct bsg_class_device { }; | 57 | struct bsg_class_device { }; |