Skip to content

Commit

Permalink
Don't define empty struct bsg_class_device if !CONFIG_BLK_DEV_BSG
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Geert Uytterhoeven authored and Jens Axboe committed Jul 17, 2007
1 parent 319a7b7 commit 13bd59a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/linux/bsg.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ struct bsg_class_device {
extern int bsg_register_queue(struct request_queue *, const char *);
extern void bsg_unregister_queue(struct request_queue *);
#else
struct bsg_class_device { };
#define bsg_register_queue(disk, name) (0)
#define bsg_unregister_queue(disk) do { } while (0)
#endif
Expand Down

0 comments on commit 13bd59a

Please sign in to comment.