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

atm: fore200e: 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
20025 320 16 20361 4f89 drivers/atm/fore200e.o

File size After adding 'const':
text data bss dec hex filename
20089 256 16 20361 4f89 drivers/atm/fore200e.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
d5c5665d c21c5a7f

+1 -1
+1 -1
drivers/atm/fore200e.c
··· 2757 2757 } 2758 2758 2759 2759 2760 - static struct pci_device_id fore200e_pca_tbl[] = { 2760 + static const struct pci_device_id fore200e_pca_tbl[] = { 2761 2761 { PCI_VENDOR_ID_FORE, PCI_DEVICE_ID_FORE_PCA200E, PCI_ANY_ID, PCI_ANY_ID, 2762 2762 0, 0, (unsigned long) &fore200e_bus[0] }, 2763 2763 { 0, }