From: Michael Ellerman Date: Mon, 12 Aug 2024 06:33:12 +0000 (+1000) Subject: powerpc/modules: start/end_opd are only needed for ABI v1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f1c774ba91054a749573781f9e8fd652b9a1f633;p=users%2Fjedix%2Flinux-maple.git powerpc/modules: start/end_opd are only needed for ABI v1 The start_opd/end_opd members of struct mod_arch_specific are only needed for kernels built using ELF ABI v1. Guard them with an ifdef to save a little bit of space on ELF ABI v2 kernels. Signed-off-by: Michael Ellerman Link: https://patch.msgid.link/20240812063312.730496-1-mpe@ellerman.id.au --- diff --git a/arch/powerpc/include/asm/module.h b/arch/powerpc/include/asm/module.h index 9ee70a4a0fde1..e1ee5026ac4af 100644 --- a/arch/powerpc/include/asm/module.h +++ b/arch/powerpc/include/asm/module.h @@ -35,9 +35,11 @@ struct mod_arch_specific { bool toc_fixed; /* Have we fixed up .TOC.? */ #endif +#ifdef CONFIG_PPC64_ELF_ABI_V1 /* For module function descriptor dereference */ unsigned long start_opd; unsigned long end_opd; +#endif #else /* powerpc64 */ /* Indices of PLT sections within module. */ unsigned int core_plt_section;