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

atm: firestream: constify pci_device_id.

pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by <linux/pci.h> work with
const pci_device_id. So mark the non-const structs as const.

File size before:
text data bss dec hex filename
16884 444 28 17356 43cc drivers/atm/firestream.o

File size After adding 'const':
text data bss dec hex filename
16980 348 28 17356 43cc drivers/atm/firestream.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Arvind Yadav and committed by
David S. Miller
0fdfb33b aea39c7f

+1 -1
+1 -1
drivers/atm/firestream.c
··· 2030 2030 func_exit (); 2031 2031 } 2032 2032 2033 - static struct pci_device_id firestream_pci_tbl[] = { 2033 + static const struct pci_device_id firestream_pci_tbl[] = { 2034 2034 { PCI_VDEVICE(FUJITSU_ME, PCI_DEVICE_ID_FUJITSU_FS50), FS_IS50}, 2035 2035 { PCI_VDEVICE(FUJITSU_ME, PCI_DEVICE_ID_FUJITSU_FS155), FS_IS155}, 2036 2036 { 0, }