mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm: mark drm_of_component_match_add dummy inline
@ 2016-10-26  8:57 Arnd Bergmann
  2016-10-26 19:59 ` Sean Paul
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2016-10-26  8:57 UTC (permalink / raw)
  To: David Airlie
  Cc: Arnd Bergmann, Jyri Sarha, Daniel Kurtz, Philipp Zabel,
	Sean Paul, Russell King, dri-devel, linux-kernel

The newly added drm_of_component_match_add helper is defined as
'static' in a header when CONFIG_OF is disabled, causing a warning
each time the header is included:

In file included from /git/arm-soc/drivers/gpu/drm/bridge/dw-hdmi.c:23:0:
include/drm/drm_of.h:33:13: error: 'drm_of_component_match_add' defined but not used [-Werror=unused-function]

This marks it 'inline' like the other such helpers in this file.

Fixes: 97ac0e47aed5 ("drm: convert DT component matching to component_match_add_release()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 include/drm/drm_of.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/drm/drm_of.h b/include/drm/drm_of.h
index d6b4c5587bbe..26a64805cc15 100644
--- a/include/drm/drm_of.h
+++ b/include/drm/drm_of.h
@@ -30,10 +30,11 @@ static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
 	return 0;
 }
 
-static void drm_of_component_match_add(struct device *master,
-				       struct component_match **matchptr,
-				       int (*compare)(struct device *, void *),
-				       struct device_node *node)
+static inline void
+drm_of_component_match_add(struct device *master,
+			   struct component_match **matchptr,
+			   int (*compare)(struct device *, void *),
+			   struct device_node *node)
 {
 }
 
-- 
2.9.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm: mark drm_of_component_match_add dummy inline
  2016-10-26  8:57 [PATCH] drm: mark drm_of_component_match_add dummy inline Arnd Bergmann
@ 2016-10-26 19:59 ` Sean Paul
  0 siblings, 0 replies; 2+ messages in thread
From: Sean Paul @ 2016-10-26 19:59 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: David Airlie, Jyri Sarha, Daniel Kurtz, Philipp Zabel,
	Russell King, dri-devel, Linux Kernel Mailing List

On Wed, Oct 26, 2016 at 4:57 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> The newly added drm_of_component_match_add helper is defined as
> 'static' in a header when CONFIG_OF is disabled, causing a warning
> each time the header is included:
>
> In file included from /git/arm-soc/drivers/gpu/drm/bridge/dw-hdmi.c:23:0:
> include/drm/drm_of.h:33:13: error: 'drm_of_component_match_add' defined but not used [-Werror=unused-function]
>
> This marks it 'inline' like the other such helpers in this file.
>
> Fixes: 97ac0e47aed5 ("drm: convert DT component matching to component_match_add_release()")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Applied to drm-misc, thanks

Sean

> ---
>  include/drm/drm_of.h | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/include/drm/drm_of.h b/include/drm/drm_of.h
> index d6b4c5587bbe..26a64805cc15 100644
> --- a/include/drm/drm_of.h
> +++ b/include/drm/drm_of.h
> @@ -30,10 +30,11 @@ static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
>         return 0;
>  }
>
> -static void drm_of_component_match_add(struct device *master,
> -                                      struct component_match **matchptr,
> -                                      int (*compare)(struct device *, void *),
> -                                      struct device_node *node)
> +static inline void
> +drm_of_component_match_add(struct device *master,
> +                          struct component_match **matchptr,
> +                          int (*compare)(struct device *, void *),
> +                          struct device_node *node)
>  {
>  }
>
> --
> 2.9.0
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-26 20:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-26  8:57 [PATCH] drm: mark drm_of_component_match_add dummy inline Arnd Bergmann
2016-10-26 19:59 ` Sean Paul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®