android_kernel_motorola_sm6375/arch/sh
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kees Cook 5abd2626ca sh: machvec: Use char[] for section boundaries
[ Upstream commit c5783af354688b24abd359f7086c282ec74de993 ]

As done for other sections, define the extern as a character array,
which relaxes many of the compiler-time object size checks, which would
otherwise assume it's a single long. Solves the following build error:

arch/sh/kernel/machvec.c: error: array subscript 'struct sh_machine_vector[0]' is partly outside array bounds of 'long int[1]' [-Werror=array-bounds]:  => 105:33

Cc: Yoshinori Sato <[email protected]>
Cc: Rich Felker <[email protected]>
Cc: [email protected]
Reported-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]/
Fixes: 9655ad03af ("sh: Fixup machvec support.")
Reviewed-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Acked-by: Rich Felker <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2022-10-26 13:22:21 +02:00
..
boards
boot
cchips
configs
drivers
include sh: machvec: Use char[] for section boundaries 2022-10-26 13:22:21 +02:00
kernel sh: machvec: Use char[] for section boundaries 2022-10-26 13:22:21 +02:00
lib
lib64
math-emu sh: math-emu: drop unused functions 2021-11-26 10:47:17 +01:00
mm
oprofile
tools
Kconfig
Kconfig.cpu
Kconfig.debug sh: fix kconfig unmet dependency warning for FRAME_POINTER 2021-11-26 10:47:17 +01:00
Makefile