lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0809161226230.32267@shark.he.net>
Date:	Tue, 16 Sep 2008 12:29:21 -0700 (PDT)
From:	"Randy.Dunlap" <rdunlap@...otime.net>
To:	Stephen Rothwell <sfr@...b.auug.org.au>
cc:	linux-next@...r.kernel.org, akpm@...ux-foundation.org,
	LKML <linux-kernel@...r.kernel.org>, axboe@...nel.dk
Subject: [PATCH -next] blkdev.h: fix warnings when CONFIG_BLOCK=n

From: Randy Dunlap <randy.dunlap@...cle.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@...cle.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);
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ