[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0e8f4d9c-e3ef-49bd-ae8b-bbc5897d9e90@loongson.cn>
Date: Mon, 15 Apr 2024 10:21:39 +0800
From: Yanteng Si <siyanteng@...ngson.cn>
To: Jakub Kicinski <kuba@...nel.org>
Cc: andrew@...n.ch, hkallweit1@...il.com, peppe.cavallaro@...com,
alexandre.torgue@...s.st.com, joabreu@...opsys.com, fancer.lancer@...il.com,
Jose.Abreu@...opsys.com, chenhuacai@...nel.org, linux@...linux.org.uk,
guyinggang@...ngson.cn, netdev@...r.kernel.org, chris.chenfeiyang@...il.com,
siyanteng01@...il.com
Subject: Re: [PATCH net-next v11 3/6] net: stmmac: dwmac-loongson: Use
PCI_DEVICE_DATA() macro for device identification
>> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c
>> index 9e40c28d453a..995c9bd144e0 100644
>> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c
>> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c
>> @@ -213,7 +213,7 @@ static SIMPLE_DEV_PM_OPS(loongson_dwmac_pm_ops, loongson_dwmac_suspend,
>> loongson_dwmac_resume);
>>
>> static const struct pci_device_id loongson_dwmac_id_table[] = {
>> - { PCI_VDEVICE(LOONGSON, 0x7a03) },
>> + { PCI_DEVICE_DATA(LOONGSON, GMAC, &loongson_gmac_pci_info) },
>> {}
>> };
>> MODULE_DEVICE_TABLE(pci, loongson_dwmac_id_table);
> In file included from ../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:6:
> ../include/linux/pci.h:1061:51: error: ‘PCI_DEVICE_ID_LOONGSON_GMAC’ undeclared here (not in a function); did you mean ‘PCI_DEVICE_ID_LOONGSON_HDA’?
> 1061 | .vendor = PCI_VENDOR_ID_##vend, .device = PCI_DEVICE_ID_##vend##_##dev, \
> | ^~~~~~~~~~~~~~
> ../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:216:11: note: in expansion of macro ‘PCI_DEVICE_DATA’
> 216 | { PCI_DEVICE_DATA(LOONGSON, GMAC, &loongson_gmac_pci_info) },
> | ^~~~~~~~~~~~~~~
> ../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:216:44: error: ‘loongson_gmac_pci_info’ undeclared here (not in a function)
> 216 | { PCI_DEVICE_DATA(LOONGSON, GMAC, &loongson_gmac_pci_info) },
> | ^~~~~~~~~~~~~~~~~~~~~~
> ../include/linux/pci.h:1063:41: note: in definition of macro ‘PCI_DEVICE_DATA’
> 1063 | .driver_data = (kernel_ulong_t)(data)
> | ^~~~
Will be fixed in v12.
Thanks,
Yanteng
Powered by blists - more mailing lists