[PATCH] drm/mm: annotate drm_mm_node_scanned_block() with __maybe_unused
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Tue Sep 3 18:24:50 UTC 2024
On Tue, Sep 03, 2024 at 08:34:37PM +0300, Jani Nikula wrote:
> Clang build with CONFIG_DRM_DEBUG_MM=n, CONFIG_WERROR=y, and W=1 leads
> to:
>
> CC [M] drivers/gpu/drm/drm_mm.o
> ../drivers/gpu/drm/drm_mm.c:614:20: error: function 'drm_mm_node_scanned_block' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
> static inline bool drm_mm_node_scanned_block(const struct drm_mm_node *node)
> ^
>
> Fix this by annotating drm_mm_node_scanned_block() with __maybe_unused.
FWIW,
Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
--
With Best Regards,
Andy Shevchenko
More information about the dri-devel
mailing list