Thread (2 messages) 2 messages, 2 authors, 2024-11-19

Re: [PATCH] Input: cypress-sf - Constify struct i2c_device_id

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2024-11-19 03:35:35
Also in: kernel-janitors, lkml

On Fri, Nov 15, 2024 at 05:50:37PM +0100, Christophe JAILLET wrote:
'struct i2c_device_id' is not modified in this driver.

Constifying this structure 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
   6438	    618	      0	   7056	   1b90	drivers/input/keyboard/cypress-sf.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
   6502	    554	      0	   7056	   1b90	drivers/input/keyboard/cypress-sf.o

Signed-off-by: Christophe JAILLET <redacted>
Applied, thank you.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help