diff options
| author | Nathan Chancellor <[email protected]> | 2023-06-08 17:01:57 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 16:49:06 +0000 |
| commit | 4e70da985cef954cdf7813d651c067d2c602ea71 (patch) | |
| tree | 62ea7b0b08681eb00561f8bff264e45d0590f953 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | drm/amdgpu: add the accelerator PCIe class (diff) | |
| download | kernel-4e70da985cef954cdf7813d651c067d2c602ea71.tar.gz kernel-4e70da985cef954cdf7813d651c067d2c602ea71.zip | |
drm/amdgpu: Wrap -Wunused-but-set-variable in cc-option
-Wunused-but-set-variable was only supported in clang starting with
13.0.0, so earlier versions will emit a warning, which is turned into a
hard error for the kernel to mirror GCC:
error: unknown warning option '-Wunused-but-set-variable'; did you mean '-Wunused-const-variable'? [-Werror,-Wunknown-warning-option]
The minimum supported version of clang for building the kernel is
11.0.0, so match the rest of the kernel and wrap
-Wunused-but-set-variable in a cc-option call, so that it is only used
when supported by the compiler.
Closes: https://github.com/ClangBuiltLinux/linux/issues/1869
Fixes: 1b320ad3f5a8 ("drm/amd/amdgpu: introduce DRM_AMDGPU_WERROR")
Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Hamza Mahfooz <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
