OSDN Git Service

drm/amd/amdgpu: introduce DRM_AMDGPU_WERROR
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Wed, 24 May 2023 18:59:32 +0000 (14:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:33:42 +0000 (12:33 -0400)
commit1b320ad3f5a88602aef2f207bc211539a5496702
tree6e4c9b399b91ab143a067881c840f1ba443bfd15
parent0df1106bfd13a9fe1eb7c33666bec091bc37c2a7
drm/amd/amdgpu: introduce DRM_AMDGPU_WERROR

We want to do -Werror builds on our CI. However, non-amdgpu breakages
have prevented us from doing so thus far. Also, there are a number of
additional checks that we should enable, that the community cares about
and are hidden behind -Wextra. So, define DRM_AMDGPU_WERROR to only
enable -Werror for the amdgpu kernel module and enable -Wextra while
disabling all of the checks that are too noisy.

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Kenny Ho <kenny.ho@amd.com>
Suggested-by: Jani Nikula <jani.nikula@linux.intel.com>
Reviewed-by: Kenny Ho <Kenny.Ho@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Kconfig
drivers/gpu/drm/amd/amdgpu/Makefile