aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2025-05-30 22:18:28 +0000
committerKees Cook <[email protected]>2025-06-01 15:41:11 +0000
commitf39f18f3c3531aa802b58a20d39d96e82eb96c14 (patch)
tree392a5538acf3cc660397e53c7ce1dffcfd9b18e0 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
parentoverflow: Introduce __DEFINE_FLEX for having no initializer (diff)
downloadkernel-f39f18f3c3531aa802b58a20d39d96e82eb96c14.tar.gz
kernel-f39f18f3c3531aa802b58a20d39d96e82eb96c14.zip
randstruct: gcc-plugin: Fix attribute addition
Based on changes in the 2021 public version of the randstruct out-of-tree GCC plugin[1], more carefully update the attributes on resulting decls, to avoid tripping checks in GCC 15's comptypes_check_enum_int() when it has been configured with "--enable-checking=misc": arch/arm64/kernel/kexec_image.c:132:14: internal compiler error: in comptypes_check_enum_int, at c/c-typeck.cc:1519 132 | const struct kexec_file_ops kexec_image_ops = { | ^~~~~~~~~~~~~~ internal_error(char const*, ...), at gcc/gcc/diagnostic-global-context.cc:517 fancy_abort(char const*, int, char const*), at gcc/gcc/diagnostic.cc:1803 comptypes_check_enum_int(tree_node*, tree_node*, bool*), at gcc/gcc/c/c-typeck.cc:1519 ... Link: https://archive.org/download/grsecurity/grsecurity-3.1-5.10.41-202105280954.patch.gz [1] Reported-by: Thiago Jung Bauermann <[email protected]> Closes: https://github.com/KSPP/linux/issues/367 Closes: https://lore.kernel.org/lkml/[email protected]/ Reported-by: Ingo Saitz <[email protected]> Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104745 Fixes: 313dd1b62921 ("gcc-plugins: Add the randstruct plugin") Tested-by: Thiago Jung Bauermann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
0 files changed, 0 insertions, 0 deletions