diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2007-07-17 08:18:47 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-07-17 08:18:47 -0400 |
commit | 13bd59a111760bb7cba8dcf17b6b55a0d99d3592 (patch) | |
tree | 36d209321d99ce803ba00fab14d5a1ce3244918f | |
parent | 319a7b7fb98f6927d6eedeb627f72f54c377f9ce (diff) |
Don't define empty struct bsg_class_device if !CONFIG_BLK_DEV_BSG
Don't define an empty struct bsg_class_device if !CONFIG_BLK_DEV_BSG.
It's embedded in struct request_queue, but there we have
#if defined(CONFIG_BLK_DEV_BSG)
struct bsg_class_device bsg_dev;
#endif
anyway.
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r-- | include/linux/bsg.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/bsg.h b/include/linux/bsg.h index bd998ca6cb2e..8547b10c388b 100644 --- a/include/linux/bsg.h +++ b/include/linux/bsg.h | |||
@@ -60,7 +60,6 @@ struct bsg_class_device { | |||
60 | extern int bsg_register_queue(struct request_queue *, const char *); | 60 | extern int bsg_register_queue(struct request_queue *, const char *); |
61 | extern void bsg_unregister_queue(struct request_queue *); | 61 | extern void bsg_unregister_queue(struct request_queue *); |
62 | #else | 62 | #else |
63 | struct bsg_class_device { }; | ||
64 | #define bsg_register_queue(disk, name) (0) | 63 | #define bsg_register_queue(disk, name) (0) |
65 | #define bsg_unregister_queue(disk) do { } while (0) | 64 | #define bsg_unregister_queue(disk) do { } while (0) |
66 | #endif | 65 | #endif |