mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-07 11:50:30 +00:00
hv: vpci: 2 MISRA-C violation fixes
36D Prototype and definition name mismatch pci_scan_bus() and sharing_mode_find_vdev() wrong parameter in prototype. 14D Attempt to change parameter passed by value. vmsix_table_rw() uses function parameter as local viarable. Tracked-On: #861 Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -178,6 +178,6 @@ uint32_t pci_pdev_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes);
|
||||
void pci_pdev_write_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint32_t val);
|
||||
void enable_disable_pci_intx(union pci_bdf bdf, bool enable);
|
||||
|
||||
void pci_scan_bus(pci_enumeration_cb cb, void *data);
|
||||
void pci_scan_bus(pci_enumeration_cb cb, void *cb_data);
|
||||
|
||||
#endif /* PCI_H_ */
|
||||
|
Reference in New Issue
Block a user