]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
uio: Constify struct pci_device_id
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 19 Aug 2025 18:58:17 +0000 (20:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:57:04 +0000 (15:57 +0200)
commit511d7a35a438d5c37b9870fd4a0acab72b1aaf3e
treeb2d58efdd6bbeca72276a69caff2f8301210e45a
parent1da0ca4bdfd2ad7d2ad39d35beb18468e9bf09ef
uio: Constify struct pci_device_id

'struct pci_device_id' is not modified in these drivers.

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

On a x86_64, with allmodconfig, as an example:
Before:
======
   text    data     bss     dec     hex filename
   4073    1336       0    5409    1521 drivers/uio/uio_cif.o

After:
=====
   text    data     bss     dec     hex filename
   4233    1176       0    5409    1521 drivers/uio/uio_cif.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/114791f85f0f81531ca2169721eac4911dbe0865.1755629302.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_aec.c
drivers/uio/uio_cif.c
drivers/uio/uio_netx.c
drivers/uio/uio_sercos3.c