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 <torvalds@linux-foundation.org> 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 <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240516083343.1375687-1-jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 5703fc0 commit 0c76053

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)