aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorSaeed Mahameed <[email protected]>2022-03-22 17:22:24 +0000
committerJakub Kicinski <[email protected]>2022-03-22 23:48:56 +0000
commit2af7e566a8616c278e1d7287ce86cd3900bed943 (patch)
tree5943b30414466f1a66ea9cb2216a2270aa1d1138 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parentiwlwifi: mvm: Don't fail if PPAG isn't supported (diff)
downloadkernel-2af7e566a8616c278e1d7287ce86cd3900bed943.tar.gz
kernel-2af7e566a8616c278e1d7287ce86cd3900bed943.zip
net/mlx5e: Fix build warning, detected write beyond size of field
When merged with Linus tree, the cited patch below will cause the following build warning: In function 'fortify_memset_chk', inlined from 'mlx5e_xmit_xdp_frame' at drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c:438:3: include/linux/fortify-string.h:242:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning] 242 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix that by grouping the fields to memeset in struct_group() to avoid the false alarm. Fixes: 9ded70fa1d81 ("net/mlx5e: Don't prefill WQEs in XDP SQ in the multi buffer mode") Reported-by: Stephen Rothwell <[email protected]> Suggested-by: Stephen Rothwell <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions