ide: fix Makefile for ide-disk_proc
Subsystems (2)
PATCH 1/1 ide: fix Makefile for ide-disk_proc
From: Randy Dunlap <[email protected]>
Fix ide-disk_proc build error due to 2 entries in Makefile, one of them being unconditional.
When CONFIG_IDE_PROC_FS=n, there are lots of errors/warnings:
linux-next-20080902/drivers/ide/ide-disk_proc.c:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ide_disk_proc' linux-next-20080902/drivers/ide/ide-disk_proc.c:109: warning: data definition has no type or storage class linux-next-20080902/drivers/ide/ide-disk_proc.c:109: warning: type defaults to 'int' in declaration of 'ide_devset_rw_field' linux-next-20080902/drivers/ide/ide-disk_proc.c:109: warning: parameter names (without types) in function declaration linux-next-20080902/drivers/ide/ide-disk_proc.c:110: warning: data definition has no type or storage class linux-next-20080902/drivers/ide/ide-disk_proc.c:110: warning: type defaults to 'int' in declaration of 'ide_devset_rw_field' linux-next-20080902/drivers/ide/ide-disk_proc.c:110: warning: parameter names (without types) in function declaration linux-next-20080902/drivers/ide/ide-disk_proc.c:111: warning: data definition has no type or storage class linux-next-20080902/drivers/ide/ide-disk_proc.c:111: warning: type defaults to 'int' in declaration of 'ide_devset_rw_field' linux-next-20080902/drivers/ide/ide-disk_proc.c:111: warning: parameter names (without types) in function declaration linux-next-20080902/drivers/ide/ide-disk_proc.c:112: warning: data definition has no type or storage class linux-next-20080902/drivers/ide/ide-disk_proc.c:112: warning: type defaults to 'int' in declaration of 'ide_devset_rw_field' linux-next-20080902/drivers/ide/ide-disk_proc.c:112: warning: parameter names (without types) in function declaration linux-next-20080902/drivers/ide/ide-disk_proc.c:113: warning: data definition has no type or storage class linux-next-20080902/drivers/ide/ide-disk_proc.c:113: warning: type defaults to 'int' in declaration of 'ide_devset_rw_field' linux-next-20080902/drivers/ide/ide-disk_proc.c:113: warning: parameter names (without types) in function declaration linux-next-20080902/drivers/ide/ide-disk_proc.c:114: warning: data definition has no type or storage class linux-next-20080902/drivers/ide/ide-disk_proc.c:114: warning: type defaults to 'int' in declaration of 'ide_devset_rw_field' linux-next-20080902/drivers/ide/ide-disk_proc.c:114: warning: parameter names (without types) in function declaration linux-next-20080902/drivers/ide/ide-disk_proc.c:116: error: array type has incomplete element type linux-next-20080902/drivers/ide/ide-disk_proc.c:117: error: implicit declaration of function 'IDE_PROC_DEVSET' linux-next-20080902/drivers/ide/ide-disk_proc.c:117: error: 'acoustic' undeclared here (not in a function) linux-next-20080902/drivers/ide/ide-disk_proc.c:118: error: 'address' undeclared here (not in a function) linux-next-20080902/drivers/ide/ide-disk_proc.c:119: error: 'bios_cyl' undeclared here (not in a function) linux-next-20080902/drivers/ide/ide-disk_proc.c:120: error: 'bios_head' undeclared here (not in a function) linux-next-20080902/drivers/ide/ide-disk_proc.c:121: error: 'bios_sect' undeclared here (not in a function) linux-next-20080902/drivers/ide/ide-disk_proc.c:122: error: 'failures' undeclared here (not in a function) linux-next-20080902/drivers/ide/ide-disk_proc.c:123: error: 'lun' undeclared here (not in a function) linux-next-20080902/drivers/ide/ide-disk_proc.c:124: error: 'max_failures' undeclared here (not in a function) linux-next-20080902/drivers/ide/ide-disk_proc.c:125: error: 'multcount' undeclared here (not in a function) linux-next-20080902/drivers/ide/ide-disk_proc.c:126: error: 'nowerr' undeclared here (not in a function) linux-next-20080902/drivers/ide/ide-disk_proc.c:127: error: 'wcache' undeclared here (not in a function) make[3]: *** [drivers/ide/ide-disk_proc.o] Error 1
--- drivers/ide/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ide/Makefile +1 -1
@@ -36,7 +36,7 @@ obj-$(CONFIG_IDE_H8300) += h8300/ obj-$(CONFIG_IDE_GENERIC) += ide-generic.o obj-$(CONFIG_BLK_DEV_IDEPNP) += ide-pnp.o -ide-disk_mod-y += ide-disk.o ide-disk_ioctl.o ide-disk_proc.o +ide-disk_mod-y += ide-disk.o ide-disk_ioctl.o ide-cd_mod-y += ide-cd.o ide-cd_ioctl.o ide-cd_verbose.o ide-floppy_mod-y += ide-floppy.o ide-floppy_ioctl.o
Quoted 6 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
Fix ide-disk_proc build error due to 2 entries in
Makefile, one of them being unconditional.When
CONFIG_IDE_PROC_FS=n, there are lots of errors/warnings:
Thanks but this was already fixed in pata tree
(http://lkml.org/lkml/2008/9/2/65).
Quoted 10 lines · Bartlomiej Zolnierkiewicz
Quoted 6 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
Fix ide-disk_proc build error due to 2 entries in
Makefile, one of them being unconditional.When
CONFIG_IDE_PROC_FS=n, there are lots of errors/warnings:Thanks but this was already fixed in pata tree
(http://lkml.org/lkml/2008/9/2/65).
Thanks, good to hear that...
Signature · 1 line
~Randy