Re: [PATCH] pinctrl: ocelot: Constify some structures

From: Linus Walleij
Date: Fri Dec 20 2024 - 07:49:27 EST


On Thu, Dec 12, 2024 at 6:13 PM Christophe JAILLET
<christophe.jaillet@xxxxxxxxxx> wrote:

> 'struct ocelot_match_data and 'struct irq_chip' are not modified in this
> driver.
>
> Constifying these structures moves some data to a read-only section, so
> increase overall security, especially when the structure holds some
> function pointers.
>
> On a x86_64, with allmodconfig:

Patch applied!

Yours,
Linus Walleij