tmp_suning_uos_patched/drivers/ide
Amos Waterland d97b321425 [PATCH] protect ide_cdrom_capacity by ifdef
The only call to ide_cdrom_capacity is in code protected by
CONFIG_PROC_FS, so when that is not enabled, the compiler complains:

 drivers/ide/ide-cd.c:3259: warning: `ide_cdrom_capacity' defined but not used

Here is a patch that fixes that.  It provides some space savings for
embedded systems that are not using procfs, as well:

     text    data     bss     dec     hex filename
 -  33540    6504    1032   41076    a074 drivers/ide/ide-cd.o
 +  33468    6480    1032   40980    a014 drivers/ide/ide-cd.o

Signed-off-by: Amos Waterland <apw@us.ibm.com>
Cc: Jens Axboe <axboe@suse.de>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-30 17:37:19 -08:00
..
arm
cris
h8300
legacy
mips Cleaned up AMD Au1200 IDE driver: 2005-10-29 19:32:20 +01:00
pci
ppc
ide-cd.c [PATCH] protect ide_cdrom_capacity by ifdef 2005-10-30 17:37:19 -08:00
ide-cd.h
ide-disk.c
ide-dma.c
ide-floppy.c
ide-generic.c
ide-io.c
ide-iops.c
ide-lib.c
ide-pnp.c
ide-probe.c
ide-proc.c Cleaned up AMD Au1200 IDE driver: 2005-10-29 19:32:20 +01:00
ide-tape.c
ide-taskfile.c
ide-timing.h
ide.c
Kconfig Cleaned up AMD Au1200 IDE driver: 2005-10-29 19:32:20 +01:00
Makefile
setup-pci.c