Re: [PATCH] NFC: nci: uart: Constify struct tty_ldisc_ops

David Heidelberg <[email protected]>
Newsgroups org.kernel.vger.kernel-janitors,dev.linux.lists.oe-linux-nfc,org.kernel.vger.linux-kernel,org.kernel.vger.netdev
Message-ID <[email protected]>
On 10/05/2026 22:12, Christophe JAILLET wrote:
> 'struct tty_ldisc_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:
> Before:
> ======
>     text	   data	    bss	    dec	    hex	filename
>    11454	   3352	    256	  15062	   3ad6	net/nfc/nci/uart.o
> 
> After:
> =====
>     text	   data	    bss	    dec	    hex	filename
>    11646	   3160	    256	  15062	   3ad6	net/nfc/nci/uart.o
> 
> Signed-off-by: Christophe JAILLET <[email protected]>
> ---
> Compile tested only.
> ---
>   net/nfc/nci/uart.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied, thank you!

David Heidelberg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.