]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: lib80211: Constify struct lib80211_crypto_ops
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 5 Aug 2024 06:40:38 +0000 (08:40 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 27 Aug 2024 08:28:51 +0000 (10:28 +0200)
commit1842442007cded42decd8c27ce84cfc570b8f5f4
treebbd4471cc92c6b09050dfccfd11166bf8ca9bf2b
parent3a3d1afd25ea2e142c78b67fb769df5be7d308c3
wifi: lib80211: Constify struct lib80211_crypto_ops

Now that functions in lib80211 handle "const struct lib80211_crypto_ops",
some structure can be constified as well.

Constifying these structures moves some data to a read-only section, so
increase overall security.

Before:
   text    data     bss     dec     hex filename
   7273     604      16    7893    1ed5 net/wireless/lib80211.o

After:
   text    data     bss     dec     hex filename
   7429     444      16    7889    1ed1 net/wireless/lib80211.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/0cc3741c15f2c502cc85bddda9d6582b5977c8f9.1722839425.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/lib80211.c
net/wireless/lib80211_crypt_ccmp.c
net/wireless/lib80211_crypt_tkip.c
net/wireless/lib80211_crypt_wep.c