]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/radeon: Constify struct pci_device_id
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 15 Nov 2024 17:26:06 +0000 (18:26 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Nov 2024 15:03:05 +0000 (10:03 -0500)
commitc3e3c1aac0bf25e0f3f9b1557766fc9b89fb318b
treeb527548885976c7103d41cab02be9e0295fc80c4
parente283f4fb0862647f4bb02e78d728bc8fb9eef18d
drm/radeon: Constify struct pci_device_id

'struct pci_device_id' is not modified in this driver.

Constifying this structure moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig:
Before:
======
   text    data     bss     dec     hex filename
  11984   28672      44   40700    9efc drivers/gpu/drm/radeon/radeon_drv.o

After:
=====
   text    data     bss     dec     hex filename
  40000     664      44   40708    9f04 drivers/gpu/drm/radeon/radeon_drv.o

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_drv.c