net: alacritech: publish the PCI module aliases
Subsystems (3)
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.
---
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
@@ -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)
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