pci: fix spdk_pci_device_get_dev() accessor
spdk_pci_device_get_dev() needs to access the 'dev' member of a struct pci_device, but the pointer to the struct is also called 'dev' in the macro argument list. Change it to something else so the 'dev' member doesn't get replaced by the macro argument. This is the minimal bug fix; more cleanup will happen later as the PCI interface is refactored. Change-Id: I37b4a303f980d40c5b1528293ecfd22ad0be9dc7 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
8a7aabeae3
commit
26b1964c8f
@ -36,7 +36,7 @@
|
||||
|
||||
#define spdk_pci_device_get_domain(dev) (dev->domain)
|
||||
#define spdk_pci_device_get_bus(dev) (dev->bus)
|
||||
#define spdk_pci_device_get_dev(dev) (dev->dev)
|
||||
#define spdk_pci_device_get_dev(pdev) (pdev->dev)
|
||||
#define spdk_pci_device_get_func(dev) (dev->func)
|
||||
#define spdk_pci_device_get_vendor_id(dev) (dev->vendor_id)
|
||||
#define spdk_pci_device_get_device_id(dev) (dev->device_id)
|
||||
|
Loading…
Reference in New Issue
Block a user