Skip to contentSkip to conversation

drm: have config DRM_WERROR depend on !WERROR

PATCH In review Jani Nikula 3 participants 5 messages May 16, 2024 – Jun 7, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: have config DRM_WERROR depend on !WERROR

If WERROR is already enabled, there's no point in enabling DRM_WERROR or asking users about it.

---
 drivers/gpu/drm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/Kconfig +1 -0
index 026444eeb5c6..d0aa277fc3bf 100644
@@ -450,6 +450,7 @@ config DRM_PRIVACY_SCREEN
 config DRM_WERROR
 	bool "Compile the drm subsystem with warnings as errors"
 	depends on DRM && EXPERT
+	depends on !WERROR
 	default n
 	help
 	  A kernel build should not cause any compiler warnings, and this
Signature · 1 line
2.39.2
#1 lore raw

Hi,

Quoted 7 lines · Jani Nikula

If WERROR is already enabled, there's no point in enabling DRM_WERROR or asking users about it.

Wow, you successfully get Linus's attention, haha.

Quoted 16 lines
---
  drivers/gpu/drm/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/Kconfig +1 -0
index 026444eeb5c6..d0aa277fc3bf 100644
@@ -450,6 +450,7 @@ config DRM_PRIVACY_SCREEN
  config DRM_WERROR
  	bool "Compile the drm subsystem with warnings as errors"
  	depends on DRM && EXPERT
+	depends on !WERROR
  	default n
  	help
  	  A kernel build should not cause any compiler warnings, and this
Signature · 2 lines
Best regards
Sui
#2 lore raw
In reply to Jani Nikula
Quoted 2 lines · Jani Nikula

If WERROR is already enabled, there's no point in enabling DRM_WERROR or asking users about it.

Ping. Any comments? (Besides the one snark.)

BR,
Jani.

Quoted 21 lines
---
 drivers/gpu/drm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/Kconfig +1 -0
index 026444eeb5c6..d0aa277fc3bf 100644
@@ -450,6 +450,7 @@ config DRM_PRIVACY_SCREEN
 config DRM_WERROR
 	bool "Compile the drm subsystem with warnings as errors"
 	depends on DRM && EXPERT
+	depends on !WERROR
 	default n
 	help
 	  A kernel build should not cause any compiler warnings, and this
Signature · 1 line
Jani Nikula, Intel
Reviewed-by on v1 1/1
#3 lore raw
In reply to Jani Nikula

Jani Nikula <[email protected]> writes:

Hello Jani,

Quoted 8 lines

If WERROR is already enabled, there's no point in enabling DRM_WERROR or asking users about it.

---

The change makes sense to me.

Signature · 5 lines
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat
#4 lore raw
Quoted 13 lines · Javier Martinez Canillas

Jani Nikula <[email protected]> writes:

Hello Jani,

Quoted 8 lines

If WERROR is already enabled, there's no point in enabling DRM_WERROR or asking users about it.

---

Quoted 3 lines

The change makes sense to me.

Thanks, pushed to drm-misc-fixes.

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel