Searched hist:"01 fa2fae5a0b0f1c7c7c4afb336fff0278161432" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/dma/ioat/ |
H A D | init.c | diff 01fa2fae5a0b0f1c7c7c4afb336fff0278161432 Mon Jul 17 18:09:00 CEST 2017 Arvind Yadav <arvind.yadav.cs@gmail.com> dmaengine: ioat: 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 12582 3056 16 15654 3d26 drivers/dma/ioat/init.o
File size After adding 'const': text data bss dec hex filename 14773 865 16 15654 3d26 drivers/dma/ioat/init.o
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
|