diff options
author | Kees Cook <[email protected]> | 2022-09-07 16:40:44 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2022-09-13 10:33:17 -0700 |
commit | c5783af354688b24abd359f7086c282ec74de993 (patch) | |
tree | 35b535230e5cf565b09ea6b23bda7c7312fbbdc5 /scripts/generate_rust_analyzer.py | |
parent | 66cb2a36a96f6facbcb4ef1db967b8e9ea6910fe (diff) |
sh: machvec: Use char[] for section boundaries
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: 9655ad03af2d ("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]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions