Re: [PATCH v2] wifi: ath12k: Constify struct ath12k_dp_arch_ops

Rameshkumar Sundaram <[email protected]> Thu, 16 Jul 2026 22:52:16 +0530
Newsgroups org.kernel.vger.kernel-janitors,org.infradead.lists.ath12k,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless
Message-ID <[email protected]>
On 7/14/2026 2:09 PM, Christophe JAILLET wrote:
> 'struct ath12k_dp_arch_ops' is not modified in this driver.
> 
> Constifying this structure moves some data to a read-only section, so
> increases overall security, especially when the structure holds some
> function pointers.
> 
> On a x86_64, with allmodconfig, as an example:
> Before:
> ======
>     text	   data	    bss	    dec	    hex	filename
>     6318	   3384	      0	   9702	   25e6	drivers/net/wireless/ath/ath12k/wifi7/dp.o
> 
> After:
> =====
>     text	   data	    bss	    dec	    hex	filename
>     6478	   3224	      0	   9702	   25e6	drivers/net/wireless/ath/ath12k/wifi7/dp.o
> 
> Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Rameshkumar Sundaram <[email protected]>