fix current BK tree compilation with devfs enabled
PATCH 1/1 fix current BK tree compilation with devfs enabled
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.
include/linux/genhd.h +3 -1
@@ -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;