aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2024-07-20 10:59:36 +0000
committerJon Mason <[email protected]>2024-09-20 14:50:38 +0000
commit35c87cb80d65859342611cbb7bd501d490452120 (patch)
treeb3344851e5b27db7dd8b799a2bcdd01050c8deba /lib/debugobjects.c
parentntb_perf: Fix printk format (diff)
downloadkernel-35c87cb80d65859342611cbb7bd501d490452120.tar.gz
kernel-35c87cb80d65859342611cbb7bd501d490452120.zip
ntb: Constify struct bus_type
'struct bus_type' is not modified in this driver. Constifying this structure moves some data to a read-only section, so increase overall security, especially when the structure holds some function pointers. On a x86_64, with allmodconfig: Before: ====== text data bss dec hex filename 69682 4593 152 74427 122bb drivers/ntb/ntb_transport.o 5847 448 32 6327 18b7 drivers/ntb/core.o After: ===== text data bss dec hex filename 69858 4433 152 74443 122cb drivers/ntb/ntb_transport.o 6007 288 32 6327 18b7 drivers/ntb/core.o Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Signed-off-by: Jon Mason <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions