Skip to contentSkip to conversation

drm/amd/display: enable more strict compile checks

PATCH Superseded Hamza Mahfooz 1 participant 1 message May 24, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: enable more strict compile checks

Currently, there are quite a number of issues that are quite easy for the CI to catch, that slip through the cracks. Among them, there unused variable and indentation issues. Also, we should consider all warnings to be compile errors, since the community will eventually end up complaining about them. So, enable -Werror, -Wunused and -Wmisleading-indentation for all kernel builds.

Cc Alex Deucher <[email protected]>
Cc Harry Wentland <[email protected]>
Cc Kenny Ho <[email protected]>
---
 drivers/gpu/drm/amd/display/Makefile | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/Makefile +2 -0
index 0d610cb376bb..3c44162ebe21 100644
@@ -26,6 +26,8 @@
 
 AMDDALPATH = $(RELATIVE_AMD_DISPLAY_PATH)
 
+subdir-ccflags-y += -Werror -Wunused -Wmisleading-indentation
+
 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/
 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/hw
 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/clk_mgr
Signature · 1 line
2.40.1