* [PATCH 1/5] net: stmmac: qcom: drop of_match_ptr for ID table
@ 2023-03-10 21:46 Krzysztof Kozlowski
2023-03-10 21:46 ` [PATCH 2/5] net: stmmac: generic: " Krzysztof Kozlowski
` (5 more replies)
0 siblings, 6 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-10 21:46 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Byungho An, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
Maxime Coquelin, Vinod Koul, Bhupesh Sharma, netdev, linux-kernel,
linux-stm32, linux-arm-kernel
Cc: Krzysztof Kozlowski
The driver is specific to ARCH_QCOM which depends on OF thus the driver
is OF-only. Its of_device_id table is built unconditionally, thus
of_match_ptr() for ID table does not make sense.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
index 732774645c1a..32763566c214 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
@@ -606,7 +606,7 @@ static struct platform_driver qcom_ethqos_driver = {
.driver = {
.name = "qcom-ethqos",
.pm = &stmmac_pltfr_pm_ops,
- .of_match_table = of_match_ptr(qcom_ethqos_match),
+ .of_match_table = qcom_ethqos_match,
},
};
module_platform_driver(qcom_ethqos_driver);
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/5] net: stmmac: generic: drop of_match_ptr for ID table
2023-03-10 21:46 [PATCH 1/5] net: stmmac: qcom: drop of_match_ptr for ID table Krzysztof Kozlowski
@ 2023-03-10 21:46 ` Krzysztof Kozlowski
2023-03-13 16:27 ` Simon Horman
2023-03-10 21:46 ` [PATCH 3/5] net: marvell: pxa168_eth: " Krzysztof Kozlowski
` (4 subsequent siblings)
5 siblings, 1 reply; 11+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-10 21:46 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Byungho An, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
Maxime Coquelin, Vinod Koul, Bhupesh Sharma, netdev, linux-kernel,
linux-stm32, linux-arm-kernel
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 is not relevant here).
drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:72:34: error: ‘dwmac_generic_match’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
index 5e731a72cce8..ef8f3a940938 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
@@ -91,7 +91,7 @@ static struct platform_driver dwmac_generic_driver = {
.driver = {
.name = STMMAC_RESOURCE_NAME,
.pm = &stmmac_pltfr_pm_ops,
- .of_match_table = of_match_ptr(dwmac_generic_match),
+ .of_match_table = dwmac_generic_match,
},
};
module_platform_driver(dwmac_generic_driver);
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/5] net: marvell: pxa168_eth: drop of_match_ptr for ID table
2023-03-10 21:46 [PATCH 1/5] net: stmmac: qcom: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-10 21:46 ` [PATCH 2/5] net: stmmac: generic: " Krzysztof Kozlowski
@ 2023-03-10 21:46 ` Krzysztof Kozlowski
2023-03-13 16:28 ` Simon Horman
2023-03-10 21:46 ` [PATCH 4/5] net: samsung: sxgbe: " Krzysztof Kozlowski
` (3 subsequent siblings)
5 siblings, 1 reply; 11+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-10 21:46 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Byungho An, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
Maxime Coquelin, Vinod Koul, Bhupesh Sharma, netdev, linux-kernel,
linux-stm32, linux-arm-kernel
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 is not relevant here).
drivers/net/ethernet/marvell/pxa168_eth.c:1575:34: error: ‘pxa168_eth_of_match’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/net/ethernet/marvell/pxa168_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/pxa168_eth.c b/drivers/net/ethernet/marvell/pxa168_eth.c
index 87fff539d39d..d5691b6a2bc5 100644
--- a/drivers/net/ethernet/marvell/pxa168_eth.c
+++ b/drivers/net/ethernet/marvell/pxa168_eth.c
@@ -1586,7 +1586,7 @@ static struct platform_driver pxa168_eth_driver = {
.suspend = pxa168_eth_suspend,
.driver = {
.name = DRIVER_NAME,
- .of_match_table = of_match_ptr(pxa168_eth_of_match),
+ .of_match_table = pxa168_eth_of_match,
},
};
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/5] net: samsung: sxgbe: drop of_match_ptr for ID table
2023-03-10 21:46 [PATCH 1/5] net: stmmac: qcom: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-10 21:46 ` [PATCH 2/5] net: stmmac: generic: " Krzysztof Kozlowski
2023-03-10 21:46 ` [PATCH 3/5] net: marvell: pxa168_eth: " Krzysztof Kozlowski
@ 2023-03-10 21:46 ` Krzysztof Kozlowski
2023-03-13 16:27 ` Simon Horman
2023-03-10 21:46 ` [PATCH 5/5] net: ni: " Krzysztof Kozlowski
` (2 subsequent siblings)
5 siblings, 1 reply; 11+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-10 21:46 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Byungho An, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
Maxime Coquelin, Vinod Koul, Bhupesh Sharma, netdev, linux-kernel,
linux-stm32, linux-arm-kernel
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 is not relevant here).
drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c:220:34: error: ‘sxgbe_dt_ids’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c
index 926532466691..4e5526303f07 100644
--- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c
+++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c
@@ -229,7 +229,7 @@ static struct platform_driver sxgbe_platform_driver = {
.driver = {
.name = SXGBE_RESOURCE_NAME,
.pm = &sxgbe_platform_pm_ops,
- .of_match_table = of_match_ptr(sxgbe_dt_ids),
+ .of_match_table = sxgbe_dt_ids,
},
};
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 5/5] net: ni: drop of_match_ptr for ID table
2023-03-10 21:46 [PATCH 1/5] net: stmmac: qcom: drop of_match_ptr for ID table Krzysztof Kozlowski
` (2 preceding siblings ...)
2023-03-10 21:46 ` [PATCH 4/5] net: samsung: sxgbe: " Krzysztof Kozlowski
@ 2023-03-10 21:46 ` Krzysztof Kozlowski
2023-03-13 16:27 ` Simon Horman
2023-03-13 16:26 ` [PATCH 1/5] net: stmmac: qcom: " Simon Horman
2023-03-15 8:10 ` patchwork-bot+netdevbpf
5 siblings, 1 reply; 11+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-10 21:46 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Byungho An, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
Maxime Coquelin, Vinod Koul, Bhupesh Sharma, netdev, linux-kernel,
linux-stm32, linux-arm-kernel
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 is not relevant here).
drivers/net/ethernet/ni/nixge.c:1253:34: error: ‘nixge_dt_ids’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/net/ethernet/ni/nixge.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ni/nixge.c b/drivers/net/ethernet/ni/nixge.c
index 56e02cba0b8a..0fd156286d4d 100644
--- a/drivers/net/ethernet/ni/nixge.c
+++ b/drivers/net/ethernet/ni/nixge.c
@@ -1422,7 +1422,7 @@ static struct platform_driver nixge_driver = {
.remove = nixge_remove,
.driver = {
.name = "nixge",
- .of_match_table = of_match_ptr(nixge_dt_ids),
+ .of_match_table = nixge_dt_ids,
},
};
module_platform_driver(nixge_driver);
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 1/5] net: stmmac: qcom: drop of_match_ptr for ID table
2023-03-10 21:46 [PATCH 1/5] net: stmmac: qcom: drop of_match_ptr for ID table Krzysztof Kozlowski
` (3 preceding siblings ...)
2023-03-10 21:46 ` [PATCH 5/5] net: ni: " Krzysztof Kozlowski
@ 2023-03-13 16:26 ` Simon Horman
2023-03-15 8:10 ` patchwork-bot+netdevbpf
5 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2023-03-13 16:26 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Byungho An, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
Maxime Coquelin, Vinod Koul, Bhupesh Sharma, netdev, linux-kernel,
linux-stm32, linux-arm-kernel
On Fri, Mar 10, 2023 at 10:46:28PM +0100, Krzysztof Kozlowski wrote:
> The driver is specific to ARCH_QCOM which depends on OF thus the driver
> is OF-only. Its of_device_id table is built unconditionally, thus
> of_match_ptr() for ID table does not make sense.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 5/5] net: ni: drop of_match_ptr for ID table
2023-03-10 21:46 ` [PATCH 5/5] net: ni: " Krzysztof Kozlowski
@ 2023-03-13 16:27 ` Simon Horman
0 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2023-03-13 16:27 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Byungho An, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
Maxime Coquelin, Vinod Koul, Bhupesh Sharma, netdev, linux-kernel,
linux-stm32, linux-arm-kernel
On Fri, Mar 10, 2023 at 10:46:32PM +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 is not relevant here).
>
> drivers/net/ethernet/ni/nixge.c:1253:34: error: ‘nixge_dt_ids’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 4/5] net: samsung: sxgbe: drop of_match_ptr for ID table
2023-03-10 21:46 ` [PATCH 4/5] net: samsung: sxgbe: " Krzysztof Kozlowski
@ 2023-03-13 16:27 ` Simon Horman
0 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2023-03-13 16:27 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Byungho An, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
Maxime Coquelin, Vinod Koul, Bhupesh Sharma, netdev, linux-kernel,
linux-stm32, linux-arm-kernel
On Fri, Mar 10, 2023 at 10:46:31PM +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 is not relevant here).
>
> drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c:220:34: error: ‘sxgbe_dt_ids’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/5] net: stmmac: generic: drop of_match_ptr for ID table
2023-03-10 21:46 ` [PATCH 2/5] net: stmmac: generic: " Krzysztof Kozlowski
@ 2023-03-13 16:27 ` Simon Horman
0 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2023-03-13 16:27 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Byungho An, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
Maxime Coquelin, Vinod Koul, Bhupesh Sharma, netdev, linux-kernel,
linux-stm32, linux-arm-kernel
On Fri, Mar 10, 2023 at 10:46:29PM +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 is not relevant here).
>
> drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:72:34: error: ‘dwmac_generic_match’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 3/5] net: marvell: pxa168_eth: drop of_match_ptr for ID table
2023-03-10 21:46 ` [PATCH 3/5] net: marvell: pxa168_eth: " Krzysztof Kozlowski
@ 2023-03-13 16:28 ` Simon Horman
0 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2023-03-13 16:28 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Byungho An, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
Maxime Coquelin, Vinod Koul, Bhupesh Sharma, netdev, linux-kernel,
linux-stm32, linux-arm-kernel
On Fri, Mar 10, 2023 at 10:46:30PM +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 is not relevant here).
>
> drivers/net/ethernet/marvell/pxa168_eth.c:1575:34: error: ‘pxa168_eth_of_match’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/5] net: stmmac: qcom: drop of_match_ptr for ID table
2023-03-10 21:46 [PATCH 1/5] net: stmmac: qcom: drop of_match_ptr for ID table Krzysztof Kozlowski
` (4 preceding siblings ...)
2023-03-13 16:26 ` [PATCH 1/5] net: stmmac: qcom: " Simon Horman
@ 2023-03-15 8:10 ` patchwork-bot+netdevbpf
5 siblings, 0 replies; 11+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-03-15 8:10 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: davem, edumazet, kuba, pabeni, bh74.an, peppe.cavallaro,
alexandre.torgue, joabreu, mcoquelin.stm32, vkoul, bhupesh.sharma,
netdev, linux-kernel, linux-stm32, linux-arm-kernel
Hello:
This series was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:
On Fri, 10 Mar 2023 22:46:28 +0100 you wrote:
> The driver is specific to ARCH_QCOM which depends on OF thus the driver
> is OF-only. Its of_device_id table is built unconditionally, thus
> of_match_ptr() for ID table does not make sense.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [1/5] net: stmmac: qcom: drop of_match_ptr for ID table
https://git.kernel.org/netdev/net-next/c/dc54e450a5dd
- [2/5] net: stmmac: generic: drop of_match_ptr for ID table
https://git.kernel.org/netdev/net-next/c/e6512465838b
- [3/5] net: marvell: pxa168_eth: drop of_match_ptr for ID table
https://git.kernel.org/netdev/net-next/c/69df36d524db
- [4/5] net: samsung: sxgbe: drop of_match_ptr for ID table
https://git.kernel.org/netdev/net-next/c/7f319fe4363c
- [5/5] net: ni: drop of_match_ptr for ID table
https://git.kernel.org/netdev/net-next/c/7e9aa8cad084
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] 11+ messages in thread
end of thread, other threads:[~2023-03-15 8:10 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-10 21:46 [PATCH 1/5] net: stmmac: qcom: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-10 21:46 ` [PATCH 2/5] net: stmmac: generic: " Krzysztof Kozlowski
2023-03-13 16:27 ` Simon Horman
2023-03-10 21:46 ` [PATCH 3/5] net: marvell: pxa168_eth: " Krzysztof Kozlowski
2023-03-13 16:28 ` Simon Horman
2023-03-10 21:46 ` [PATCH 4/5] net: samsung: sxgbe: " Krzysztof Kozlowski
2023-03-13 16:27 ` Simon Horman
2023-03-10 21:46 ` [PATCH 5/5] net: ni: " Krzysztof Kozlowski
2023-03-13 16:27 ` Simon Horman
2023-03-13 16:26 ` [PATCH 1/5] net: stmmac: qcom: " Simon Horman
2023-03-15 8:10 ` patchwork-bot+netdevbpf
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).