include/hw/pci: Clean up a few things checkpatch.pl would flag
Fix a few style violations so that checkpatch.pl won't complain when I move this code. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20221222100330.380143-5-armbru@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
2ef0f219b5
commit
4a96b8cf49
|
@ -284,8 +284,10 @@ struct PCIDevice {
|
||||||
/* PCI config space */
|
/* PCI config space */
|
||||||
uint8_t *config;
|
uint8_t *config;
|
||||||
|
|
||||||
/* Used to enable config checks on load. Note that writable bits are
|
/*
|
||||||
* never checked even if set in cmask. */
|
* Used to enable config checks on load. Note that writable bits are
|
||||||
|
* never checked even if set in cmask.
|
||||||
|
*/
|
||||||
uint8_t *cmask;
|
uint8_t *cmask;
|
||||||
|
|
||||||
/* Used to implement R/W bytes */
|
/* Used to implement R/W bytes */
|
||||||
|
@ -299,10 +301,11 @@ struct PCIDevice {
|
||||||
|
|
||||||
/* the following fields are read only */
|
/* the following fields are read only */
|
||||||
int32_t devfn;
|
int32_t devfn;
|
||||||
/* Cached device to fetch requester ID from, to avoid the PCI
|
/*
|
||||||
* tree walking every time we invoke PCI request (e.g.,
|
* Cached device to fetch requester ID from, to avoid the PCI tree
|
||||||
* MSI). For conventional PCI root complex, this field is
|
* walking every time we invoke PCI request (e.g., MSI). For
|
||||||
* meaningless. */
|
* conventional PCI root complex, this field is meaningless.
|
||||||
|
*/
|
||||||
PCIReqIDCache requester_id_cache;
|
PCIReqIDCache requester_id_cache;
|
||||||
char name[64];
|
char name[64];
|
||||||
PCIIORegion io_regions[PCI_NUM_REGIONS];
|
PCIIORegion io_regions[PCI_NUM_REGIONS];
|
||||||
|
@ -943,7 +946,7 @@ extern const VMStateDescription vmstate_pci_device;
|
||||||
.name = (stringify(_field)), \
|
.name = (stringify(_field)), \
|
||||||
.size = sizeof(PCIDevice), \
|
.size = sizeof(PCIDevice), \
|
||||||
.vmsd = &vmstate_pci_device, \
|
.vmsd = &vmstate_pci_device, \
|
||||||
.flags = VMS_STRUCT|VMS_POINTER, \
|
.flags = VMS_STRUCT | VMS_POINTER, \
|
||||||
.offset = vmstate_offset_pointer(_state, _field, PCIDevice), \
|
.offset = vmstate_offset_pointer(_state, _field, PCIDevice), \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue