* [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table
@ 2023-03-11 11:13 Krzysztof Kozlowski
2023-03-11 11:13 ` [PATCH 2/8] gpio: altera: " Krzysztof Kozlowski
` (8 more replies)
0 siblings, 9 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 11:13 UTC (permalink / raw)
To: Mun Yew Tham, Linus Walleij, Bartosz Golaszewski,
Florian Fainelli, Broadcom internal kernel review list,
Ludovic Desroches, Palmer Dabbelt, Paul Walmsley,
Nobuhiro Iwamatsu, Nandor Han, Semi Malinen, linux-gpio,
linux-kernel, linux-rpi-kernel, linux-arm-kernel, linux-riscv
Cc: Krzysztof Kozlowski
The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here).
drivers/gpio/gpio-ftgpio010.c:336:34: error: ‘ftgpio_gpio_of_match’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/gpio/gpio-ftgpio010.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-ftgpio010.c b/drivers/gpio/gpio-ftgpio010.c
index 2728672ef9f8..31e26072f6ae 100644
--- a/drivers/gpio/gpio-ftgpio010.c
+++ b/drivers/gpio/gpio-ftgpio010.c
@@ -349,7 +349,7 @@ static const struct of_device_id ftgpio_gpio_of_match[] = {
static struct platform_driver ftgpio_gpio_driver = {
.driver = {
.name = "ftgpio010-gpio",
- .of_match_table = of_match_ptr(ftgpio_gpio_of_match),
+ .of_match_table = ftgpio_gpio_of_match,
},
.probe = ftgpio_gpio_probe,
.remove = ftgpio_gpio_remove,
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 2/8] gpio: altera: drop of_match_ptr for ID table
2023-03-11 11:13 [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Krzysztof Kozlowski
@ 2023-03-11 11:13 ` Krzysztof Kozlowski
2023-03-11 21:47 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 3/8] gpio: rcar: " Krzysztof Kozlowski
` (7 subsequent siblings)
8 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 11:13 UTC (permalink / raw)
To: Mun Yew Tham, Linus Walleij, Bartosz Golaszewski,
Florian Fainelli, Broadcom internal kernel review list,
Ludovic Desroches, Palmer Dabbelt, Paul Walmsley,
Nobuhiro Iwamatsu, Nandor Han, Semi Malinen, linux-gpio,
linux-kernel, linux-rpi-kernel, linux-arm-kernel, linux-riscv
Cc: Krzysztof Kozlowski
The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here).
drivers/gpio/gpio-altera.c:324:34: error: ‘altera_gpio_of_match’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/gpio/gpio-altera.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-altera.c b/drivers/gpio/gpio-altera.c
index 99e137f8097e..c9158b5230f6 100644
--- a/drivers/gpio/gpio-altera.c
+++ b/drivers/gpio/gpio-altera.c
@@ -330,7 +330,7 @@ MODULE_DEVICE_TABLE(of, altera_gpio_of_match);
static struct platform_driver altera_gpio_driver = {
.driver = {
.name = "altera_gpio",
- .of_match_table = of_match_ptr(altera_gpio_of_match),
+ .of_match_table = altera_gpio_of_match,
},
.probe = altera_gpio_probe,
.remove = altera_gpio_remove,
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 3/8] gpio: rcar: drop of_match_ptr for ID table
2023-03-11 11:13 [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-11 11:13 ` [PATCH 2/8] gpio: altera: " Krzysztof Kozlowski
@ 2023-03-11 11:13 ` Krzysztof Kozlowski
2023-03-11 21:47 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 4/8] gpio: visconti: " Krzysztof Kozlowski
` (6 subsequent siblings)
8 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 11:13 UTC (permalink / raw)
To: Mun Yew Tham, Linus Walleij, Bartosz Golaszewski,
Florian Fainelli, Broadcom internal kernel review list,
Ludovic Desroches, Palmer Dabbelt, Paul Walmsley,
Nobuhiro Iwamatsu, Nandor Han, Semi Malinen, linux-gpio,
linux-kernel, linux-rpi-kernel, linux-arm-kernel, linux-riscv
Cc: Krzysztof Kozlowski
The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here).
drivers/gpio/gpio-rcar.c:435:34: error: ‘gpio_rcar_of_table’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/gpio/gpio-rcar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
index 5b117f3bd322..2525adb52f4f 100644
--- a/drivers/gpio/gpio-rcar.c
+++ b/drivers/gpio/gpio-rcar.c
@@ -663,7 +663,7 @@ static struct platform_driver gpio_rcar_device_driver = {
.driver = {
.name = "gpio_rcar",
.pm = &gpio_rcar_pm_ops,
- .of_match_table = of_match_ptr(gpio_rcar_of_table),
+ .of_match_table = gpio_rcar_of_table,
}
};
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 4/8] gpio: visconti: drop of_match_ptr for ID table
2023-03-11 11:13 [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-11 11:13 ` [PATCH 2/8] gpio: altera: " Krzysztof Kozlowski
2023-03-11 11:13 ` [PATCH 3/8] gpio: rcar: " Krzysztof Kozlowski
@ 2023-03-11 11:13 ` Krzysztof Kozlowski
2023-03-11 21:48 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 5/8] gpio: sifive: " Krzysztof Kozlowski
` (5 subsequent siblings)
8 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 11:13 UTC (permalink / raw)
To: Mun Yew Tham, Linus Walleij, Bartosz Golaszewski,
Florian Fainelli, Broadcom internal kernel review list,
Ludovic Desroches, Palmer Dabbelt, Paul Walmsley,
Nobuhiro Iwamatsu, Nandor Han, Semi Malinen, linux-gpio,
linux-kernel, linux-rpi-kernel, linux-arm-kernel, linux-riscv
Cc: Krzysztof Kozlowski
The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here).
drivers/gpio/gpio-visconti.c:187:34: error: ‘visconti_gpio_of_match’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/gpio/gpio-visconti.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-visconti.c b/drivers/gpio/gpio-visconti.c
index 5e108ba9956a..10d9de41f29b 100644
--- a/drivers/gpio/gpio-visconti.c
+++ b/drivers/gpio/gpio-visconti.c
@@ -194,7 +194,7 @@ static struct platform_driver visconti_gpio_driver = {
.probe = visconti_gpio_probe,
.driver = {
.name = "visconti_gpio",
- .of_match_table = of_match_ptr(visconti_gpio_of_match),
+ .of_match_table = visconti_gpio_of_match,
}
};
module_platform_driver(visconti_gpio_driver);
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 5/8] gpio: sifive: drop of_match_ptr for ID table
2023-03-11 11:13 [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Krzysztof Kozlowski
` (2 preceding siblings ...)
2023-03-11 11:13 ` [PATCH 4/8] gpio: visconti: " Krzysztof Kozlowski
@ 2023-03-11 11:13 ` Krzysztof Kozlowski
2023-03-11 21:48 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 6/8] gpio: sama5d2-piobu: " Krzysztof Kozlowski
` (4 subsequent siblings)
8 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 11:13 UTC (permalink / raw)
To: Mun Yew Tham, Linus Walleij, Bartosz Golaszewski,
Florian Fainelli, Broadcom internal kernel review list,
Ludovic Desroches, Palmer Dabbelt, Paul Walmsley,
Nobuhiro Iwamatsu, Nandor Han, Semi Malinen, linux-gpio,
linux-kernel, linux-rpi-kernel, linux-arm-kernel, linux-riscv
Cc: Krzysztof Kozlowski
The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here).
drivers/gpio/gpio-sifive.c:263:34: error: ‘sifive_gpio_match’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/gpio/gpio-sifive.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-sifive.c b/drivers/gpio/gpio-sifive.c
index bc5660f61c57..98939cd4a71e 100644
--- a/drivers/gpio/gpio-sifive.c
+++ b/drivers/gpio/gpio-sifive.c
@@ -270,7 +270,7 @@ static struct platform_driver sifive_gpio_driver = {
.probe = sifive_gpio_probe,
.driver = {
.name = "sifive_gpio",
- .of_match_table = of_match_ptr(sifive_gpio_match),
+ .of_match_table = sifive_gpio_match,
},
};
builtin_platform_driver(sifive_gpio_driver)
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 6/8] gpio: sama5d2-piobu: drop of_match_ptr for ID table
2023-03-11 11:13 [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Krzysztof Kozlowski
` (3 preceding siblings ...)
2023-03-11 11:13 ` [PATCH 5/8] gpio: sifive: " Krzysztof Kozlowski
@ 2023-03-11 11:13 ` Krzysztof Kozlowski
2023-03-11 21:49 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 7/8] gpio: xra1403: mark OF related data as maybe unused Krzysztof Kozlowski
` (3 subsequent siblings)
8 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 11:13 UTC (permalink / raw)
To: Mun Yew Tham, Linus Walleij, Bartosz Golaszewski,
Florian Fainelli, Broadcom internal kernel review list,
Ludovic Desroches, Palmer Dabbelt, Paul Walmsley,
Nobuhiro Iwamatsu, Nandor Han, Semi Malinen, linux-gpio,
linux-kernel, linux-rpi-kernel, linux-arm-kernel, linux-riscv
Cc: Krzysztof Kozlowski
The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here).
drivers/gpio/gpio-sama5d2-piobu.c:230:34: error: ‘sama5d2_piobu_ids’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/gpio/gpio-sama5d2-piobu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-sama5d2-piobu.c b/drivers/gpio/gpio-sama5d2-piobu.c
index 3e95da717fc9..767c33ae3213 100644
--- a/drivers/gpio/gpio-sama5d2-piobu.c
+++ b/drivers/gpio/gpio-sama5d2-piobu.c
@@ -236,7 +236,7 @@ MODULE_DEVICE_TABLE(of, sama5d2_piobu_ids);
static struct platform_driver sama5d2_piobu_driver = {
.driver = {
.name = "sama5d2-piobu",
- .of_match_table = of_match_ptr(sama5d2_piobu_ids)
+ .of_match_table = sama5d2_piobu_ids,
},
.probe = sama5d2_piobu_probe,
};
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 7/8] gpio: xra1403: mark OF related data as maybe unused
2023-03-11 11:13 [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Krzysztof Kozlowski
` (4 preceding siblings ...)
2023-03-11 11:13 ` [PATCH 6/8] gpio: sama5d2-piobu: " Krzysztof Kozlowski
@ 2023-03-11 11:13 ` Krzysztof Kozlowski
2023-03-11 21:49 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 8/8] gpio: raspberrypi-exp: " Krzysztof Kozlowski
` (2 subsequent siblings)
8 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 11:13 UTC (permalink / raw)
To: Mun Yew Tham, Linus Walleij, Bartosz Golaszewski,
Florian Fainelli, Broadcom internal kernel review list,
Ludovic Desroches, Palmer Dabbelt, Paul Walmsley,
Nobuhiro Iwamatsu, Nandor Han, Semi Malinen, linux-gpio,
linux-kernel, linux-rpi-kernel, linux-arm-kernel, linux-riscv
Cc: Krzysztof Kozlowski
The driver can be compile tested with !CONFIG_OF making certain data
unused:
drivers/gpio/gpio-xra1403.c:198:34: error: ‘xra1403_spi_of_match’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/gpio/gpio-xra1403.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-xra1403.c b/drivers/gpio/gpio-xra1403.c
index 49c878cfd5c6..51d6119e1bb4 100644
--- a/drivers/gpio/gpio-xra1403.c
+++ b/drivers/gpio/gpio-xra1403.c
@@ -195,7 +195,7 @@ static const struct spi_device_id xra1403_ids[] = {
};
MODULE_DEVICE_TABLE(spi, xra1403_ids);
-static const struct of_device_id xra1403_spi_of_match[] = {
+static const struct of_device_id xra1403_spi_of_match[] __maybe_unused = {
{ .compatible = "exar,xra1403" },
{},
};
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 8/8] gpio: raspberrypi-exp: mark OF related data as maybe unused
2023-03-11 11:13 [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Krzysztof Kozlowski
` (5 preceding siblings ...)
2023-03-11 11:13 ` [PATCH 7/8] gpio: xra1403: mark OF related data as maybe unused Krzysztof Kozlowski
@ 2023-03-11 11:13 ` Krzysztof Kozlowski
2023-03-11 21:49 ` Linus Walleij
2023-03-15 18:36 ` Florian Fainelli
2023-03-11 21:46 ` [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Linus Walleij
2023-03-15 9:39 ` Bartosz Golaszewski
8 siblings, 2 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 11:13 UTC (permalink / raw)
To: Mun Yew Tham, Linus Walleij, Bartosz Golaszewski,
Florian Fainelli, Broadcom internal kernel review list,
Ludovic Desroches, Palmer Dabbelt, Paul Walmsley,
Nobuhiro Iwamatsu, Nandor Han, Semi Malinen, linux-gpio,
linux-kernel, linux-rpi-kernel, linux-arm-kernel, linux-riscv
Cc: Krzysztof Kozlowski
The driver can be compile tested with !CONFIG_OF making certain data
unused:
drivers/gpio/gpio-raspberrypi-exp.c:237:34: error: ‘rpi_exp_gpio_ids’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/gpio/gpio-raspberrypi-exp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-raspberrypi-exp.c b/drivers/gpio/gpio-raspberrypi-exp.c
index 3c414e0005fc..ecb0d3800dfe 100644
--- a/drivers/gpio/gpio-raspberrypi-exp.c
+++ b/drivers/gpio/gpio-raspberrypi-exp.c
@@ -234,7 +234,7 @@ static int rpi_exp_gpio_probe(struct platform_device *pdev)
return devm_gpiochip_add_data(dev, &rpi_gpio->gc, rpi_gpio);
}
-static const struct of_device_id rpi_exp_gpio_ids[] = {
+static const struct of_device_id rpi_exp_gpio_ids[] __maybe_unused = {
{ .compatible = "raspberrypi,firmware-gpio" },
{ }
};
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table
2023-03-11 11:13 [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Krzysztof Kozlowski
` (6 preceding siblings ...)
2023-03-11 11:13 ` [PATCH 8/8] gpio: raspberrypi-exp: " Krzysztof Kozlowski
@ 2023-03-11 21:46 ` Linus Walleij
2023-03-15 9:39 ` Bartosz Golaszewski
8 siblings, 0 replies; 18+ messages in thread
From: Linus Walleij @ 2023-03-11 21:46 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Mun Yew Tham, Bartosz Golaszewski, Florian Fainelli,
Broadcom internal kernel review list, Ludovic Desroches,
Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu, Nandor Han,
Semi Malinen, linux-gpio, linux-kernel, linux-rpi-kernel,
linux-arm-kernel, linux-riscv
On Sat, Mar 11, 2023 at 12:13 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> The driver can match only via the DT table so the table should be always
> used and the of_match_ptr does not have any sense (this also allows ACPI
> matching via PRP0001, even though it might not be relevant here).
>
> drivers/gpio/gpio-ftgpio010.c:336:34: error: ‘ftgpio_gpio_of_match’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/8] gpio: altera: drop of_match_ptr for ID table
2023-03-11 11:13 ` [PATCH 2/8] gpio: altera: " Krzysztof Kozlowski
@ 2023-03-11 21:47 ` Linus Walleij
0 siblings, 0 replies; 18+ messages in thread
From: Linus Walleij @ 2023-03-11 21:47 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Mun Yew Tham, Bartosz Golaszewski, Florian Fainelli,
Broadcom internal kernel review list, Ludovic Desroches,
Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu, Nandor Han,
Semi Malinen, linux-gpio, linux-kernel, linux-rpi-kernel,
linux-arm-kernel, linux-riscv
On Sat, Mar 11, 2023 at 12:13 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> The driver can match only via the DT table so the table should be always
> used and the of_match_ptr does not have any sense (this also allows ACPI
> matching via PRP0001, even though it might not be relevant here).
>
> drivers/gpio/gpio-altera.c:324:34: error: ‘altera_gpio_of_match’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 3/8] gpio: rcar: drop of_match_ptr for ID table
2023-03-11 11:13 ` [PATCH 3/8] gpio: rcar: " Krzysztof Kozlowski
@ 2023-03-11 21:47 ` Linus Walleij
0 siblings, 0 replies; 18+ messages in thread
From: Linus Walleij @ 2023-03-11 21:47 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Mun Yew Tham, Bartosz Golaszewski, Florian Fainelli,
Broadcom internal kernel review list, Ludovic Desroches,
Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu, Nandor Han,
Semi Malinen, linux-gpio, linux-kernel, linux-rpi-kernel,
linux-arm-kernel, linux-riscv
On Sat, Mar 11, 2023 at 12:13 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> The driver can match only via the DT table so the table should be always
> used and the of_match_ptr does not have any sense (this also allows ACPI
> matching via PRP0001, even though it might not be relevant here).
>
> drivers/gpio/gpio-rcar.c:435:34: error: ‘gpio_rcar_of_table’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 4/8] gpio: visconti: drop of_match_ptr for ID table
2023-03-11 11:13 ` [PATCH 4/8] gpio: visconti: " Krzysztof Kozlowski
@ 2023-03-11 21:48 ` Linus Walleij
0 siblings, 0 replies; 18+ messages in thread
From: Linus Walleij @ 2023-03-11 21:48 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Mun Yew Tham, Bartosz Golaszewski, Florian Fainelli,
Broadcom internal kernel review list, Ludovic Desroches,
Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu, Nandor Han,
Semi Malinen, linux-gpio, linux-kernel, linux-rpi-kernel,
linux-arm-kernel, linux-riscv
On Sat, Mar 11, 2023 at 12:13 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> The driver can match only via the DT table so the table should be always
> used and the of_match_ptr does not have any sense (this also allows ACPI
> matching via PRP0001, even though it might not be relevant here).
>
> drivers/gpio/gpio-visconti.c:187:34: error: ‘visconti_gpio_of_match’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 5/8] gpio: sifive: drop of_match_ptr for ID table
2023-03-11 11:13 ` [PATCH 5/8] gpio: sifive: " Krzysztof Kozlowski
@ 2023-03-11 21:48 ` Linus Walleij
0 siblings, 0 replies; 18+ messages in thread
From: Linus Walleij @ 2023-03-11 21:48 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Mun Yew Tham, Bartosz Golaszewski, Florian Fainelli,
Broadcom internal kernel review list, Ludovic Desroches,
Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu, Nandor Han,
Semi Malinen, linux-gpio, linux-kernel, linux-rpi-kernel,
linux-arm-kernel, linux-riscv
On Sat, Mar 11, 2023 at 12:13 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> The driver can match only via the DT table so the table should be always
> used and the of_match_ptr does not have any sense (this also allows ACPI
> matching via PRP0001, even though it might not be relevant here).
>
> drivers/gpio/gpio-sifive.c:263:34: error: ‘sifive_gpio_match’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 6/8] gpio: sama5d2-piobu: drop of_match_ptr for ID table
2023-03-11 11:13 ` [PATCH 6/8] gpio: sama5d2-piobu: " Krzysztof Kozlowski
@ 2023-03-11 21:49 ` Linus Walleij
0 siblings, 0 replies; 18+ messages in thread
From: Linus Walleij @ 2023-03-11 21:49 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Mun Yew Tham, Bartosz Golaszewski, Florian Fainelli,
Broadcom internal kernel review list, Ludovic Desroches,
Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu, Nandor Han,
Semi Malinen, linux-gpio, linux-kernel, linux-rpi-kernel,
linux-arm-kernel, linux-riscv
On Sat, Mar 11, 2023 at 12:13 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> The driver can match only via the DT table so the table should be always
> used and the of_match_ptr does not have any sense (this also allows ACPI
> matching via PRP0001, even though it might not be relevant here).
>
> drivers/gpio/gpio-sama5d2-piobu.c:230:34: error: ‘sama5d2_piobu_ids’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 7/8] gpio: xra1403: mark OF related data as maybe unused
2023-03-11 11:13 ` [PATCH 7/8] gpio: xra1403: mark OF related data as maybe unused Krzysztof Kozlowski
@ 2023-03-11 21:49 ` Linus Walleij
0 siblings, 0 replies; 18+ messages in thread
From: Linus Walleij @ 2023-03-11 21:49 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Mun Yew Tham, Bartosz Golaszewski, Florian Fainelli,
Broadcom internal kernel review list, Ludovic Desroches,
Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu, Nandor Han,
Semi Malinen, linux-gpio, linux-kernel, linux-rpi-kernel,
linux-arm-kernel, linux-riscv
On Sat, Mar 11, 2023 at 12:13 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> The driver can be compile tested with !CONFIG_OF making certain data
> unused:
>
> drivers/gpio/gpio-xra1403.c:198:34: error: ‘xra1403_spi_of_match’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 8/8] gpio: raspberrypi-exp: mark OF related data as maybe unused
2023-03-11 11:13 ` [PATCH 8/8] gpio: raspberrypi-exp: " Krzysztof Kozlowski
@ 2023-03-11 21:49 ` Linus Walleij
2023-03-15 18:36 ` Florian Fainelli
1 sibling, 0 replies; 18+ messages in thread
From: Linus Walleij @ 2023-03-11 21:49 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Mun Yew Tham, Bartosz Golaszewski, Florian Fainelli,
Broadcom internal kernel review list, Ludovic Desroches,
Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu, Nandor Han,
Semi Malinen, linux-gpio, linux-kernel, linux-rpi-kernel,
linux-arm-kernel, linux-riscv
On Sat, Mar 11, 2023 at 12:13 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> The driver can be compile tested with !CONFIG_OF making certain data
> unused:
>
> drivers/gpio/gpio-raspberrypi-exp.c:237:34: error: ‘rpi_exp_gpio_ids’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table
2023-03-11 11:13 [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Krzysztof Kozlowski
` (7 preceding siblings ...)
2023-03-11 21:46 ` [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Linus Walleij
@ 2023-03-15 9:39 ` Bartosz Golaszewski
8 siblings, 0 replies; 18+ messages in thread
From: Bartosz Golaszewski @ 2023-03-15 9:39 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Mun Yew Tham, Linus Walleij, Florian Fainelli,
Broadcom internal kernel review list, Ludovic Desroches,
Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu, Nandor Han,
Semi Malinen, linux-gpio, linux-kernel, linux-rpi-kernel,
linux-arm-kernel, linux-riscv
On Sat, Mar 11, 2023 at 12:13 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> The driver can match only via the DT table so the table should be always
> used and the of_match_ptr does not have any sense (this also allows ACPI
> matching via PRP0001, even though it might not be relevant here).
>
> drivers/gpio/gpio-ftgpio010.c:336:34: error: ‘ftgpio_gpio_of_match’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> drivers/gpio/gpio-ftgpio010.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/gpio-ftgpio010.c b/drivers/gpio/gpio-ftgpio010.c
> index 2728672ef9f8..31e26072f6ae 100644
> --- a/drivers/gpio/gpio-ftgpio010.c
> +++ b/drivers/gpio/gpio-ftgpio010.c
> @@ -349,7 +349,7 @@ static const struct of_device_id ftgpio_gpio_of_match[] = {
> static struct platform_driver ftgpio_gpio_driver = {
> .driver = {
> .name = "ftgpio010-gpio",
> - .of_match_table = of_match_ptr(ftgpio_gpio_of_match),
> + .of_match_table = ftgpio_gpio_of_match,
> },
> .probe = ftgpio_gpio_probe,
> .remove = ftgpio_gpio_remove,
> --
> 2.34.1
>
Applied the series.
Bart
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 8/8] gpio: raspberrypi-exp: mark OF related data as maybe unused
2023-03-11 11:13 ` [PATCH 8/8] gpio: raspberrypi-exp: " Krzysztof Kozlowski
2023-03-11 21:49 ` Linus Walleij
@ 2023-03-15 18:36 ` Florian Fainelli
1 sibling, 0 replies; 18+ messages in thread
From: Florian Fainelli @ 2023-03-15 18:36 UTC (permalink / raw)
To: Krzysztof Kozlowski, Mun Yew Tham, Linus Walleij,
Bartosz Golaszewski, Broadcom internal kernel review list,
Ludovic Desroches, Palmer Dabbelt, Paul Walmsley,
Nobuhiro Iwamatsu, Nandor Han, Semi Malinen, linux-gpio,
linux-kernel, linux-rpi-kernel, linux-arm-kernel, linux-riscv
On 3/11/23 03:13, Krzysztof Kozlowski wrote:
> The driver can be compile tested with !CONFIG_OF making certain data
> unused:
>
> drivers/gpio/gpio-raspberrypi-exp.c:237:34: error: ‘rpi_exp_gpio_ids’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2023-03-15 18:36 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11 11:13 [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-11 11:13 ` [PATCH 2/8] gpio: altera: " Krzysztof Kozlowski
2023-03-11 21:47 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 3/8] gpio: rcar: " Krzysztof Kozlowski
2023-03-11 21:47 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 4/8] gpio: visconti: " Krzysztof Kozlowski
2023-03-11 21:48 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 5/8] gpio: sifive: " Krzysztof Kozlowski
2023-03-11 21:48 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 6/8] gpio: sama5d2-piobu: " Krzysztof Kozlowski
2023-03-11 21:49 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 7/8] gpio: xra1403: mark OF related data as maybe unused Krzysztof Kozlowski
2023-03-11 21:49 ` Linus Walleij
2023-03-11 11:13 ` [PATCH 8/8] gpio: raspberrypi-exp: " Krzysztof Kozlowski
2023-03-11 21:49 ` Linus Walleij
2023-03-15 18:36 ` Florian Fainelli
2023-03-11 21:46 ` [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Linus Walleij
2023-03-15 9:39 ` Bartosz Golaszewski
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).