From: eric@tantalus.nrl.navy.mil (Eric Youngdale) Subject: Re: 0.97p6: Undefined symbol _check_cdrom_media_change Date: 25 Sep 1992 13:12:25 GMT
In article <1992Sep25.003024.7420@m.cs.uiuc.edu> najem@dante.cs.uiuc.edu (Ziad Najem) writes:
>>fs/fs.o: Undefined symbol _check_cdrom_media_change referenced from text segment
>I assume you #undef'ined CONFIG_BLK_DEV_SR. If so, then in file
>fs/buffer.c, in function check_disk_change(), wrap case 11 with
>
>#ifdef CONFIG_BLK_DEV_SR
> case 11: /* CDROM */
> i = check_cdrom_media_change(dev, 0);
> if (i) printk("Flushing buffers and inodes for CDROM\n");
> break;
>#endif
The above suggestion should already be in the kernel. The problem
is that if you follow the recipe for removing the scsi drivers from the kernel,
you undefine CONFIG_SCSI, but not CONFIG_BLK_DEV_SR. Therefore what you need
to do is change the above ifdef to the following:
#if defined(CONFIG_BLK_DEV_SR) && defined(CONFIG_SCSI)
.
.
.
#endif
-- Eric Youngdale eric@tantalus.nrl.navy.mil