linux-stable/drivers/peci
Christophe JAILLET 733dc978fa peci: npcm: Constify struct peci_controller_ops​
'struct peci_controller_ops' is not modified in this driver.

Constifying this structure 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:
Before:
======
   text	   data	    bss	    dec	    hex	filename
   8003	    784	     48	   8835	   2283	drivers/peci/controller/peci-npcm.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
   8003	    776	     48	   8827	   227b	drivers/peci/controller/peci-npcm.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Iwona Winiarska <iwona.winiarska@intel.com>
Link: https://lore.kernel.org/r/3c7d455745c2265c19ed02f026dfc9610271d3c2.1725692376.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com>
2024-10-25 10:58:07 +02:00
..
controller peci: npcm: Constify struct peci_controller_ops​ 2024-10-25 10:58:07 +02:00
core.c Driver core changes for 6.11-rc1 2024-07-25 10:42:22 -07:00
cpu.c peci, hwmon: Switch to new Intel CPU model defines 2024-06-17 15:15:46 +02:00
device.c peci, hwmon: Switch to new Intel CPU model defines 2024-06-17 15:15:46 +02:00
internal.h Driver core changes for 6.11-rc1 2024-07-25 10:42:22 -07:00
Kconfig peci: Add peci-cpu driver 2022-02-09 08:04:44 +01:00
Makefile peci: Add peci-cpu driver 2022-02-09 08:04:44 +01:00
request.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
sysfs.c driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00