Skip to content

Commit 0c76053

Browse files
committed
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. Reported-by: Linus Torvalds <[email protected]> Closes: https://lore.kernel.org/r/CAHk-=whxT8D_0j=bjtrvj-O=VEOjn6GW8GK4j2V+BiDUntZKAQ@mail.gmail.com Fixes: f89632a ("drm: Add CONFIG_DRM_WERROR") Reviewed-by: Javier Martinez Canillas <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Jani Nikula <[email protected]>
1 parent 5703fc0 commit 0c76053

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ config DRM_PRIVACY_SCREEN
450450
config DRM_WERROR
451451
bool "Compile the drm subsystem with warnings as errors"
452452
depends on DRM && EXPERT
453+
depends on !WERROR
453454
default n
454455
help
455456
A kernel build should not cause any compiler warnings, and this

0 commit comments

Comments
 (0)