linux/arch/powerpc
Huang Xiaojia 7492ca369e powerpc: powernv: Constify struct kobj_type
'struct kobj_type' is not modified. It is only used in kobject_init()
which takes a 'const struct kobj_type *ktype' parameter.

Constifying this structure moves some data to a read-only section,
so increase over all security.

On a x86_64, compiled with ppc64 defconfig:
Before:
======
   text	   data	    bss	    dec	    hex	filename
   3775	    256	      8	   4039	    fc7	arch/powerpc/platforms/powernv/opal-dump.o
   2679	    260	      8	   2947	    b83	arch/powerpc/platforms/powernv/opal-elog.o

After:
======
   text	   data	    bss	    dec	    hex	filename
   3823	    208	      8	   4039	    fc7	arch/powerpc/platforms/powernv/opal-dump.o
   2727	    212	      8	   2947	    b83	arch/powerpc/platforms/powernv/opal-elog.o

Signed-off-by: Huang Xiaojia <huangxiaojia2@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240826150957.3500237-2-huangxiaojia2@huawei.com
2024-09-05 22:25:36 +10:00
..
boot powerpc: Remove 40x leftovers 2024-07-12 11:43:41 +10:00
configs powerpc/configs/64s: Enable DEFERRED_STRUCT_PAGE_INIT 2024-08-29 22:18:09 +10:00
crypto This update includes the following changes: 2024-07-19 08:52:58 -07:00
include powerpc/pseries/dlpar: Remove device tree node for DLPAR IO remove 2024-08-30 21:31:25 +10:00
kernel powerpc: Constify struct kobj_type 2024-09-05 22:25:36 +10:00
kexec powerpc updates for 6.11 2024-07-19 21:00:33 -07:00
kvm a couple of leaks on failure exits missing fdput() 2024-07-26 10:26:33 -07:00
lib powerpc/code-patching: Add boot selftest for data patching 2024-08-21 20:15:13 +10:00
math-emu
mm powerpc/603: Copy kernel PGD entries into all PGDIRs and preallocate execmem page tables 2024-08-30 21:29:54 +10:00
net powerpc updates for 6.11 2024-07-19 21:00:33 -07:00
perf powerpc/perf: Set cpumode flags using sample address 2024-06-17 22:47:16 +10:00
platforms powerpc: powernv: Constify struct kobj_type 2024-09-05 22:25:36 +10:00
purgatory Makefile: remove redundant tool coverage variables 2024-05-14 23:35:48 +09:00
sysdev of: remove internal arguments from of_property_for_each_u32() 2024-07-25 06:53:47 -05:00
tools powerpc/tools: Pass -mabi=elfv2 to gcc-check-mprofile-kernel.sh 2023-10-20 17:46:33 +11:00
xmon powerpc/xmon: Fix tmpstr length check in scanhex 2024-08-27 17:10:55 +10:00
Kbuild powerpc: Fix fatal warnings flag for LLVM's integrated assembler 2024-04-08 16:06:41 +10:00
Kconfig powerpc/32s: Reduce default size of module/execmem area 2024-08-30 21:29:54 +10:00
Kconfig.debug powerpc: Remove 40x from Kconfig and defconfig 2024-06-28 22:28:47 +10:00
Makefile powerpc: Remove 40x from Kconfig and defconfig 2024-06-28 22:28:47 +10:00
Makefile.postlink kbuild: remove ARCH_POSTLINK from module builds 2023-10-28 21:10:08 +09:00