All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused
@ 2023-03-11 17:32 Krzysztof Kozlowski
  2023-03-11 17:32 ` [PATCH 02/12] net: dsa: lan9303: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (12 more replies)
  0 siblings, 13 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:32 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  Cc: Krzysztof Kozlowski

The driver can be compile tested with !CONFIG_OF making certain data
unused:

  drivers/net/dsa/lantiq_gswip.c:1888:34: error: ‘xway_gphy_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/dsa/lantiq_gswip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c
index 05ecaa007ab1..3c76a1a14aee 100644
--- a/drivers/net/dsa/lantiq_gswip.c
+++ b/drivers/net/dsa/lantiq_gswip.c
@@ -1885,7 +1885,7 @@ static const struct xway_gphy_match_data xrx300_gphy_data = {
 	.ge_firmware_name = "lantiq/xrx300_phy11g_a21.bin",
 };
 
-static const struct of_device_id xway_gphy_match[] = {
+static const struct of_device_id xway_gphy_match[] __maybe_unused = {
 	{ .compatible = "lantiq,xrx200-gphy-fw", .data = NULL },
 	{ .compatible = "lantiq,xrx200a1x-gphy-fw", .data = &xrx200a1x_gphy_data },
 	{ .compatible = "lantiq,xrx200a2x-gphy-fw", .data = &xrx200a2x_gphy_data },
-- 
2.34.1


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

* [PATCH 02/12] net: dsa: lan9303: drop of_match_ptr for ID table
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
@ 2023-03-11 17:32 ` Krzysztof Kozlowski
  2023-03-11 17:32 ` [PATCH 03/12] net: dsa: seville_vsc9953: " Krzysztof Kozlowski
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:32 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  Cc: Krzysztof Kozlowski

The driver will match mostly or only by DT table (even thought there is
regular ID table) so there is little benefit in of_match_ptr (this also
allows ACPI matching via PRP0001, even though it might not be relevant
here).

  drivers/net/dsa/lan9303_i2c.c:97:34: error: ‘lan9303_i2c_of_match’ defined but not used [-Werror=unused-const-variable=]
  drivers/net/dsa/lan9303_mdio.c:157:34: error: ‘lan9303_mdio_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/dsa/lan9303_i2c.c  | 2 +-
 drivers/net/dsa/lan9303_mdio.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/dsa/lan9303_i2c.c b/drivers/net/dsa/lan9303_i2c.c
index 1cb41c36bd47..e8844820c3a9 100644
--- a/drivers/net/dsa/lan9303_i2c.c
+++ b/drivers/net/dsa/lan9303_i2c.c
@@ -103,7 +103,7 @@ MODULE_DEVICE_TABLE(of, lan9303_i2c_of_match);
 static struct i2c_driver lan9303_i2c_driver = {
 	.driver = {
 		.name = "LAN9303_I2C",
-		.of_match_table = of_match_ptr(lan9303_i2c_of_match),
+		.of_match_table = lan9303_i2c_of_match,
 	},
 	.probe_new = lan9303_i2c_probe,
 	.remove = lan9303_i2c_remove,
diff --git a/drivers/net/dsa/lan9303_mdio.c b/drivers/net/dsa/lan9303_mdio.c
index 4f33369a2de5..d8ab2b77d201 100644
--- a/drivers/net/dsa/lan9303_mdio.c
+++ b/drivers/net/dsa/lan9303_mdio.c
@@ -164,7 +164,7 @@ MODULE_DEVICE_TABLE(of, lan9303_mdio_of_match);
 static struct mdio_driver lan9303_mdio_driver = {
 	.mdiodrv.driver = {
 		.name = "LAN9303_MDIO",
-		.of_match_table = of_match_ptr(lan9303_mdio_of_match),
+		.of_match_table = lan9303_mdio_of_match,
 	},
 	.probe  = lan9303_mdio_probe,
 	.remove = lan9303_mdio_remove,
-- 
2.34.1


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

* [PATCH 03/12] net: dsa: seville_vsc9953: drop of_match_ptr for ID table
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
  2023-03-11 17:32 ` [PATCH 02/12] net: dsa: lan9303: drop of_match_ptr for ID table Krzysztof Kozlowski
@ 2023-03-11 17:32 ` Krzysztof Kozlowski
  2023-03-11 17:32 ` [PATCH 04/12] net: dsa: ksz9477: " Krzysztof Kozlowski
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:32 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  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/net/dsa/ocelot/seville_vsc9953.c:1070:34: error: ‘seville_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/dsa/ocelot/seville_vsc9953.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dsa/ocelot/seville_vsc9953.c b/drivers/net/dsa/ocelot/seville_vsc9953.c
index 563ad338da25..96d4972a62f0 100644
--- a/drivers/net/dsa/ocelot/seville_vsc9953.c
+++ b/drivers/net/dsa/ocelot/seville_vsc9953.c
@@ -1079,7 +1079,7 @@ static struct platform_driver seville_vsc9953_driver = {
 	.shutdown	= seville_shutdown,
 	.driver = {
 		.name		= "mscc_seville",
-		.of_match_table	= of_match_ptr(seville_of_match),
+		.of_match_table	= seville_of_match,
 	},
 };
 module_platform_driver(seville_vsc9953_driver);
-- 
2.34.1


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

* [PATCH 04/12] net: dsa: ksz9477: drop of_match_ptr for ID table
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
  2023-03-11 17:32 ` [PATCH 02/12] net: dsa: lan9303: drop of_match_ptr for ID table Krzysztof Kozlowski
  2023-03-11 17:32 ` [PATCH 03/12] net: dsa: seville_vsc9953: " Krzysztof Kozlowski
@ 2023-03-11 17:32 ` Krzysztof Kozlowski
  2023-03-11 17:32 ` [PATCH 05/12] net: dsa: ocelot: " Krzysztof Kozlowski
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:32 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  Cc: Krzysztof Kozlowski

The driver will match mostly by DT table (even thought there is regular
ID table) so there is little benefit in of_match_ptr (this also allows
ACPI matching via PRP0001, even though it might not be relevant here).

  drivers/net/dsa/microchip/ksz9477_i2c.c:84:34: error: ‘ksz9477_dt_ids’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/dsa/microchip/ksz9477_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dsa/microchip/ksz9477_i2c.c b/drivers/net/dsa/microchip/ksz9477_i2c.c
index e315f669ec06..97a317263a2f 100644
--- a/drivers/net/dsa/microchip/ksz9477_i2c.c
+++ b/drivers/net/dsa/microchip/ksz9477_i2c.c
@@ -117,7 +117,7 @@ MODULE_DEVICE_TABLE(of, ksz9477_dt_ids);
 static struct i2c_driver ksz9477_i2c_driver = {
 	.driver = {
 		.name	= "ksz9477-switch",
-		.of_match_table = of_match_ptr(ksz9477_dt_ids),
+		.of_match_table = ksz9477_dt_ids,
 	},
 	.probe_new = ksz9477_i2c_probe,
 	.remove	= ksz9477_i2c_remove,
-- 
2.34.1


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

* [PATCH 05/12] net: dsa: ocelot: drop of_match_ptr for ID table
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2023-03-11 17:32 ` [PATCH 04/12] net: dsa: ksz9477: " Krzysztof Kozlowski
@ 2023-03-11 17:32 ` Krzysztof Kozlowski
  2023-03-14 15:34   ` Colin Foster
  2023-03-11 17:32 ` [PATCH 06/12] net: phy: ks8995: " Krzysztof Kozlowski
                   ` (8 subsequent siblings)
  12 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:32 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  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/net/dsa/ocelot/ocelot_ext.c:143:34: error: ‘ocelot_ext_switch_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/dsa/ocelot/ocelot_ext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dsa/ocelot/ocelot_ext.c b/drivers/net/dsa/ocelot/ocelot_ext.c
index 063150659816..228737a32080 100644
--- a/drivers/net/dsa/ocelot/ocelot_ext.c
+++ b/drivers/net/dsa/ocelot/ocelot_ext.c
@@ -149,7 +149,7 @@ MODULE_DEVICE_TABLE(of, ocelot_ext_switch_of_match);
 static struct platform_driver ocelot_ext_switch_driver = {
 	.driver = {
 		.name = "ocelot-ext-switch",
-		.of_match_table = of_match_ptr(ocelot_ext_switch_of_match),
+		.of_match_table = ocelot_ext_switch_of_match,
 	},
 	.probe = ocelot_ext_probe,
 	.remove = ocelot_ext_remove,
-- 
2.34.1


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

* [PATCH 06/12] net: phy: ks8995: drop of_match_ptr for ID table
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (3 preceding siblings ...)
  2023-03-11 17:32 ` [PATCH 05/12] net: dsa: ocelot: " Krzysztof Kozlowski
@ 2023-03-11 17:32 ` Krzysztof Kozlowski
  2023-03-11 17:32 ` [PATCH 07/12] net: ieee802154: adf7242: " Krzysztof Kozlowski
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:32 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  Cc: Krzysztof Kozlowski

The driver will match mostly by DT table (even thought there is regular
ID table) so there is little benefit in of_match_ptr (this also allows
ACPI matching via PRP0001, even though it might not be relevant here).

  drivers/net/phy/spi_ks8995.c:156:34: error: ‘ks8895_spi_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/phy/spi_ks8995.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c
index d4202d40d47a..7196e927c2cd 100644
--- a/drivers/net/phy/spi_ks8995.c
+++ b/drivers/net/phy/spi_ks8995.c
@@ -491,7 +491,7 @@ static void ks8995_remove(struct spi_device *spi)
 static struct spi_driver ks8995_driver = {
 	.driver = {
 		.name	    = "spi-ks8995",
-		.of_match_table = of_match_ptr(ks8895_spi_of_match),
+		.of_match_table = ks8895_spi_of_match,
 	},
 	.probe	  = ks8995_probe,
 	.remove	  = ks8995_remove,
-- 
2.34.1


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

* [PATCH 07/12] net: ieee802154: adf7242: drop of_match_ptr for ID table
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (4 preceding siblings ...)
  2023-03-11 17:32 ` [PATCH 06/12] net: phy: ks8995: " Krzysztof Kozlowski
@ 2023-03-11 17:32 ` Krzysztof Kozlowski
  2023-03-12 11:31   ` Hennerich, Michael
  2023-03-28 10:48   ` Miquel Raynal
  2023-03-11 17:32 ` [PATCH 08/12] net: ieee802154: mcr20a: " Krzysztof Kozlowski
                   ` (6 subsequent siblings)
  12 siblings, 2 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:32 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  Cc: Krzysztof Kozlowski

The driver will match mostly by DT table (even thought there is regular
ID table) so there is little benefit in of_match_ptr (this also allows
ACPI matching via PRP0001, even though it might not be relevant here).

  drivers/net/ieee802154/adf7242.c:1322:34: error: ‘adf7242_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/ieee802154/adf7242.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c
index 5cf218c674a5..509acc86001c 100644
--- a/drivers/net/ieee802154/adf7242.c
+++ b/drivers/net/ieee802154/adf7242.c
@@ -1336,7 +1336,7 @@ MODULE_DEVICE_TABLE(spi, adf7242_device_id);
 static struct spi_driver adf7242_driver = {
 	.id_table = adf7242_device_id,
 	.driver = {
-		   .of_match_table = of_match_ptr(adf7242_of_match),
+		   .of_match_table = adf7242_of_match,
 		   .name = "adf7242",
 		   .owner = THIS_MODULE,
 		   },
-- 
2.34.1


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

* [PATCH 08/12] net: ieee802154: mcr20a: drop of_match_ptr for ID table
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (5 preceding siblings ...)
  2023-03-11 17:32 ` [PATCH 07/12] net: ieee802154: adf7242: " Krzysztof Kozlowski
@ 2023-03-11 17:32 ` Krzysztof Kozlowski
  2023-03-14  7:52   ` Stefan Schmidt
  2023-03-11 17:33 ` [PATCH 09/12] net: ieee802154: at86rf230: " Krzysztof Kozlowski
                   ` (5 subsequent siblings)
  12 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:32 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  Cc: Krzysztof Kozlowski

The driver will match mostly by DT table (even thought there is regular
ID table) so there is little benefit in of_match_ptr (this also allows
ACPI matching via PRP0001, even though it might not be relevant here).

  drivers/net/ieee802154/mcr20a.c:1340:34: error: ‘mcr20a_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/ieee802154/mcr20a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ieee802154/mcr20a.c b/drivers/net/ieee802154/mcr20a.c
index f53d185e0568..87abe3b46316 100644
--- a/drivers/net/ieee802154/mcr20a.c
+++ b/drivers/net/ieee802154/mcr20a.c
@@ -1352,7 +1352,7 @@ MODULE_DEVICE_TABLE(spi, mcr20a_device_id);
 static struct spi_driver mcr20a_driver = {
 	.id_table = mcr20a_device_id,
 	.driver = {
-		.of_match_table = of_match_ptr(mcr20a_of_match),
+		.of_match_table = mcr20a_of_match,
 		.name	= "mcr20a",
 	},
 	.probe      = mcr20a_probe,
-- 
2.34.1


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

* [PATCH 09/12] net: ieee802154: at86rf230: drop of_match_ptr for ID table
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (6 preceding siblings ...)
  2023-03-11 17:32 ` [PATCH 08/12] net: ieee802154: mcr20a: " Krzysztof Kozlowski
@ 2023-03-11 17:33 ` Krzysztof Kozlowski
  2023-03-14  7:52   ` Stefan Schmidt
  2023-03-11 17:33 ` [PATCH 10/12] net: ieee802154: ca8210: " Krzysztof Kozlowski
                   ` (4 subsequent siblings)
  12 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:33 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  Cc: Krzysztof Kozlowski

The driver will match mostly by DT table (even thought there is regular
ID table) so there is little benefit in of_match_ptr (this also allows
ACPI matching via PRP0001, even though it might not be relevant here).

  drivers/net/ieee802154/at86rf230.c:1644:34: error: ‘at86rf230_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/ieee802154/at86rf230.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 62b984f84d9f..164c7f605af5 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -1662,7 +1662,7 @@ MODULE_DEVICE_TABLE(spi, at86rf230_device_id);
 static struct spi_driver at86rf230_driver = {
 	.id_table = at86rf230_device_id,
 	.driver = {
-		.of_match_table = of_match_ptr(at86rf230_of_match),
+		.of_match_table = at86rf230_of_match,
 		.name	= "at86rf230",
 	},
 	.probe      = at86rf230_probe,
-- 
2.34.1


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

* [PATCH 10/12] net: ieee802154: ca8210: drop of_match_ptr for ID table
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (7 preceding siblings ...)
  2023-03-11 17:33 ` [PATCH 09/12] net: ieee802154: at86rf230: " Krzysztof Kozlowski
@ 2023-03-11 17:33 ` Krzysztof Kozlowski
  2023-03-14  7:53   ` Stefan Schmidt
  2023-03-11 17:33 ` [PATCH 11/12] net: ieee802154: adf7242: drop owner from driver Krzysztof Kozlowski
                   ` (3 subsequent siblings)
  12 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:33 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  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/net/ieee802154/ca8210.c:3174:34: error: ‘ca8210_of_ids’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/ieee802154/ca8210.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c
index ed6cb79072a8..65d28e8a87c9 100644
--- a/drivers/net/ieee802154/ca8210.c
+++ b/drivers/net/ieee802154/ca8210.c
@@ -3181,7 +3181,7 @@ static struct spi_driver ca8210_spi_driver = {
 	.driver = {
 		.name =                 DRIVER_NAME,
 		.owner =                THIS_MODULE,
-		.of_match_table =       of_match_ptr(ca8210_of_ids),
+		.of_match_table =       ca8210_of_ids,
 	},
 	.probe  =                       ca8210_probe,
 	.remove =                       ca8210_remove
-- 
2.34.1


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

* [PATCH 11/12] net: ieee802154: adf7242: drop owner from driver
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (8 preceding siblings ...)
  2023-03-11 17:33 ` [PATCH 10/12] net: ieee802154: ca8210: " Krzysztof Kozlowski
@ 2023-03-11 17:33 ` Krzysztof Kozlowski
  2023-03-12 11:30   ` Hennerich, Michael
  2023-03-28 10:49   ` Miquel Raynal
  2023-03-11 17:33 ` [PATCH 12/12] net: ieee802154: ca8210: " Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  12 siblings, 2 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:33 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  Cc: Krzysztof Kozlowski

Core already sets owner in spi_driver.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/ieee802154/adf7242.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c
index 509acc86001c..f9972b8140f9 100644
--- a/drivers/net/ieee802154/adf7242.c
+++ b/drivers/net/ieee802154/adf7242.c
@@ -1338,7 +1338,6 @@ static struct spi_driver adf7242_driver = {
 	.driver = {
 		   .of_match_table = adf7242_of_match,
 		   .name = "adf7242",
-		   .owner = THIS_MODULE,
 		   },
 	.probe = adf7242_probe,
 	.remove = adf7242_remove,
-- 
2.34.1


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

* [PATCH 12/12] net: ieee802154: ca8210: drop owner from driver
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (9 preceding siblings ...)
  2023-03-11 17:33 ` [PATCH 11/12] net: ieee802154: adf7242: drop owner from driver Krzysztof Kozlowski
@ 2023-03-11 17:33 ` Krzysztof Kozlowski
  2023-03-14  7:53   ` Stefan Schmidt
  2023-03-11 18:14 ` [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Vladimir Oltean
  2023-03-15  8:20 ` patchwork-bot+netdevbpf
  12 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 17:33 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan
  Cc: Krzysztof Kozlowski

Core already sets owner in spi_driver.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/ieee802154/ca8210.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c
index 65d28e8a87c9..ca1fa56cca68 100644
--- a/drivers/net/ieee802154/ca8210.c
+++ b/drivers/net/ieee802154/ca8210.c
@@ -3180,7 +3180,6 @@ MODULE_DEVICE_TABLE(of, ca8210_of_ids);
 static struct spi_driver ca8210_spi_driver = {
 	.driver = {
 		.name =                 DRIVER_NAME,
-		.owner =                THIS_MODULE,
 		.of_match_table =       ca8210_of_ids,
 	},
 	.probe  =                       ca8210_probe,
-- 
2.34.1


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

* Re: [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (10 preceding siblings ...)
  2023-03-11 17:33 ` [PATCH 12/12] net: ieee802154: ca8210: " Krzysztof Kozlowski
@ 2023-03-11 18:14 ` Vladimir Oltean
  2023-03-12 10:20   ` Krzysztof Kozlowski
  2023-03-15  8:20 ` patchwork-bot+netdevbpf
  12 siblings, 1 reply; 29+ messages in thread
From: Vladimir Oltean @ 2023-03-11 18:14 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andrew Lunn, Florian Fainelli, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Hauke Mehrtens, Woojung Huh,
	UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni, Colin Foster,
	Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan

On Sat, Mar 11, 2023 at 06:32:52PM +0100, Krzysztof Kozlowski wrote:
> The driver can be compile tested with !CONFIG_OF making certain data
> unused:
> 
>   drivers/net/dsa/lantiq_gswip.c:1888:34: error: ‘xway_gphy_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---

Do you happen to have any context as to why of_match_node() without
CONFIG_OF is implemented as:

#define of_match_node(_matches, _node)	NULL

and not as:

static inline const struct of_device_id *
of_match_node(const struct of_device_id *matches,
	      const struct device_node *node)
{
	return NULL;
}

?

Generally, the static inline shim function model is nicer, because it
allows us to not scatter __maybe_unused all around.

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

* Re: [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused
  2023-03-11 18:14 ` [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Vladimir Oltean
@ 2023-03-12 10:20   ` Krzysztof Kozlowski
  2023-03-12 10:57     ` Vladimir Oltean
  0 siblings, 1 reply; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 10:20 UTC (permalink / raw)
  To: Vladimir Oltean
  Cc: Andrew Lunn, Florian Fainelli, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Hauke Mehrtens, Woojung Huh,
	UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni, Colin Foster,
	Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan

On 11/03/2023 19:14, Vladimir Oltean wrote:
> On Sat, Mar 11, 2023 at 06:32:52PM +0100, Krzysztof Kozlowski wrote:
>> The driver can be compile tested with !CONFIG_OF making certain data
>> unused:
>>
>>   drivers/net/dsa/lantiq_gswip.c:1888:34: error: ‘xway_gphy_match’ defined but not used [-Werror=unused-const-variable=]
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
> 
> Do you happen to have any context as to why of_match_node() without
> CONFIG_OF is implemented as:
> 
> #define of_match_node(_matches, _node)	NULL
> 
> and not as:
> 
> static inline const struct of_device_id *
> of_match_node(const struct of_device_id *matches,
> 	      const struct device_node *node)
> {
> 	return NULL;
> }
> 
> ?
> 
> Generally, the static inline shim function model is nicer, because it
> allows us to not scatter __maybe_unused all around.

Sorry, I don't follow. I don't touch that wrappers, just fix errors
related to OF device ID tables, although in few cases it is indeed
related to of_match_node.

Best regards,
Krzysztof


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

* Re: [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused
  2023-03-12 10:20   ` Krzysztof Kozlowski
@ 2023-03-12 10:57     ` Vladimir Oltean
  2023-03-15  5:22       ` Jakub Kicinski
  0 siblings, 1 reply; 29+ messages in thread
From: Vladimir Oltean @ 2023-03-12 10:57 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andrew Lunn, Florian Fainelli, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Hauke Mehrtens, Woojung Huh,
	UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni, Colin Foster,
	Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan

On Sun, Mar 12, 2023 at 11:20:38AM +0100, Krzysztof Kozlowski wrote:
> On 11/03/2023 19:14, Vladimir Oltean wrote:
> > On Sat, Mar 11, 2023 at 06:32:52PM +0100, Krzysztof Kozlowski wrote:
> >> The driver can be compile tested with !CONFIG_OF making certain data
> >> unused:
> >>
> >>   drivers/net/dsa/lantiq_gswip.c:1888:34: error: ‘xway_gphy_match’ defined but not used [-Werror=unused-const-variable=]
> >>
> >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> >> ---
> > 
> > Do you happen to have any context as to why of_match_node() without
> > CONFIG_OF is implemented as:
> > 
> > #define of_match_node(_matches, _node)	NULL
> > 
> > and not as:
> > 
> > static inline const struct of_device_id *
> > of_match_node(const struct of_device_id *matches,
> > 	      const struct device_node *node)
> > {
> > 	return NULL;
> > }
> > 
> > ?
> > 
> > Generally, the static inline shim function model is nicer, because it
> > allows us to not scatter __maybe_unused all around.
> 
> Sorry, I don't follow. I don't touch that wrappers, just fix errors
> related to OF device ID tables, although in few cases it is indeed
> related to of_match_node.

I'm saying this because in lantiq_gswip.c, xway_gphy_match is accessed
through of_match_node(). If the shim definition for of_match_node() was
different, the variable wouldn't have been unused with CONFIG_OF=n.
I guess it's worth considering changing that wrapper instead of adding
the __maybe_unused.

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

* RE: [PATCH 11/12] net: ieee802154: adf7242: drop owner from driver
  2023-03-11 17:33 ` [PATCH 11/12] net: ieee802154: adf7242: drop owner from driver Krzysztof Kozlowski
@ 2023-03-12 11:30   ` Hennerich, Michael
  2023-03-28 10:49   ` Miquel Raynal
  1 sibling, 0 replies; 29+ messages in thread
From: Hennerich, Michael @ 2023-03-12 11:30 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andrew Lunn, Florian Fainelli,
	Vladimir Oltean, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Hauke Mehrtens, Woojung Huh, UNGLinuxDriver,
	Claudiu Manoil, Alexandre Belloni, Colin Foster, Alexander Aring,
	Stefan Schmidt, Miquel Raynal, Heiner Kallweit, Russell King,
	netdev, linux-kernel, linux-wpan



> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent: Samstag, 11. März 2023 18:33
> To: Andrew Lunn <andrew@lunn.ch>; Florian Fainelli <f.fainelli@gmail.com>;
> Vladimir Oltean <olteanv@gmail.com>; David S. Miller
> <davem@davemloft.net>; Eric Dumazet <edumazet@google.com>; Jakub
> Kicinski <kuba@kernel.org>; Paolo Abeni <pabeni@redhat.com>; Hauke
> Mehrtens <hauke@hauke-m.de>; Woojung Huh
> <woojung.huh@microchip.com>; UNGLinuxDriver@microchip.com; Claudiu
> Manoil <claudiu.manoil@nxp.com>; Alexandre Belloni
> <alexandre.belloni@bootlin.com>; Colin Foster <colin.foster@in-
> advantage.com>; Hennerich, Michael <Michael.Hennerich@analog.com>;
> Alexander Aring <alex.aring@gmail.com>; Stefan Schmidt
> <stefan@datenfreihafen.org>; Miquel Raynal <miquel.raynal@bootlin.com>;
> Heiner Kallweit <hkallweit1@gmail.com>; Russell King
> <linux@armlinux.org.uk>; netdev@vger.kernel.org; linux-
> kernel@vger.kernel.org; linux-wpan@vger.kernel.org
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Subject: [PATCH 11/12] net: ieee802154: adf7242: drop owner from driver
> 
> Core already sets owner in spi_driver.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Acked-by: Michael Hennerich <michael.hennerich@analog.com>

> ---
>  drivers/net/ieee802154/adf7242.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/net/ieee802154/adf7242.c
> b/drivers/net/ieee802154/adf7242.c
> index 509acc86001c..f9972b8140f9 100644
> --- a/drivers/net/ieee802154/adf7242.c
> +++ b/drivers/net/ieee802154/adf7242.c
> @@ -1338,7 +1338,6 @@ static struct spi_driver adf7242_driver = {
>  	.driver = {
>  		   .of_match_table = adf7242_of_match,
>  		   .name = "adf7242",
> -		   .owner = THIS_MODULE,
>  		   },
>  	.probe = adf7242_probe,
>  	.remove = adf7242_remove,
> --
> 2.34.1


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

* RE: [PATCH 07/12] net: ieee802154: adf7242: drop of_match_ptr for ID table
  2023-03-11 17:32 ` [PATCH 07/12] net: ieee802154: adf7242: " Krzysztof Kozlowski
@ 2023-03-12 11:31   ` Hennerich, Michael
  2023-03-28 10:48   ` Miquel Raynal
  1 sibling, 0 replies; 29+ messages in thread
From: Hennerich, Michael @ 2023-03-12 11:31 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andrew Lunn, Florian Fainelli,
	Vladimir Oltean, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Hauke Mehrtens, Woojung Huh, UNGLinuxDriver,
	Claudiu Manoil, Alexandre Belloni, Colin Foster, Alexander Aring,
	Stefan Schmidt, Miquel Raynal, Heiner Kallweit, Russell King,
	netdev, linux-kernel, linux-wpan



> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent: Samstag, 11. März 2023 18:33
> To: Andrew Lunn <andrew@lunn.ch>; Florian Fainelli <f.fainelli@gmail.com>;
> Vladimir Oltean <olteanv@gmail.com>; David S. Miller
> <davem@davemloft.net>; Eric Dumazet <edumazet@google.com>; Jakub
> Kicinski <kuba@kernel.org>; Paolo Abeni <pabeni@redhat.com>; Hauke
> Mehrtens <hauke@hauke-m.de>; Woojung Huh
> <woojung.huh@microchip.com>; UNGLinuxDriver@microchip.com; Claudiu
> Manoil <claudiu.manoil@nxp.com>; Alexandre Belloni
> <alexandre.belloni@bootlin.com>; Colin Foster <colin.foster@in-
> advantage.com>; Hennerich, Michael <Michael.Hennerich@analog.com>;
> Alexander Aring <alex.aring@gmail.com>; Stefan Schmidt
> <stefan@datenfreihafen.org>; Miquel Raynal <miquel.raynal@bootlin.com>;
> Heiner Kallweit <hkallweit1@gmail.com>; Russell King
> <linux@armlinux.org.uk>; netdev@vger.kernel.org; linux-
> kernel@vger.kernel.org; linux-wpan@vger.kernel.org
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Subject: [PATCH 07/12] net: ieee802154: adf7242: drop of_match_ptr for ID
> table
> 
> The driver will match mostly by DT table (even thought there is regular ID
> table) so there is little benefit in of_match_ptr (this also allows ACPI
> matching via PRP0001, even though it might not be relevant here).
> 
>   drivers/net/ieee802154/adf7242.c:1322:34: error: ‘adf7242_of_match’
> defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Acked-by: Michael Hennerich <michael.hennerich@analog.com>

> ---
>  drivers/net/ieee802154/adf7242.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ieee802154/adf7242.c
> b/drivers/net/ieee802154/adf7242.c
> index 5cf218c674a5..509acc86001c 100644
> --- a/drivers/net/ieee802154/adf7242.c
> +++ b/drivers/net/ieee802154/adf7242.c
> @@ -1336,7 +1336,7 @@ MODULE_DEVICE_TABLE(spi, adf7242_device_id);
> static struct spi_driver adf7242_driver = {
>  	.id_table = adf7242_device_id,
>  	.driver = {
> -		   .of_match_table = of_match_ptr(adf7242_of_match),
> +		   .of_match_table = adf7242_of_match,
>  		   .name = "adf7242",
>  		   .owner = THIS_MODULE,
>  		   },
> --
> 2.34.1


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

* Re: [PATCH 08/12] net: ieee802154: mcr20a: drop of_match_ptr for ID table
  2023-03-11 17:32 ` [PATCH 08/12] net: ieee802154: mcr20a: " Krzysztof Kozlowski
@ 2023-03-14  7:52   ` Stefan Schmidt
  0 siblings, 0 replies; 29+ messages in thread
From: Stefan Schmidt @ 2023-03-14  7:52 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andrew Lunn, Florian Fainelli,
	Vladimir Oltean, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Hauke Mehrtens, Woojung Huh, UNGLinuxDriver,
	Claudiu Manoil, Alexandre Belloni, Colin Foster,
	Michael Hennerich, Alexander Aring, Miquel Raynal,
	Heiner Kallweit, Russell King, netdev, linux-kernel, linux-wpan

Hello

On 11.03.23 18:32, Krzysztof Kozlowski wrote:
> The driver will match mostly by DT table (even thought there is regular
> ID table) so there is little benefit in of_match_ptr (this also allows
> ACPI matching via PRP0001, even though it might not be relevant here).
> 
>    drivers/net/ieee802154/mcr20a.c:1340:34: error: ‘mcr20a_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>   drivers/net/ieee802154/mcr20a.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ieee802154/mcr20a.c b/drivers/net/ieee802154/mcr20a.c
> index f53d185e0568..87abe3b46316 100644
> --- a/drivers/net/ieee802154/mcr20a.c
> +++ b/drivers/net/ieee802154/mcr20a.c
> @@ -1352,7 +1352,7 @@ MODULE_DEVICE_TABLE(spi, mcr20a_device_id);
>   static struct spi_driver mcr20a_driver = {
>   	.id_table = mcr20a_device_id,
>   	.driver = {
> -		.of_match_table = of_match_ptr(mcr20a_of_match),
> +		.of_match_table = mcr20a_of_match,
>   		.name	= "mcr20a",
>   	},
>   	.probe      = mcr20a_probe,

Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>

regards
Stefan Schmidt

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

* Re: [PATCH 09/12] net: ieee802154: at86rf230: drop of_match_ptr for ID table
  2023-03-11 17:33 ` [PATCH 09/12] net: ieee802154: at86rf230: " Krzysztof Kozlowski
@ 2023-03-14  7:52   ` Stefan Schmidt
  0 siblings, 0 replies; 29+ messages in thread
From: Stefan Schmidt @ 2023-03-14  7:52 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andrew Lunn, Florian Fainelli,
	Vladimir Oltean, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Hauke Mehrtens, Woojung Huh, UNGLinuxDriver,
	Claudiu Manoil, Alexandre Belloni, Colin Foster,
	Michael Hennerich, Alexander Aring, Miquel Raynal,
	Heiner Kallweit, Russell King, netdev, linux-kernel, linux-wpan

Hello.

On 11.03.23 18:33, Krzysztof Kozlowski wrote:
> The driver will match mostly by DT table (even thought there is regular
> ID table) so there is little benefit in of_match_ptr (this also allows
> ACPI matching via PRP0001, even though it might not be relevant here).
> 
>    drivers/net/ieee802154/at86rf230.c:1644:34: error: ‘at86rf230_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>   drivers/net/ieee802154/at86rf230.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
> index 62b984f84d9f..164c7f605af5 100644
> --- a/drivers/net/ieee802154/at86rf230.c
> +++ b/drivers/net/ieee802154/at86rf230.c
> @@ -1662,7 +1662,7 @@ MODULE_DEVICE_TABLE(spi, at86rf230_device_id);
>   static struct spi_driver at86rf230_driver = {
>   	.id_table = at86rf230_device_id,
>   	.driver = {
> -		.of_match_table = of_match_ptr(at86rf230_of_match),
> +		.of_match_table = at86rf230_of_match,
>   		.name	= "at86rf230",
>   	},
>   	.probe      = at86rf230_probe,

Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>

regards
Stefan Schmidt

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

* Re: [PATCH 10/12] net: ieee802154: ca8210: drop of_match_ptr for ID table
  2023-03-11 17:33 ` [PATCH 10/12] net: ieee802154: ca8210: " Krzysztof Kozlowski
@ 2023-03-14  7:53   ` Stefan Schmidt
  0 siblings, 0 replies; 29+ messages in thread
From: Stefan Schmidt @ 2023-03-14  7:53 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andrew Lunn, Florian Fainelli,
	Vladimir Oltean, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Hauke Mehrtens, Woojung Huh, UNGLinuxDriver,
	Claudiu Manoil, Alexandre Belloni, Colin Foster,
	Michael Hennerich, Alexander Aring, Miquel Raynal,
	Heiner Kallweit, Russell King, netdev, linux-kernel, linux-wpan

Hello.

On 11.03.23 18:33, Krzysztof Kozlowski 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/net/ieee802154/ca8210.c:3174:34: error: ‘ca8210_of_ids’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>   drivers/net/ieee802154/ca8210.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c
> index ed6cb79072a8..65d28e8a87c9 100644
> --- a/drivers/net/ieee802154/ca8210.c
> +++ b/drivers/net/ieee802154/ca8210.c
> @@ -3181,7 +3181,7 @@ static struct spi_driver ca8210_spi_driver = {
>   	.driver = {
>   		.name =                 DRIVER_NAME,
>   		.owner =                THIS_MODULE,
> -		.of_match_table =       of_match_ptr(ca8210_of_ids),
> +		.of_match_table =       ca8210_of_ids,
>   	},
>   	.probe  =                       ca8210_probe,
>   	.remove =                       ca8210_remove

Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>

regards
Stefan Schmidt

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

* Re: [PATCH 12/12] net: ieee802154: ca8210: drop owner from driver
  2023-03-11 17:33 ` [PATCH 12/12] net: ieee802154: ca8210: " Krzysztof Kozlowski
@ 2023-03-14  7:53   ` Stefan Schmidt
  0 siblings, 0 replies; 29+ messages in thread
From: Stefan Schmidt @ 2023-03-14  7:53 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andrew Lunn, Florian Fainelli,
	Vladimir Oltean, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Hauke Mehrtens, Woojung Huh, UNGLinuxDriver,
	Claudiu Manoil, Alexandre Belloni, Colin Foster,
	Michael Hennerich, Alexander Aring, Miquel Raynal,
	Heiner Kallweit, Russell King, netdev, linux-kernel, linux-wpan

Hello.

On 11.03.23 18:33, Krzysztof Kozlowski wrote:
> Core already sets owner in spi_driver.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>   drivers/net/ieee802154/ca8210.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c
> index 65d28e8a87c9..ca1fa56cca68 100644
> --- a/drivers/net/ieee802154/ca8210.c
> +++ b/drivers/net/ieee802154/ca8210.c
> @@ -3180,7 +3180,6 @@ MODULE_DEVICE_TABLE(of, ca8210_of_ids);
>   static struct spi_driver ca8210_spi_driver = {
>   	.driver = {
>   		.name =                 DRIVER_NAME,
> -		.owner =                THIS_MODULE,
>   		.of_match_table =       ca8210_of_ids,
>   	},
>   	.probe  =                       ca8210_probe,

Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>

regards
Stefan Schmidt

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

* Re: [PATCH 05/12] net: dsa: ocelot: drop of_match_ptr for ID table
  2023-03-11 17:32 ` [PATCH 05/12] net: dsa: ocelot: " Krzysztof Kozlowski
@ 2023-03-14 15:34   ` Colin Foster
  0 siblings, 0 replies; 29+ messages in thread
From: Colin Foster @ 2023-03-14 15:34 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan

On Sat, Mar 11, 2023 at 06:32:56PM +0100, Krzysztof Kozlowski 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/net/dsa/ocelot/ocelot_ext.c:143:34: error: ‘ocelot_ext_switch_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  drivers/net/dsa/ocelot/ocelot_ext.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/dsa/ocelot/ocelot_ext.c b/drivers/net/dsa/ocelot/ocelot_ext.c
> index 063150659816..228737a32080 100644
> --- a/drivers/net/dsa/ocelot/ocelot_ext.c
> +++ b/drivers/net/dsa/ocelot/ocelot_ext.c
> @@ -149,7 +149,7 @@ MODULE_DEVICE_TABLE(of, ocelot_ext_switch_of_match);
>  static struct platform_driver ocelot_ext_switch_driver = {
>  	.driver = {
>  		.name = "ocelot-ext-switch",
> -		.of_match_table = of_match_ptr(ocelot_ext_switch_of_match),
> +		.of_match_table = ocelot_ext_switch_of_match,
>  	},
>  	.probe = ocelot_ext_probe,
>  	.remove = ocelot_ext_remove,
> -- 
> 2.34.1
> 

Acked-by: Colin Foster <colin.foster@in-advantage.com>

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

* Re: [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused
  2023-03-12 10:57     ` Vladimir Oltean
@ 2023-03-15  5:22       ` Jakub Kicinski
  2023-03-16  8:21         ` Krzysztof Kozlowski
  0 siblings, 1 reply; 29+ messages in thread
From: Jakub Kicinski @ 2023-03-15  5:22 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Vladimir Oltean, Andrew Lunn, Florian Fainelli, David S. Miller,
	Eric Dumazet, Paolo Abeni, Hauke Mehrtens, Woojung Huh,
	UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni, Colin Foster,
	Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan

On Sun, 12 Mar 2023 12:57:29 +0200 Vladimir Oltean wrote:
> > Sorry, I don't follow. I don't touch that wrappers, just fix errors
> > related to OF device ID tables, although in few cases it is indeed
> > related to of_match_node.  
> 
> I'm saying this because in lantiq_gswip.c, xway_gphy_match is accessed
> through of_match_node(). If the shim definition for of_match_node() was
> different, the variable wouldn't have been unused with CONFIG_OF=n.
> I guess it's worth considering changing that wrapper instead of adding
> the __maybe_unused.

Hi Krzysztof, have you had a chance to check if using an empty static
inline is enough to silence the compiler? Seems like it could save
us quite some churn? Or do we want the of_match_node() decorations
to go away in general?

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

* Re: [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused
  2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (11 preceding siblings ...)
  2023-03-11 18:14 ` [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Vladimir Oltean
@ 2023-03-15  8:20 ` patchwork-bot+netdevbpf
  2023-03-15 19:51   ` Jakub Kicinski
  12 siblings, 1 reply; 29+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-03-15  8:20 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andrew, f.fainelli, olteanv, davem, edumazet, kuba, pabeni,
	hauke, woojung.huh, UNGLinuxDriver, claudiu.manoil,
	alexandre.belloni, colin.foster, michael.hennerich, alex.aring,
	stefan, miquel.raynal, hkallweit1, linux, netdev, linux-kernel,
	linux-wpan

Hello:

This series was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Sat, 11 Mar 2023 18:32:52 +0100 you wrote:
> The driver can be compile tested with !CONFIG_OF making certain data
> unused:
> 
>   drivers/net/dsa/lantiq_gswip.c:1888:34: error: ‘xway_gphy_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> [...]

Here is the summary with links:
  - [01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused
    https://git.kernel.org/netdev/net-next/c/6ea1e67788f3
  - [02/12] net: dsa: lan9303: drop of_match_ptr for ID table
    https://git.kernel.org/netdev/net-next/c/ced5c5a0a2ea
  - [03/12] net: dsa: seville_vsc9953: drop of_match_ptr for ID table
    https://git.kernel.org/netdev/net-next/c/1eb8566dd08d
  - [04/12] net: dsa: ksz9477: drop of_match_ptr for ID table
    https://git.kernel.org/netdev/net-next/c/00923ff2e1ba
  - [05/12] net: dsa: ocelot: drop of_match_ptr for ID table
    https://git.kernel.org/netdev/net-next/c/0f17b42827ae
  - [06/12] net: phy: ks8995: drop of_match_ptr for ID table
    https://git.kernel.org/netdev/net-next/c/b0b7d1b6260b
  - [07/12] net: ieee802154: adf7242: drop of_match_ptr for ID table
    https://git.kernel.org/netdev/net-next/c/3df09beef650
  - [08/12] net: ieee802154: mcr20a: drop of_match_ptr for ID table
    https://git.kernel.org/netdev/net-next/c/3896c40b7824
  - [09/12] net: ieee802154: at86rf230: drop of_match_ptr for ID table
    https://git.kernel.org/netdev/net-next/c/32b7030681a4
  - [10/12] net: ieee802154: ca8210: drop of_match_ptr for ID table
    https://git.kernel.org/netdev/net-next/c/cdfe4fc4d946
  - [11/12] net: ieee802154: adf7242: drop owner from driver
    https://git.kernel.org/netdev/net-next/c/059fa9972340
  - [12/12] net: ieee802154: ca8210: drop owner from driver
    https://git.kernel.org/netdev/net-next/c/613a3c44a373

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

* Re: [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused
  2023-03-15  8:20 ` patchwork-bot+netdevbpf
@ 2023-03-15 19:51   ` Jakub Kicinski
  0 siblings, 0 replies; 29+ messages in thread
From: Jakub Kicinski @ 2023-03-15 19:51 UTC (permalink / raw)
  To: patchwork-bot+netdevbpf
  Cc: Krzysztof Kozlowski, andrew, f.fainelli, olteanv, davem,
	edumazet, pabeni, hauke, woojung.huh, UNGLinuxDriver,
	claudiu.manoil, alexandre.belloni, colin.foster,
	michael.hennerich, alex.aring, stefan, miquel.raynal, hkallweit1,
	linux, netdev, linux-kernel, linux-wpan

On Wed, 15 Mar 2023 08:20:20 +0000 patchwork-bot+netdevbpf@kernel.org
wrote:
> This series was applied to netdev/net-next.git (main)
> by David S. Miller <davem@davemloft.net>:

:) :) :)

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

* Re: [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused
  2023-03-15  5:22       ` Jakub Kicinski
@ 2023-03-16  8:21         ` Krzysztof Kozlowski
  0 siblings, 0 replies; 29+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-16  8:21 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: Vladimir Oltean, Andrew Lunn, Florian Fainelli, David S. Miller,
	Eric Dumazet, Paolo Abeni, Hauke Mehrtens, Woojung Huh,
	UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni, Colin Foster,
	Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Miquel Raynal, Heiner Kallweit, Russell King, netdev,
	linux-kernel, linux-wpan

On 15/03/2023 06:22, Jakub Kicinski wrote:
> On Sun, 12 Mar 2023 12:57:29 +0200 Vladimir Oltean wrote:
>>> Sorry, I don't follow. I don't touch that wrappers, just fix errors
>>> related to OF device ID tables, although in few cases it is indeed
>>> related to of_match_node.  
>>
>> I'm saying this because in lantiq_gswip.c, xway_gphy_match is accessed
>> through of_match_node(). If the shim definition for of_match_node() was
>> different, the variable wouldn't have been unused with CONFIG_OF=n.
>> I guess it's worth considering changing that wrapper instead of adding
>> the __maybe_unused.
> 
> Hi Krzysztof, have you had a chance to check if using an empty static
> inline is enough to silence the compiler? Seems like it could save
> us quite some churn? Or do we want the of_match_node() decorations
> to go away in general?

I am pretty sure fixing of_match_node() and of_match_ptr() (independent
case) would supersed this patchset, but it is a bit bigger change than I
have available time now.  I didn't try it yet.


Best regards,
Krzysztof


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

* Re: [PATCH 07/12] net: ieee802154: adf7242: drop of_match_ptr for ID table
  2023-03-11 17:32 ` [PATCH 07/12] net: ieee802154: adf7242: " Krzysztof Kozlowski
  2023-03-12 11:31   ` Hennerich, Michael
@ 2023-03-28 10:48   ` Miquel Raynal
  2023-03-28 16:13     ` Stefan Schmidt
  1 sibling, 1 reply; 29+ messages in thread
From: Miquel Raynal @ 2023-03-28 10:48 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Heiner Kallweit, Russell King, netdev, linux-kernel, linux-wpan

Hi Krzysztof,

krzysztof.kozlowski@linaro.org wrote on Sat, 11 Mar 2023 18:32:58 +0100:

> The driver will match mostly by DT table (even thought there is regular
> ID table) so there is little benefit in of_match_ptr (this also allows
> ACPI matching via PRP0001, even though it might not be relevant here).
> 
>   drivers/net/ieee802154/adf7242.c:1322:34: error: ‘adf7242_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

I see Stefan already acked most of the ieee802154 patches, but I didn't
got notified for this one, so in case:

Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>

> ---
>  drivers/net/ieee802154/adf7242.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c
> index 5cf218c674a5..509acc86001c 100644
> --- a/drivers/net/ieee802154/adf7242.c
> +++ b/drivers/net/ieee802154/adf7242.c
> @@ -1336,7 +1336,7 @@ MODULE_DEVICE_TABLE(spi, adf7242_device_id);
>  static struct spi_driver adf7242_driver = {
>  	.id_table = adf7242_device_id,
>  	.driver = {
> -		   .of_match_table = of_match_ptr(adf7242_of_match),
> +		   .of_match_table = adf7242_of_match,
>  		   .name = "adf7242",
>  		   .owner = THIS_MODULE,
>  		   },


Thanks,
Miquèl

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

* Re: [PATCH 11/12] net: ieee802154: adf7242: drop owner from driver
  2023-03-11 17:33 ` [PATCH 11/12] net: ieee802154: adf7242: drop owner from driver Krzysztof Kozlowski
  2023-03-12 11:30   ` Hennerich, Michael
@ 2023-03-28 10:49   ` Miquel Raynal
  1 sibling, 0 replies; 29+ messages in thread
From: Miquel Raynal @ 2023-03-28 10:49 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring, Stefan Schmidt,
	Heiner Kallweit, Russell King, netdev, linux-kernel, linux-wpan

Hi Krzysztof,

krzysztof.kozlowski@linaro.org wrote on Sat, 11 Mar 2023 18:33:02 +0100:

> Core already sets owner in spi_driver.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Same here:

Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>

> ---
>  drivers/net/ieee802154/adf7242.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c
> index 509acc86001c..f9972b8140f9 100644
> --- a/drivers/net/ieee802154/adf7242.c
> +++ b/drivers/net/ieee802154/adf7242.c
> @@ -1338,7 +1338,6 @@ static struct spi_driver adf7242_driver = {
>  	.driver = {
>  		   .of_match_table = adf7242_of_match,
>  		   .name = "adf7242",
> -		   .owner = THIS_MODULE,
>  		   },
>  	.probe = adf7242_probe,
>  	.remove = adf7242_remove,


Thanks,
Miquèl

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

* Re: [PATCH 07/12] net: ieee802154: adf7242: drop of_match_ptr for ID table
  2023-03-28 10:48   ` Miquel Raynal
@ 2023-03-28 16:13     ` Stefan Schmidt
  0 siblings, 0 replies; 29+ messages in thread
From: Stefan Schmidt @ 2023-03-28 16:13 UTC (permalink / raw)
  To: Miquel Raynal, Krzysztof Kozlowski
  Cc: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Hauke Mehrtens,
	Woojung Huh, UNGLinuxDriver, Claudiu Manoil, Alexandre Belloni,
	Colin Foster, Michael Hennerich, Alexander Aring,
	Heiner Kallweit, Russell King, netdev, linux-kernel, linux-wpan

Hello.

On 28.03.23 12:48, Miquel Raynal wrote:
> Hi Krzysztof,
> 
> krzysztof.kozlowski@linaro.org wrote on Sat, 11 Mar 2023 18:32:58 +0100:
> 
>> The driver will match mostly by DT table (even thought there is regular
>> ID table) so there is little benefit in of_match_ptr (this also allows
>> ACPI matching via PRP0001, even though it might not be relevant here).
>>
>>    drivers/net/ieee802154/adf7242.c:1322:34: error: ‘adf7242_of_match’ defined but not used [-Werror=unused-const-variable=]
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> I see Stefan already acked most of the ieee802154 patches, but I didn't
> got notified for this one, so in case:

The reason I did not ack the two patches for adf7242 is that Michael as 
driver maintainer ack'ed them already.

I only handled the ones where we have no active maintainer, as a fallback.

regards
Stefan Schmidt

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

end of thread, other threads:[~2023-03-28 16:14 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11 17:32 [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Krzysztof Kozlowski
2023-03-11 17:32 ` [PATCH 02/12] net: dsa: lan9303: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-11 17:32 ` [PATCH 03/12] net: dsa: seville_vsc9953: " Krzysztof Kozlowski
2023-03-11 17:32 ` [PATCH 04/12] net: dsa: ksz9477: " Krzysztof Kozlowski
2023-03-11 17:32 ` [PATCH 05/12] net: dsa: ocelot: " Krzysztof Kozlowski
2023-03-14 15:34   ` Colin Foster
2023-03-11 17:32 ` [PATCH 06/12] net: phy: ks8995: " Krzysztof Kozlowski
2023-03-11 17:32 ` [PATCH 07/12] net: ieee802154: adf7242: " Krzysztof Kozlowski
2023-03-12 11:31   ` Hennerich, Michael
2023-03-28 10:48   ` Miquel Raynal
2023-03-28 16:13     ` Stefan Schmidt
2023-03-11 17:32 ` [PATCH 08/12] net: ieee802154: mcr20a: " Krzysztof Kozlowski
2023-03-14  7:52   ` Stefan Schmidt
2023-03-11 17:33 ` [PATCH 09/12] net: ieee802154: at86rf230: " Krzysztof Kozlowski
2023-03-14  7:52   ` Stefan Schmidt
2023-03-11 17:33 ` [PATCH 10/12] net: ieee802154: ca8210: " Krzysztof Kozlowski
2023-03-14  7:53   ` Stefan Schmidt
2023-03-11 17:33 ` [PATCH 11/12] net: ieee802154: adf7242: drop owner from driver Krzysztof Kozlowski
2023-03-12 11:30   ` Hennerich, Michael
2023-03-28 10:49   ` Miquel Raynal
2023-03-11 17:33 ` [PATCH 12/12] net: ieee802154: ca8210: " Krzysztof Kozlowski
2023-03-14  7:53   ` Stefan Schmidt
2023-03-11 18:14 ` [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Vladimir Oltean
2023-03-12 10:20   ` Krzysztof Kozlowski
2023-03-12 10:57     ` Vladimir Oltean
2023-03-15  5:22       ` Jakub Kicinski
2023-03-16  8:21         ` Krzysztof Kozlowski
2023-03-15  8:20 ` patchwork-bot+netdevbpf
2023-03-15 19:51   ` Jakub Kicinski

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.