Re: Shouldn't CONFIG_BLK_DEV_HD_ONLY work?

Andre M. Hedrick (hedrick@astro.dyer.vanderbilt.edu)
Sun, 29 Nov 1998 18:23:58 -0600 (CST)


On Sun, 29 Nov 1998, Arjan van de Ven wrote:

> Yes it should work.
> I posted a patch for 2.1.130 earlier, but since it's small, I'll repeat
> it.
>
> Greetings,
> Arjan van de Ven
> Patch for linux 2.1.130
>
> diff -u -r linux/init/main.c /usr/src/linux/init/main.c
> --- linux/init/main.c Sun Nov 29 11:43:38 1998
> +++ /usr/src/linux/init/main.c Sun Nov 29 11:54:18 1998
> @@ -21,6 +21,7 @@
> #include <linux/init.h>
> #include <linux/smp_lock.h>
> #include <linux/blk.h>

#ifdef CONFIG_BLK_DEV_HD
#include <linux/hdreg.h>
#endif

This is my preferred solution if one is to be offered.
Since this effects only this compile combination, limiting the bulking of
a kernel is desired.

> #include <asm/io.h>
> #include <asm/bugs.h>
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>

Cheers,
Andre Hedrick
The IDE-FNG for Linux
The APC UPS Specialist for Linux

http://www.dyer.vanderbilt.edu/server/udma/
http://www.dyer.vanderbilt.edu/server/apcupsd/apcupsd-3.5.0.bin.tar.gz

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/