Re: [PATCH] scsi: Constify struct pci_error_handlers

From: Martin K. Petersen
Date: Sun Feb 09 2025 - 22:00:23 EST


On Sun, 19 Jan 2025 21:29:39 +0100, Christophe JAILLET wrote:

> 'struct pci_error_handlers' are not modified in these drivers.
>
> 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, as an example:
> Before:
> ======
> text data bss dec hex filename
> 39049 6429 112 45590 b216 drivers/scsi/aacraid/linit.o
>
> [...]

Applied to 6.15/scsi-queue, thanks!

[1/1] scsi: Constify struct pci_error_handlers
https://git.kernel.org/mkp/scsi/c/14807b4a4e03

--
Martin K. Petersen Oracle Linux Engineering