All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] pinctrl: core: Make pinctrl_init_controller() static
@ 2017-03-27 11:37 Andy Shevchenko
  2017-04-24  9:11 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2017-03-27 11:37 UTC (permalink / raw)
  To: Linus Walleij, linux-gpio; +Cc: Andy Shevchenko

pinctrl_init_controller() is not used outside core.c, thus make it
static and prevent compiler to warn.

drivers/pinctrl/core.c:1943:21: warning: no previous prototype for ‘pinctrl_init_controller’ [-Wmissing-prototypes]
 struct pinctrl_dev *pinctrl_init_controller(struct pinctrl_desc *pctldesc,
                     ^~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index ddefdac7dd20..2892fe2a036c 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -1940,9 +1940,9 @@ static int pinctrl_check_ops(struct pinctrl_dev *pctldev)
  * @dev: parent device for this pin controller
  * @driver_data: private pin controller data for this pin controller
  */
-struct pinctrl_dev *pinctrl_init_controller(struct pinctrl_desc *pctldesc,
-					    struct device *dev,
-					    void *driver_data)
+static struct pinctrl_dev *
+pinctrl_init_controller(struct pinctrl_desc *pctldesc, struct device *dev,
+			void *driver_data)
 {
 	struct pinctrl_dev *pctldev;
 	int ret;
-- 
2.11.0


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

* Re: [PATCH v1] pinctrl: core: Make pinctrl_init_controller() static
  2017-03-27 11:37 [PATCH v1] pinctrl: core: Make pinctrl_init_controller() static Andy Shevchenko
@ 2017-04-24  9:11 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2017-04-24  9:11 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-gpio

On Mon, Mar 27, 2017 at 1:37 PM, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> pinctrl_init_controller() is not used outside core.c, thus make it
> static and prevent compiler to warn.
>
> drivers/pinctrl/core.c:1943:21: warning: no previous prototype for ‘pinctrl_init_controller’ [-Wmissing-prototypes]
>  struct pinctrl_dev *pinctrl_init_controller(struct pinctrl_desc *pctldesc,
>                      ^~~~~~~~~~~~~~~~~~~~~~~
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied.

Yours,
Linus Walleij

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

end of thread, other threads:[~2017-04-24  9:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-27 11:37 [PATCH v1] pinctrl: core: Make pinctrl_init_controller() static Andy Shevchenko
2017-04-24  9:11 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.