* [PATCH -next] ACPI / gpio: make acpi_gpiochip_parse_own_gpio static
@ 2016-10-29 16:13 Wei Yongjun
2016-10-31 8:21 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-10-29 16:13 UTC (permalink / raw)
To: Linus Walleij, Alexandre Courbot; +Cc: Wei Yongjun, linux-gpio
From: Wei Yongjun <weiyongjun1@huawei.com>
Fixes the following sparse warning:
drivers/gpio/gpiolib-acpi.c:863:18: warning:
symbol 'acpi_gpiochip_parse_own_gpio' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/gpio/gpiolib-acpi.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index 2d71ef6..b684220 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -860,9 +860,9 @@ static void acpi_gpiochip_free_regions(struct acpi_gpio_chip *achip)
}
}
-struct gpio_desc *acpi_gpiochip_parse_own_gpio(struct acpi_gpio_chip *achip,
- struct fwnode_handle *fwnode, const char **name, unsigned int *lflags,
- unsigned int *dflags)
+static struct gpio_desc *acpi_gpiochip_parse_own_gpio(
+ struct acpi_gpio_chip *achip, struct fwnode_handle *fwnode,
+ const char **name, unsigned int *lflags, unsigned int *dflags)
{
struct gpio_chip *chip = achip->chip;
struct gpio_desc *desc;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] ACPI / gpio: make acpi_gpiochip_parse_own_gpio static
2016-10-29 16:13 [PATCH -next] ACPI / gpio: make acpi_gpiochip_parse_own_gpio static Wei Yongjun
@ 2016-10-31 8:21 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2016-10-31 8:21 UTC (permalink / raw)
To: Wei Yongjun; +Cc: Alexandre Courbot, Wei Yongjun, linux-gpio@vger.kernel.org
On Sat, Oct 29, 2016 at 6:13 PM, Wei Yongjun <weiyj.lk@gmail.com> wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> Fixes the following sparse warning:
>
> drivers/gpio/gpiolib-acpi.c:863:18: warning:
> symbol 'acpi_gpiochip_parse_own_gpio' was not declared. Should it be static?
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-31 8:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-29 16:13 [PATCH -next] ACPI / gpio: make acpi_gpiochip_parse_own_gpio static Wei Yongjun
2016-10-31 8:21 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).