[PATCH] FRV: Make BSG declarations dependent on CONFIG_BLOCK

Previous thread: request for information about the "ath5k" licensing by Reyk Floeter on Wednesday, September 5, 2007 - 11:18 am. (5 messages)

Next thread: modinfo <modulename> question by Justin Piszcz on Wednesday, September 5, 2007 - 12:34 pm. (6 messages)
To: <jens.axboe@...>
Cc: <dhowells@...>, <linux-kernel@...>
Date: Wednesday, September 5, 2007 - 11:23 am

From: David Howells <dhowells@redhat.com>

Make BSG function declarations dependent on CONFIG_BLOCK as they are not
compilable if the block layer is compiled out.

Signed-off-by: David Howells <dhowells@redhat.com>
---

include/linux/bsg.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/bsg.h b/include/linux/bsg.h
index 60e377b..28f5d44 100644
--- a/include/linux/bsg.h
+++ b/include/linux/bsg.h
@@ -52,6 +52,7 @@ struct sg_io_v4 {
};

#ifdef __KERNEL__
+#ifdef CONFIG_BLOCK

#if defined(CONFIG_BLK_DEV_BSG)
struct bsg_class_device {
@@ -73,6 +74,7 @@ static inline void bsg_unregister_queue(struct request_queue *rq)
}
#endif

+#endif /* CONFIG_BLOCK */
#endif /* __KERNEL__ */

#endif

-

To: David Howells <dhowells@...>
Cc: <linux-kernel@...>
Date: Wednesday, September 5, 2007 - 11:56 am

Thanks David, I did seem to have lost it. Will apply!

--
Jens Axboe

-

Previous thread: request for information about the "ath5k" licensing by Reyk Floeter on Wednesday, September 5, 2007 - 11:18 am. (5 messages)

Next thread: modinfo <modulename> question by Justin Piszcz on Wednesday, September 5, 2007 - 12:34 pm. (6 messages)