Subject: Re: pseudo-device `rd' renamed to `md'
To: Iain Hibbert <plunky@skate.demon.co.uk>
From: Rob Healey <rob-healey@norstar.com>
List: current-users
Date: 12/31/1996 08:58:21
> On Sun, 29 Dec 1996, Paul Kranenburg wrote:
> 
> > The ram disk device `rd' has been renamed to `md', to avoid a name clash
> > with a real disk device called `rd' in the HP port.
> 
> Paul, I seem to be having a problem with this..  can't compile a new 
> kernel..  I have no "pseudo-device md" in my config file, and md.h 
> defines NMD as 0..  compiling conf.c gives me this though..
> 
> cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -I. 
> -I../../../../arch -I../../../.. -nostdinc -DSWAPPAGER -DVNODEPAGER 
> -DDEVPAGER -DEXEC_AOUT -DEXEC_SCRIPT -DSUN4C -DKTRACE -DSYSVMSG -DSYSVSEM 
> -DSYSVSHM -DLKM -DCOMPAT_43 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_12 
> -DCOMPAT_SUNOS -DFFS -DQUOTA -DKERNFS -DNULLFS -DMFS -DPROCFS -DCD9660 
> -DUNION -DFIFO -DINET -DTCP_COMPAT_42 -DRASTERCONSOLE -DMAXUSERS=8 
> -D_KERNEL  -c ../../../../arch/sparc/sparc/conf.c
> ../../../../arch/sparc/sparc/conf.c:91: `mdopen' undeclared here (not in a
> function) ../../../../arch/sparc/sparc/conf.c:91: initializer element for
> `bdevsw[5].d_open' is not constant ../../../../arch/sparc/sparc/conf.c:91:
> `mdclose' undeclared here (not in a function) 
../../../../arch/sparc/sparc/conf.c:91: initializer element for
`bdevsw[5].d_close' is not constant
> ../../../../arch/sparc/sparc/conf.c:91: `mdstrategy' undeclared here (not
> in a function) 
> 
> [etc for all the device entry points..] even if I add the pseudo-device to
> my config file, it still does it..  have you done something wrong, or have
> I not done something?  it does this even with the GENERIC file.. 
> 
	sparc/include/conf.h wasn't updated to declare md, it still has
	rd in it. Edit all copys of conf.h to declare md rather than rd
	and it will compile. I'd file a PR but I'm hip deep in a home purchase
	right now.

		-Rob