mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/acpi: Make storage of node id uint32_t to reduce fragility
>From review of generic port introduction. The value is handled as a uint32_t so store it in that type. The value cannot in reality exceed MAX_NODES which is currently 128 but if the types are matched there is no need to rely on that restriction. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Message-Id: <20240916174237.1843213-1-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
a82fe82916
commit
cf2181aef2
3 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ typedef struct AcpiGenericInitiator {
|
|||
|
||||
/* public */
|
||||
char *pci_dev;
|
||||
uint16_t node;
|
||||
uint32_t node;
|
||||
} AcpiGenericInitiator;
|
||||
|
||||
typedef struct AcpiGenericInitiatorClass {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue