Re: [PATCH net-next] netconsole: Constify struct configfs_item_operations and configfs_group_operations
From: Breno Leitao
Date: Mon May 25 2026 - 12:18:35 EST
On Mon, May 25, 2026 at 02:23:00PM +0000, Christophe JAILLET wrote:
> 'struct configfs_item_operations' and 'configfs_group_operations' are not
> modified in this driver.
>
> Constifying these structures 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, as an example:
> Before:
> ======
> text data bss dec hex filename
> 64259 24272 608 89139 15c33 drivers/net/netconsole.o
>
> After:
> =====
> text data bss dec hex filename
> 64579 23952 608 89139 15c33 drivers/net/netconsole.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
Reviewed-by: Breno Leitao <leitao@xxxxxxxxxx>