Skip to contentSkip to conversation

net: alacritech: publish the PCI module aliases

PATCH Applied Pengpeng Hou 2 participants 2 messages Sep 20 – Sep 22

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: alacritech: publish the PCI module aliases

The SLIC driver has a PCI ID table connected to its pci_driver, but does not export it. Its module therefore lacks the PCI aliases used to automatically load it for the supported Alacritech adapters.

Export the existing PCI table without changing device matching.

The issue was found by our static-analysis tool.

Fixes 60c140df15db ("net: ethernet: slicoss: add slicoss gigabit ethernet driver")
Assisted-by gpt 5

---
Changes since v1:
https://lore.kernel.org/all/[email protected]/
Rewrite the source-analysis explanation as requested by Jakub; retain the one-line change reviewed by Simon and Lino.

 drivers/net/ethernet/alacritech/slicoss.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/alacritech/slicoss.c +1 -0
index c1949ca060ca..14b74c09233e 100644
@@ -34,6 +34,7 @@ static const struct pci_device_id slic_id_tbl[] = {
 		     PCI_DEVICE_ID_ALACRITECH_OASIS) },
 	{ 0 }
 };
+MODULE_DEVICE_TABLE(pci, slic_id_tbl);
 
 static const char slic_stats_strings[][ETH_GSTRING_LEN] = {
 	"rx_packets",

base-commit: 518e5b794c06c0f0eb40df3e202274a66202c137

Signature · 1 line
2.50.1 (Apple Git-155)
#1 lore raw
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 9 lines · On Sun, 20 Sep 2026 11:46:51 +0800 you wrote:

The SLIC driver has a PCI ID table connected to its pci_driver, but does not export it. Its module therefore lacks the PCI aliases used to automatically load it for the supported Alacritech adapters.

Export the existing PCI table without changing device matching.

The issue was found by our static-analysis tool.

[...]

Here is the summary with links:
- [net,v2] net: alacritech: publish the PCI module aliases

    https://git.kernel.org/netdev/net-next/c/4d68b3483721

You are awesome, thank you!

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