[Thinstation-developer] C question, can someone help
Brought to you by:
doncuppjr
From: Miles R. <mr...@xt...> - 2005-07-21 10:29:22
|
Hi All, Can anyone answer why this is failing to compile. Trying to compile the 2.6.12 kernel with an updated version of supermount. I suspect its erroring due to a gcc2.95 problem. drivers/ide/ide-cd.c: In function `idecd_mediactl': drivers/ide/ide-cd.c:3428: parse error before `struct' drivers/ide/ide-cd.c:3429: `disk' undeclared (first use in this function) drivers/ide/ide-cd.c:3429: (Each undeclared identifier is reported only once drivers/ide/ide-cd.c:3429: for each function it appears in.) drivers/ide/ide-cd.c:3430: parse error before `*' drivers/ide/ide-cd.c:3431: `drive' undeclared (first use in this function) drivers/ide/ide-cd.c:3432: parse error before `struct' drivers/ide/ide-cd.c:3433: `info' undeclared (first use in this function) make[2]: *** [drivers/ide/ide-cd.o] Error 1 make[1]: *** [drivers/ide] Error 2 make: *** [drivers] Error 2 the relevant source section is #if defined(CONFIG_SUPERMOUNT) || defined(CONFIG_SUPERMOUNT_MODULE) static int idecd_mediactl(struct block_device *bdev, int op, int arg) { if (!bdev) return -EINVAL; struct gendisk *disk = bdev->bd_disk; if (!disk) return -EINVAL; ide_drive_t *drive = disk->private_data; if (!drive) return -EINVAL; struct cdrom_info *info = drive->driver_data; if (info) return cdrom_mediactl(&info->devinfo, bdev, op, arg); return -EINVAL; } #endif Any ideas? Thanks Miles |