Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/Kconfig: Select FUNCTION_ALIGNMENT_4B

Commit d49a0626216b95 ("arch: Introduce CONFIG_FUNCTION_ALIGNMENT")
introduced a generic function-alignment infrastructure. Move to using
FUNCTION_ALIGNMENT_4B on powerpc, to use the same alignment as that of
the existing _GLOBAL macro.

Signed-off-by: Sathvika Vasireddy <sv@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/21892186ec44abe24df0daf64f577dac0e78783f.1702045299.git.naveen@kernel.org

authored by

Sathvika Vasireddy and committed by
Michael Ellerman
b20f98e8 ae24db43

+1 -3
+1
arch/powerpc/Kconfig
··· 189 189 select EDAC_ATOMIC_SCRUB 190 190 select EDAC_SUPPORT 191 191 select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if ARCH_USING_PATCHABLE_FUNCTION_ENTRY 192 + select FUNCTION_ALIGNMENT_4B 192 193 select GENERIC_ATOMIC64 if PPC32 193 194 select GENERIC_CLOCKEVENTS_BROADCAST if SMP 194 195 select GENERIC_CMOS_UPDATE
-3
arch/powerpc/include/asm/linkage.h
··· 4 4 5 5 #include <asm/types.h> 6 6 7 - #define __ALIGN .align 2 8 - #define __ALIGN_STR ".align 2" 9 - 10 7 #ifdef CONFIG_PPC64_ELF_ABI_V1 11 8 #define cond_syscall(x) \ 12 9 asm ("\t.weak " #x "\n\t.set " #x ", sys_ni_syscall\n" \