Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a4ee0df8b3d007f0d685d38a56dc0b91e01aaaf7
Commit:     a4ee0df8b3d007f0d685d38a56dc0b91e01aaaf7
Parent:     2cd614c8732172524c36cd5245620338928062b6
Author:     James Bottomley <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 23 09:53:51 2007 -0500
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Tue Jul 24 14:24:05 2007 -0400

    [SCSI] bsg: fix unused variable warnings for BLK_DEV_BSG=n
    
    Just using #defines for the
    bsg_register_queue()/bsg_unregister_queue() can cause undefined
    variables when they're defined to nothing.  Use dummy inline functions
    instead.
    
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 include/linux/bsg.h |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/include/linux/bsg.h b/include/linux/bsg.h
index 241eed0..102dc09 100644
--- a/include/linux/bsg.h
+++ b/include/linux/bsg.h
@@ -59,8 +59,13 @@ struct bsg_class_device {
 extern int bsg_register_queue(struct request_queue *, struct device *, const 
char *);
 extern void bsg_unregister_queue(struct request_queue *);
 #else
-#define bsg_register_queue(disk, dev, name)            (0)
-#define bsg_unregister_queue(disk)     do { } while (0)
+static inline int bsg_register_queue(struct request_queue * rq, struct device 
*dev, const char *name)
+{
+       return 0;
+}
+static inline void bsg_unregister_queue(struct request_queue *rq)
+{
+}
 #endif
 
 #endif /* __KERNEL__ */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to