* [PATCH] include: linux: gpio: fix build warnings on undefined struct pinctrl_dev
@ 2019-06-12 21:59 Enrico Weigelt, metux IT consult
2019-06-13 0:39 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2019-06-12 21:59 UTC (permalink / raw)
To: linux-kernel; +Cc: linus.walleij, bgolaszewski, linux-gpio
From: Enrico Weigelt <info@metux.net>
This fixes the warnings:
* include/linux/gpio.h:254:11: warning: 'struct pinctrl_dev' declared
inside parameter list will not be visible outside of this definition
or declaration
* include/linux/gpio/driver.h:602:11: warning: 'struct pinctrl_dev'
declared inside parameter list will not be visible outside of this
definition or declaration
Signed-off-by: Enrico Weigelt <info@metux.net>
---
include/linux/gpio.h | 1 +
include/linux/gpio/driver.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/include/linux/gpio.h b/include/linux/gpio.h
index 39745b8..40915b4 100644
--- a/include/linux/gpio.h
+++ b/include/linux/gpio.h
@@ -106,6 +106,7 @@ int devm_gpio_request_one(struct device *dev, unsigned gpio,
struct device;
struct gpio_chip;
+struct pinctrl_dev;
static inline bool gpio_is_valid(int number)
{
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index a1d273c..b58b27c 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -590,6 +590,8 @@ int gpiochip_add_pingroup_range(struct gpio_chip *chip,
#else
+struct pinctrl_dev;
+
static inline int
gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name,
unsigned int gpio_offset, unsigned int pin_offset,
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] include: linux: gpio: fix build warnings on undefined struct pinctrl_dev
2019-06-12 21:59 [PATCH] include: linux: gpio: fix build warnings on undefined struct pinctrl_dev Enrico Weigelt, metux IT consult
@ 2019-06-13 0:39 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2019-06-13 0:39 UTC (permalink / raw)
To: Enrico Weigelt, metux IT consult
Cc: linux-kernel, Bartosz Golaszewski, open list:GPIO SUBSYSTEM
On Thu, Jun 13, 2019 at 12:04 AM Enrico Weigelt, metux IT consult
<info@metux.net> wrote:
> From: Enrico Weigelt <info@metux.net>
>
> This fixes the warnings:
>
> * include/linux/gpio.h:254:11: warning: 'struct pinctrl_dev' declared
> inside parameter list will not be visible outside of this definition
> or declaration
> * include/linux/gpio/driver.h:602:11: warning: 'struct pinctrl_dev'
> declared inside parameter list will not be visible outside of this
> definition or declaration
>
> Signed-off-by: Enrico Weigelt <info@metux.net>
Patch applied, also reported by the build robot.
Thanks,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-13 0:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-12 21:59 [PATCH] include: linux: gpio: fix build warnings on undefined struct pinctrl_dev Enrico Weigelt, metux IT consult
2019-06-13 0:39 ` 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.