numa: remove types from typedefs.h

Exactly nobody needs them there.  Place the typedef in the header
that defines the struct.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
master
Paolo Bonzini 2024-05-02 16:54:27 +02:00
parent 667cdad031
commit 6b30674dad
2 changed files with 4 additions and 6 deletions

View File

@ -81,8 +81,6 @@ typedef struct MSIMessage MSIMessage;
typedef struct NetClientState NetClientState;
typedef struct NetFilterState NetFilterState;
typedef struct NICInfo NICInfo;
typedef struct NodeInfo NodeInfo;
typedef struct NumaNodeMem NumaNodeMem;
typedef struct Object Object;
typedef struct ObjectClass ObjectClass;
typedef struct PCIBridge PCIBridge;

View File

@ -36,7 +36,7 @@ enum {
#define UINT16_BITS 16
struct NodeInfo {
typedef struct NodeInfo {
uint64_t node_mem;
struct HostMemoryBackend *node_memdev;
bool present;
@ -45,12 +45,12 @@ struct NodeInfo {
uint8_t lb_info_provided;
uint16_t initiator;
uint8_t distance[MAX_NODES];
};
} NodeInfo;
struct NumaNodeMem {
typedef struct NumaNodeMem {
uint64_t node_mem;
uint64_t node_plugged_mem;
};
} NumaNodeMem;
struct HMAT_LB_Data {
uint8_t initiator;