• Arvind Yadav's avatar
    infiniband: nes: constify pci_device_id. · edb56691
    Arvind Yadav authored
    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
      10429	    780	     33	  11242	   2bea	drivers/infiniband/hw/nes/nes.o
    
    File size After adding 'const':
       text	   data	    bss	    dec	    hex	filename
      10541	    668	     33	  11242	   2bea	drivers/infiniband/hw/nes/nes.o
    Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    edb56691
nes.c 31.4 KB