Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sata_sil24: Use const

Reduce data by using const.

$ size drivers/ata/sata_sil24.o*
text data bss dec hex filename
12764 614 2688 16066 3ec2 drivers/ata/sata_sil24.o.new
12320 1058 2688 16066 3ec2 drivers/ata/sata_sil24.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by

Joe Perches and committed by
Jeff Garzik
fc8cc1d5 5e5a4f5d

+2 -2
+2 -2
drivers/ata/sata_sil24.c
··· 268 268 struct sil24_atapi_block atapi; 269 269 }; 270 270 271 - static struct sil24_cerr_info { 271 + static const struct sil24_cerr_info { 272 272 unsigned int err_mask, action; 273 273 const char *desc; 274 274 } sil24_cerr_db[] = { ··· 1019 1019 1020 1020 /* deal with command error */ 1021 1021 if (irq_stat & PORT_IRQ_ERROR) { 1022 - struct sil24_cerr_info *ci = NULL; 1022 + const struct sil24_cerr_info *ci = NULL; 1023 1023 unsigned int err_mask = 0, action = 0; 1024 1024 u32 context, cerr; 1025 1025 int pmp;