aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <[email protected]>2019-01-02 20:57:49 +0000
committerMiguel Ojeda <[email protected]>2019-01-09 10:36:41 +0000
commit3e2ffd655cc6a694608d997738989ff5572a8266 (patch)
tree404f9e5008513f378ebfb74b94e8723ca63113b5 /drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
parentLinux 5.0-rc1 (diff)
downloadkernel-3e2ffd655cc6a694608d997738989ff5572a8266.tar.gz
kernel-3e2ffd655cc6a694608d997738989ff5572a8266.zip
include/linux/compiler*.h: fix OPTIMIZER_HIDE_VAR
Since commit 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h mutually exclusive") clang no longer reuses the OPTIMIZER_HIDE_VAR macro from compiler-gcc - instead it gets the version in include/linux/compiler.h. Unfortunately that version doesn't actually prevent compiler from optimizing out the variable. Fix up by moving the macro out from compiler-gcc.h to compiler.h. Compilers without incline asm support will keep working since it's protected by an ifdef. Also fix up comments to match reality since we are no longer overriding any macros. Build-tested with gcc and clang. Fixes: 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h mutually exclusive") Cc: Eli Friedman <[email protected]> Cc: Joe Perches <[email protected]> Cc: Linus Torvalds <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c')
0 files changed, 0 insertions, 0 deletions