[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZzwHg2nCqUsxMwqg@google.com>
Date: Mon, 18 Nov 2024 19:35:31 -0800
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Yassine Oudjana <y.oudjana@...tonmail.com>,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-input@...r.kernel.org
Subject: Re: [PATCH] Input: cypress-sf - Constify struct i2c_device_id
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 <christophe.jaillet@...adoo.fr>
Applied, thank you.
--
Dmitry
Powered by blists - more mailing lists