Files
linux/drivers/gpu/drm
Jani Nikula 461ed4aad0 drm/mm: annotate drm_mm_node_scanned_block() with __maybe_unused
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.

Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240903173437.3212437-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2024-09-04 12:15:46 +03:00
..
2024-07-05 10:47:28 +02:00
2024-08-22 09:13:21 +02:00
2024-08-28 12:21:49 -03:00
2024-08-09 08:13:48 +02:00
2024-08-27 14:09:45 +02:00
2024-08-27 14:09:45 +02:00
2024-06-18 10:06:35 +02:00
2024-08-27 14:09:45 +02:00
2024-08-15 11:01:48 -03:00
2024-06-17 10:38:18 +03:00
2024-06-24 17:08:53 +03:00
2024-08-23 16:55:35 +02:00
2024-08-23 16:55:35 +02:00