aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2019-10-03 17:11:21 +0000
committerChristian Brauner <[email protected]>2019-10-03 19:13:27 +0000
commit341115822f8832f0c2d8af2f7e151c4c9a77bcd1 (patch)
treebb30a7babcf846bf5e7c03b1f5c7ac9a85743262 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentperf_event_open: switch to copy_struct_from_user() (diff)
downloadkernel-341115822f8832f0c2d8af2f7e151c4c9a77bcd1.tar.gz
kernel-341115822f8832f0c2d8af2f7e151c4c9a77bcd1.zip
usercopy: Add parentheses around assignment in test_copy_struct_from_user
Clang warns: lib/test_user_copy.c:96:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ret |= test(umem_src == NULL, "kmalloc failed")) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/test_user_copy.c:96:10: note: place parentheses around the assignment to silence this warning if (ret |= test(umem_src == NULL, "kmalloc failed")) ^ ( ) lib/test_user_copy.c:96:10: note: use '!=' to turn this compound assignment into an inequality comparison if (ret |= test(umem_src == NULL, "kmalloc failed")) ^~ != Add the parentheses as it suggests because this is intentional. Fixes: f5a1a536fa14 ("lib: introduce copy_struct_from_user() helper") Link: https://github.com/ClangBuiltLinux/linux/issues/731 Signed-off-by: Nathan Chancellor <[email protected]> Acked-by: Aleksa Sarai <[email protected]> Acked-by: Christian Brauner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions