diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2025-10-26 11:51:04 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-28 15:35:15 +0100 |
| commit | abf640a2436f3cd21f3d63eeccb332b4056adb9e (patch) | |
| tree | 79a6de4a31bf623ed17440dc9ada39cdff49f6d1 /tools/lib/python/kdoc/git@git.tavy.me:linux.git | |
| parent | b9d87b41f96fa2993bc86f3613ea57c5e5e5f389 (diff) | |
xen/usb: Constify struct hc_driver
'struct hc_driver' is not modified in this driver.
Constifying this structure moves some data to a read-only section, so
increases overall security, especially when the structure holds some
function pointers.
On a x86_64, with allmodconfig, as an example:
Before:
======
text data bss dec hex filename
52065 23176 256 75497 126e9 drivers/usb/host/xen-hcd.o
After:
=====
text data bss dec hex filename
52897 22344 256 75497 126e9 drivers/usb/host/xen-hcd.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/63241c9e857646d895ce615b998d41ee4829f9e3.1761475831.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
