Re: [PATCH] md-cluster: Constify struct md_cluster_operations

From: Song Liu
Date: Thu Jul 04 2024 - 03:08:17 EST


On Mon, Jun 24, 2024 at 4:18 AM Christophe JAILLET
<christophe.jaillet@xxxxxxxxxx> wrote:
>
> 'struct md_cluster_operations' 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, as an example:
> Before:
> ======
> text data bss dec hex filename
> 51941 1442 80 53463 d0d7 drivers/md/md-cluster.o
>
> After:
> =====
> text data bss dec hex filename
> 52133 1246 80 53459 d0d3 drivers/md/md-cluster.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>

Applied to md-6.11. Thanks!

Song