drm: have config DRM_WERROR depend on !WERROR
authorJani Nikula <jani.nikula@intel.com>
Thu, 16 May 2024 08:33:43 +0000 (11:33 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 7 Jun 2024 13:28:34 +0000 (16:28 +0300)
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: f89632a9e5fa ("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>
drivers/gpu/drm/Kconfig

index 026444eeb5c60ffe2cf57cd29d63dde92afad18e..d0aa277fc3bff842c641a9fe3ba8e2c74390da70 100644 (file)
@@ -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