]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath10k: Constify structures in hw.c
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 19 Apr 2025 08:29:17 +0000 (10:29 +0200)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Fri, 16 May 2025 17:34:16 +0000 (10:34 -0700)
commitbd8402eec9aa3f9d6c797bd51b3c5b4b029673af
tree7218f8da2d184c38f92ea723a196e24313d4a058
parent2ef2d31925f0414ff0f37862b6c33f62b49089c5
wifi: ath10k: Constify structures in hw.c

Structures defined in hw.c are not modified in this driver.

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

On a x86_64, with allmodconfig:
Before:
======
   text    data     bss     dec     hex filename
  10357     951       0   11308    2c2c drivers/net/wireless/ath/ath10k/hw.o

After:
=====
   text    data     bss     dec     hex filename
  11125     203       0   11328    2c40 drivers/net/wireless/ath/ath10k/hw.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Baochen Qiang <quic_bqiang@quicinc.com>
Link: https://patch.msgid.link/504b4d5276d13f5f9c3bffcfdaf244006312c22b.1745051315.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath10k/ce.c
drivers/net/wireless/ath/ath10k/hw.c
drivers/net/wireless/ath/ath10k/hw.h