[PATCH net v2] net: alacritech: publish the PCI module aliases
From: Pengpeng Hou
Date: Sat Sep 19 2026 - 23:49:07 EST
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")
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>
Reviewed-by: Lino Sanfilippo <LinoSanfilippo@xxxxxx>
Assisted-by: gpt 5
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
Changes since v1:
https://lore.kernel.org/all/20260704152053.49780-1-pengpeng@xxxxxxxxxxx/
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(+)
diff --git a/drivers/net/ethernet/alacritech/slicoss.c b/drivers/net/ethernet/alacritech/slicoss.c
index c1949ca060ca..14b74c09233e 100644
--- a/drivers/net/ethernet/alacritech/slicoss.c
+++ b/drivers/net/ethernet/alacritech/slicoss.c
@@ -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
--
2.50.1 (Apple Git-155)