xen/pci: address violations of MISRA C:2012 Rule 8.2

Add missing parameter names to address violations of MISRA C:2012
Rule 8.2. Furthermore, use C standard types to comply with XEN coding style.
No functional change.

Signed-off-by: Federico Serafini <federico.serafini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Federico Serafini authored and Jan Beulich committed 2023-12-06 10:24:47 +01:00
1 parent 24b2672695
commit e4c0489ec5
2 files changed
+6 -5

No files matched your search

+4 -4
View File
@@ -104,9 +104,9 @@ static struct pci_seg *alloc_pseg(u16 seg)
}
static int pci_segments_iterate(
int (*handler)(struct pci_seg *, void *), void *arg)
int (*handler)(struct pci_seg *pseg, void *arg), void *arg)
{
u16 seg = 0;
uint16_t seg = 0;
int rc = 0;
do {
@@ -1077,7 +1077,7 @@ int __init scan_pci_devices(void)
struct setup_hwdom {
struct domain *d;
int (*handler)(u8 devfn, struct pci_dev *);
int (*handler)(uint8_t devfn, struct pci_dev *pdev);
};
static void __hwdom_init setup_one_hwdom_device(const struct setup_hwdom *ctxt,
@@ -1157,7 +1157,7 @@ static int __hwdom_init cf_check _setup_hwdom_pci_devices(
}
void __hwdom_init setup_hwdom_pci_devices(
struct domain *d, int (*handler)(u8 devfn, struct pci_dev *))
struct domain *d, int (*handler)(uint8_t devfn, struct pci_dev *pdev))
{
struct setup_hwdom ctxt = { .d = d, .handler = handler };
+2 -1
View File
@@ -178,7 +178,8 @@ enum pdev_type pdev_type(u16 seg, u8 bus, u8 devfn);
int find_upstream_bridge(u16 seg, u8 *bus, u8 *devfn, u8 *secbus);
void setup_hwdom_pci_devices(struct domain *d,
int (*handler)(u8 devfn, struct pci_dev *pdev));
int (*handler)(uint8_t devfn,
struct pci_dev *pdev));
int pci_release_devices(struct domain *d);
void pci_segments_init(void);
int pci_add_segment(u16 seg);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.