From 3608a120fc5501f25ebacbf1b622bd8b16972e16 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 15 Oct 2025 11:15:19 +0200 Subject: [PATCH] drm/of: prevent compiler warning Mark empty implementations of drm_of_component_probe_with_match as static inline. Prevents, if : | In file included from drivers/gpu/drm/drm_bridge.c:35: | ./include/drm/drm_of.h:88:12: error: 'drm_of_component_probe_with_match' defined but not used [-Werror=unused-function] | 88 | static int drm_of_component_probe_with_match(struct device *dev, Signed-off-by: Max Krummenacher --- include/drm/drm_of.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_of.h b/include/drm/drm_of.h index 27a7d3fc7041d..6a77bf3646f7f 100644 --- a/include/drm/drm_of.h +++ b/include/drm/drm_of.h @@ -85,7 +85,7 @@ drm_of_component_match_add(struct device *master, { } -static int drm_of_component_probe_with_match(struct device *dev, +static inline int drm_of_component_probe_with_match(struct device *dev, struct component_match *match, int (*compare_of)(struct device *, void *), const struct component_master_ops *m_ops)