Skip to contentSkip to conversation

net: tulip: Rename PCI driver struct to end in _driver

PATCH Applied Uwe Kleine-König 3 participants 4 messages Jun 27, 2025 – Jul 2, 2025

Subsystems (3)

v1 of 2 Applied 1/1 Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: tulip: Rename PCI driver struct to end in _driver

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")
---
 drivers/net/ethernet/dec/tulip/xircom_cb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/dec/tulip/xircom_cb.c +2 -2
index 8759f9f76b62..e5d2ede13845 100644
@@ -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

Signature · 1 line
2.49.0
reviewer
#1 lore raw
Quoted 9 lines · Uwe Kleine-König

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")

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?

...

#2 lore raw
Quoted 8 lines · Simon Horman
Quoted 7 lines · Uwe Kleine-König

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.

Quoted 8 lines
Quoted 2 lines
Fixes 1da177e4c3f4 ("Linux-2.6.12-rc2")

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

#3 lore raw
In reply to Uwe Kleine-König
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · 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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html