aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bsg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/bsg.h')
-rw-r--r--include/linux/bsg.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/bsg.h b/include/linux/bsg.h
index f415f89e0ac8..102dc096e1cb 100644
--- a/include/linux/bsg.h
+++ b/include/linux/bsg.h
@@ -53,15 +53,19 @@ struct bsg_class_device {
53 struct class_device *class_dev; 53 struct class_device *class_dev;
54 struct device *dev; 54 struct device *dev;
55 int minor; 55 int minor;
56 struct list_head list;
57 struct request_queue *queue; 56 struct request_queue *queue;
58}; 57};
59 58
60extern int bsg_register_queue(struct request_queue *, struct device *, const char *); 59extern int bsg_register_queue(struct request_queue *, struct device *, const char *);
61extern void bsg_unregister_queue(struct request_queue *); 60extern void bsg_unregister_queue(struct request_queue *);
62#else 61#else
63#define bsg_register_queue(disk, dev, name) (0) 62static inline int bsg_register_queue(struct request_queue * rq, struct device *dev, const char *name)
64#define bsg_unregister_queue(disk) do { } while (0) 63{
64 return 0;
65}
66static inline void bsg_unregister_queue(struct request_queue *rq)
67{
68}
65#endif 69#endif
66 70
67#endif /* __KERNEL__ */ 71#endif /* __KERNEL__ */