public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix current BK tree compilation with devfs enabled
@ 2002-08-12 21:29 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2002-08-12 21:29 UTC (permalink / raw)
  To: marcelo; +Cc: linux-kernel


Not that I care for devfs, but there was at least one report on lkml.

I tried to also put the devfs_handle_t under CONFIG_DEVFS_FS, but the
devfs wrappers require it.  And yes, I'm seriously pissed that devfs
puts wordsize objects everywhere even if not enabled.


--- linux-2.4.20-bk-20020810/include/linux/genhd.h	Sat Aug 10 14:37:16 2002
+++ linux/include/linux/genhd.h	Mon Aug 12 23:40:37 2002
@@ -62,7 +62,9 @@ struct hd_struct {
 	unsigned long start_sect;
 	unsigned long nr_sects;
 	devfs_handle_t de;              /* primary (master) devfs entry  */
-
+#ifdef CONFIG_DEVFS_FS
+	int number;
+#endif /* CONFIG_DEVFS_FS */
 #ifdef CONFIG_BLK_STATS
 	/* Performance stats: */
 	unsigned int ios_in_flight;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-12 21:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-12 21:29 [PATCH] fix current BK tree compilation with devfs enabled Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox