summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorLen Bao <len.bao@gmx.us>2026-05-23 18:07:35 +0300
committerJakub Kicinski <kuba@kernel.org>2026-05-26 00:17:40 +0300
commit3baa7ba4ab98af452925926ffc2ee58c683e3f28 (patch)
treea29157b276dfb3ccd7fa85b3fd924c1a4303be2d /include/uapi/linux
parentda91508bdd1d4438d431bf7f95de85968cce3f0e (diff)
downloadlinux-3baa7ba4ab98af452925926ffc2ee58c683e3f28.tar.xz
eth: dpaa2: constify dpaa2_ethtool_stats and dpaa2_ethtool_extras
The 'dpaa2_ethtool_stats' and 'dpaa2_ethtool_extras' structures are initialized in their declarations and never changed. So, constify them to reduce the attack surface. Before the patch (size dpaa2-ethtool.o): text data bss dec hex 33433 5992 0 39425 9a01 After the patch (size dpaa2-ethtool.o): text data bss dec hex 34937 4488 0 39425 9a01 Signed-off-by: Len Bao <len.bao@gmx.us> Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://patch.msgid.link/20260523150737.36988-1-len.bao@gmx.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions