* [PATCH] net: tulip: Rename PCI driver struct to end in _driver
@ 2025-06-27 10:22 Uwe Kleine-König
2025-06-27 19:48 ` Simon Horman
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2025-06-27 10:22 UTC (permalink / raw)
To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni
Cc: netdev, linux-parisc
This is not only a cosmetic change because the section mismatch checks
also depend on the name and for drivers the checks are stricter than for
ops.
However xircom_driver also passes the stricter checks just fine, so no
further changes needed.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
drivers/net/ethernet/dec/tulip/xircom_cb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/dec/tulip/xircom_cb.c b/drivers/net/ethernet/dec/tulip/xircom_cb.c
index 8759f9f76b62..e5d2ede13845 100644
--- a/drivers/net/ethernet/dec/tulip/xircom_cb.c
+++ b/drivers/net/ethernet/dec/tulip/xircom_cb.c
@@ -143,7 +143,7 @@ static const struct pci_device_id xircom_pci_table[] = {
};
MODULE_DEVICE_TABLE(pci, xircom_pci_table);
-static struct pci_driver xircom_ops = {
+static struct pci_driver xircom_driver = {
.name = "xircom_cb",
.id_table = xircom_pci_table,
.probe = xircom_probe,
@@ -1169,4 +1169,4 @@ investigate_write_descriptor(struct net_device *dev,
}
}
-module_pci_driver(xircom_ops);
+module_pci_driver(xircom_driver);
base-commit: e04c78d86a9699d136910cfc0bdcf01087e3267e
--
2.49.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] net: tulip: Rename PCI driver struct to end in _driver
2025-06-27 10:22 [PATCH] net: tulip: Rename PCI driver struct to end in _driver Uwe Kleine-König
@ 2025-06-27 19:48 ` Simon Horman
2025-06-27 21:22 ` Uwe Kleine-König
2025-06-30 16:54 ` [PATCH v2 net-next] " Uwe Kleine-König
2025-07-02 3:10 ` [PATCH] " patchwork-bot+netdevbpf
2 siblings, 1 reply; 5+ messages in thread
From: Simon Horman @ 2025-06-27 19:48 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, netdev, linux-parisc
On Fri, Jun 27, 2025 at 12:22:20PM +0200, Uwe Kleine-König wrote:
> This is not only a cosmetic change because the section mismatch checks
> also depend on the name and for drivers the checks are stricter than for
> ops.
>
> However xircom_driver also passes the stricter checks just fine, so no
> further changes needed.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
As per my comment on a similar patch for a different driver:
From a Networking subsystem point of view
this feels more like an enhancement than a bug fix.
Can we drop the Fixes tag?
...
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: tulip: Rename PCI driver struct to end in _driver
2025-06-27 19:48 ` Simon Horman
@ 2025-06-27 21:22 ` Uwe Kleine-König
0 siblings, 0 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2025-06-27 21:22 UTC (permalink / raw)
To: Simon Horman
Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, netdev, linux-parisc
[-- Attachment #1: Type: text/plain, Size: 938 bytes --]
On Fri, Jun 27, 2025 at 08:48:26PM +0100, Simon Horman wrote:
> On Fri, Jun 27, 2025 at 12:22:20PM +0200, Uwe Kleine-König wrote:
> > This is not only a cosmetic change because the section mismatch checks
> > also depend on the name and for drivers the checks are stricter than for
> > ops.
> >
> > However xircom_driver also passes the stricter checks just fine, so no
> > further changes needed.
> >
> > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
>
> As per my comment on a similar patch for a different driver:
>
> From a Networking subsystem point of view
> this feels more like an enhancement than a bug fix.
> Can we drop the Fixes tag?
For completeness: Here the same applies as for said other patch: IMHO
the Fixes: line is right, but I agree that we don't need a backport to
stable and I'm ok with dropping the line.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 net-next] net: tulip: Rename PCI driver struct to end in _driver
2025-06-27 10:22 [PATCH] net: tulip: Rename PCI driver struct to end in _driver Uwe Kleine-König
2025-06-27 19:48 ` Simon Horman
@ 2025-06-30 16:54 ` Uwe Kleine-König
2025-07-02 3:10 ` [PATCH] " patchwork-bot+netdevbpf
2 siblings, 0 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2025-06-30 16:54 UTC (permalink / raw)
To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Simon Horman
Cc: netdev, linux-parisc
This is not only a cosmetic change because the section mismatch checks
(implemented in scripts/mod/modpost.c) also depend on the name and for
drivers the checks are stricter than for ops.
However xircom_driver also passes the stricter checks just fine, so no
further changes needed.
The driver got this wrong for the longer than the kernel is tracked in
git, so commit 1da177e4c3f4 ("Linux-2.6.12-rc2") was already wrong.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
changes since implicit v1 (available at
https://lore.kernel.org/netdev/20250627102220.1937649-2-u.kleine-koenig@baylibre.com):
- Improve commit log to explain in more detail the check
- Mention the introducing commit in prose and not in a Fixes: line
- Explicitly mark for net-next in the Subject line
drivers/net/ethernet/dec/tulip/xircom_cb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/dec/tulip/xircom_cb.c b/drivers/net/ethernet/dec/tulip/xircom_cb.c
index 8759f9f76b62..e5d2ede13845 100644
--- a/drivers/net/ethernet/dec/tulip/xircom_cb.c
+++ b/drivers/net/ethernet/dec/tulip/xircom_cb.c
@@ -143,7 +143,7 @@ static const struct pci_device_id xircom_pci_table[] = {
};
MODULE_DEVICE_TABLE(pci, xircom_pci_table);
-static struct pci_driver xircom_ops = {
+static struct pci_driver xircom_driver = {
.name = "xircom_cb",
.id_table = xircom_pci_table,
.probe = xircom_probe,
@@ -1169,4 +1169,4 @@ investigate_write_descriptor(struct net_device *dev,
}
}
-module_pci_driver(xircom_ops);
+module_pci_driver(xircom_driver);
base-commit: e04c78d86a9699d136910cfc0bdcf01087e3267e
--
2.49.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] net: tulip: Rename PCI driver struct to end in _driver
2025-06-27 10:22 [PATCH] net: tulip: Rename PCI driver struct to end in _driver Uwe Kleine-König
2025-06-27 19:48 ` Simon Horman
2025-06-30 16:54 ` [PATCH v2 net-next] " Uwe Kleine-König
@ 2025-07-02 3:10 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-07-02 3:10 UTC (permalink / raw)
To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig_=3Cu=2Ekleine-koenig=40baylibre=2Ecom=3E?=
Cc: andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-parisc
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 27 Jun 2025 12:22:20 +0200 you wrote:
> This is not only a cosmetic change because the section mismatch checks
> also depend on the name and for drivers the checks are stricter than for
> ops.
>
> However xircom_driver also passes the stricter checks just fine, so no
> further changes needed.
>
> [...]
Here is the summary with links:
- net: tulip: Rename PCI driver struct to end in _driver
https://git.kernel.org/netdev/net-next/c/e96ee511c906
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] 5+ messages in thread
end of thread, other threads:[~2025-07-02 3:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-27 10:22 [PATCH] net: tulip: Rename PCI driver struct to end in _driver Uwe Kleine-König
2025-06-27 19:48 ` Simon Horman
2025-06-27 21:22 ` Uwe Kleine-König
2025-06-30 16:54 ` [PATCH v2 net-next] " Uwe Kleine-König
2025-07-02 3:10 ` [PATCH] " 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).