kernel-ark/drivers
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
..
acorn
acpi [PATCH] introduce .valid callback for pm_ops 2005-10-30 17:37:15 -08:00
atm
base [PATCH] introduce get_cpu_sysdev() to retrieve a sysfs entry for a cpu. 2005-10-30 17:37:14 -08:00
block [PATCH] delete 2 unreachable statements in drivers/block/paride/pf.c 2005-10-30 17:37:18 -08:00
bluetooth
cdrom
char [PATCH] remove some more check_region stuff 2005-10-30 17:37:18 -08:00
connector
cpufreq [PATCH] create and destroy cpufreq sysfs entries based on cpu notifiers 2005-10-30 17:37:14 -08:00
crypto [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
dio
eisa
fc4
firmware [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
hwmon
i2c
ide [PATCH] protect ide_cdrom_capacity by ifdef 2005-10-30 17:37:19 -08:00
ieee1394
infiniband
input [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
isdn
macintosh
mca
md
media
message
mfd
misc
mmc
mtd
net [PATCH] remove some more check_region stuff 2005-10-30 17:37:18 -08:00
nubus
oprofile
parisc
parport
pci [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
pcmcia [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
pnp
s390 [PATCH] s390, ccw - export modalias 2005-10-30 17:37:16 -08:00
sbus
scsi [PATCH] ide-scsi highmem cleanup 2005-10-30 17:37:17 -08:00
serial
sh
sn
tc
telephony
usb
video [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
w1
zorro
Kconfig
Makefile