[PATCH -next] blkdev.h: fix warnings when CONFIG_BLOCK=n

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy.Dunlap
Date: Tuesday, September 16, 2008 - 12:29 pm

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix lots of build warnings when CONFIG_BLOCK=n:

linux-next-20080916/include/linux/blkdev.h:1093: warning: 'struct block_device' declared inside parameter list
linux-next-20080916/include/linux/blkdev.h:1093: warning: its scope is only this definition or declaration, which is probably not what you want
linux-next-20080916/include/linux/blkdev.h:1097: warning: 'struct gendisk' declared inside parameter list
linux-next-20080916/include/linux/blkdev.h:1105: warning: 'struct hd_geometry' declared inside parameter list

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 include/linux/blkdev.h |    4 ++++
 1 file changed, 4 insertions(+)

--- linux-next-20080916.orig/include/linux/blkdev.h
+++ linux-next-20080916/include/linux/blkdev.h
@@ -1089,6 +1089,10 @@ static inline long nr_blockdev_pages(voi
 
 #endif /* CONFIG_BLOCK */
 
+struct block_device;
+struct gendisk;
+struct hd_geometry;
+
 extern int __blkdev_driver_ioctl(struct block_device *, fmode_t, unsigned int,
 				 unsigned long);
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for September 16, Stephen Rothwell, (Tue Sep 16, 12:34 am)
Re: linux-next: Tree for September 16, Takashi Iwai, (Tue Sep 16, 11:00 am)
Re: linux-next: Tree for September 16 (cpustr.h), Randy.Dunlap, (Tue Sep 16, 11:50 am)
[PATCH -next] blkdev.h: fix warnings when CONFIG_BLOCK=n, Randy.Dunlap, (Tue Sep 16, 12:29 pm)
Re: linux-next: Tree for September 16 (cpustr.h), H. Peter Anvin, (Tue Sep 16, 1:48 pm)
Re: [PATCH -next] blkdev.h: fix warnings when CONFIG_BLOCK=n, Stephen Rothwell, (Tue Sep 16, 3:16 pm)
Re: linux-next: Tree for September 16 (cpustr.h), Randy Dunlap, (Fri Sep 19, 1:28 pm)