diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-11-11 14:40:35 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2024-12-09 17:58:43 +0200 |
commit | 01e767d6f7832f1ef171816953547b466bba9937 (patch) | |
tree | 059bec99dd4c5370d70863b9831504eebc7104a0 /tools/perf/scripts/python/stackcollapse.py | |
parent | 52e8726d6782a14c7f9e0fea5a5bc8e6a1992fd4 (diff) |
wifi: wlcore: testmode: Constify strutc nla_policy
'struct nla_policy' 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
5062 528 0 5590 15d6 drivers/net/wireless/ti/wlcore/testmode.o
After:
=====
text data bss dec hex filename
5178 404 0 5582 15ce drivers/net/wireless/ti/wlcore/testmode.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/78810e3ebb74ddbd3a4538f182bf1143b89baba7.1731332414.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions