kinfocenter: compiler warnings fixes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-05-27 21:26:03 +03:00
parent f320719e3b
commit 2c964435bf

View file

@ -64,8 +64,8 @@ union pciInfo {
unsigned comFastBack:1;
unsigned comInterrupt:1;
unsigned comUnk:5;
} command_bits Q_PACKED;
} command Q_PACKED;
} command_bits;
} command;
union {
unsigned short status;
struct {
@ -82,8 +82,8 @@ union pciInfo {
unsigned statRecMasterAbort:1;
unsigned statSigSystemError:1;
unsigned statDetectedParity:1;
} status_bits Q_PACKED;
} status Q_PACKED;
} status_bits;
} status;
unsigned char revision;
union {
unsigned char devProgIface;
@ -94,8 +94,8 @@ union pciInfo {
unsigned progSecProgInd:1;
unsigned progUnk:3;
unsigned progIdeMaster:1;
} devProgIface_bits Q_PACKED;
} devProgIface Q_PACKED;
} devProgIface_bits;
} devProgIface;
unsigned char devSubClass;
unsigned char devClass;
unsigned char cacheLineSize;
@ -105,8 +105,8 @@ union pciInfo {
struct {
unsigned headerType:7;
unsigned multifunctional:1;
} headerType_bits Q_PACKED;
} headerType Q_PACKED;
} headerType_bits;
} headerType;
union {
unsigned char bist;
struct {
@ -114,8 +114,8 @@ union pciInfo {
unsigned bistUnk:2;
unsigned bistStart:1;
unsigned bistCapable:1;
} bist_bits Q_PACKED;
} bist Q_PACKED;
} bist_bits;
} bist;
union {
struct { //header0
union {
@ -125,7 +125,7 @@ union pciInfo {
unsigned baseAddressType:2;
unsigned baseAddressPref:1;
unsigned baseAddressAddr:28;
} baseAddress_bits Q_PACKED;
} baseAddress_bits;
} Q_PACKED mapping[6];
unsigned cardbusCis;
unsigned short subVendor;
@ -136,15 +136,15 @@ union pciInfo {
unsigned romEnabled:1;
unsigned romUnk:10;
unsigned romAddr:21;
} romAddress_bits Q_PACKED;
} romAddress Q_PACKED;
} romAddress_bits;
} romAddress;
unsigned char capabilityList;
unsigned char reserved1[7];
unsigned char interruptLine;
unsigned char interruptPin;
unsigned char minGnt;
unsigned char maxLat;
} header0 Q_PACKED;
} header0;
struct { //header1
unsigned baseAddress0_2;
unsigned baseAddress1_2;
@ -158,8 +158,8 @@ union pciInfo {
unsigned ioBaseType:1;
unsigned ioBaseUnk:3;
unsigned ioBaseAddr:4;
} ioBase_bits Q_PACKED;
} ioBase Q_PACKED;
} ioBase_bits;
} ioBase;
unsigned char ioLimit;
union {
unsigned short secStatus;
@ -177,16 +177,16 @@ union pciInfo {
unsigned secStatRecMasterAbort:1;
unsigned secStatSigSystemError:1;
unsigned secStatDetectedParity:1;
} secStatus_bits Q_PACKED;
} secStatus Q_PACKED;
} secStatus_bits;
} secStatus;
union {
unsigned short memoryBase;
struct {
unsigned memoryType:1;
unsigned memoryUnk:3;
unsigned memoryAddr:4;
} memoryBase_bits Q_PACKED;
} memoryBase Q_PACKED;
} memoryBase_bits;
} memoryBase;
unsigned short memoryLimit;
union {
unsigned short prefMemoryBase;
@ -194,8 +194,8 @@ union pciInfo {
unsigned prefMemoryType:1;
unsigned prefMemoryUnk:3;
unsigned prefMemoryAddr:4;
} prefMemoryBase_bits Q_PACKED;
} prefMemoryBase Q_PACKED;
} prefMemoryBase_bits;
} prefMemoryBase;
unsigned short prefMemoryLimit;
unsigned prefBaseUpper32;
unsigned prefLimitUpper32;
@ -222,9 +222,9 @@ union pciInfo {
unsigned bridgeControlDisTimStat:1;
unsigned bridgeControlDisTimeSerr:1;
unsigned bridgeControlUnk2:4;
} bridgeControl_bits Q_PACKED;
} bridgeControl Q_PACKED;
} header1 Q_PACKED;
} bridgeControl_bits;
} bridgeControl;
} header1;
struct{ //header2
unsigned baseAddress0_3;
union {
@ -243,8 +243,8 @@ union pciInfo {
unsigned cbSecStatRecMasterAbort:1;
unsigned cbSecStatSigSystemError:1;
unsigned cbSecStatDetectedParity:1;
} cbSecStatus_bits Q_PACKED;
} cbSecStatus Q_PACKED;
} cbSecStatus_bits;
} cbSecStatus;
unsigned char cbPrimaryBus;
unsigned char cbCardBus;
unsigned char cbSubordinateBus;
@ -260,8 +260,8 @@ union pciInfo {
unsigned cbIoBaseType:1;
unsigned coIoBaseUnk:1;
unsigned cbIoBaseAddr:30;
} cbIoBase_bits Q_PACKED;
} cbIoBase Q_PACKED;
} cbIoBase_bits;
} cbIoBase;
unsigned cbIoLimit;
} Q_PACKED cbIo[2];
unsigned char interruptLine_3;
@ -281,15 +281,15 @@ union pciInfo {
unsigned cbControlPref1:1;
unsigned cbControlPostWrites:1;
unsigned cbControlUnk2:5;
} cbControl_bits Q_PACKED;
} cbControl Q_PACKED;
} cbControl_bits;
} cbControl;
unsigned short cbSubVendor;
unsigned short cbSubDevice;
unsigned short cbLegacyModeBase;
} header2 Q_PACKED;
} header Q_PACKED;
} cooked Q_PACKED;
} Q_PACKED;
} header2;
} header;
} cooked;
};
union agpInfo{
unsigned char raw[10];
@ -298,13 +298,13 @@ union agpInfo{
unsigned revMinor:4;
unsigned revMaior:4;
unsigned char unk;
} revision Q_PACKED;
} revision;
union {
unsigned status;
struct {
unsigned statusEnhRate:4;
unsigned statusUnk:28;
} status_bits0 Q_PACKED;
} status_bits0;
struct {
unsigned statusRate:3;
unsigned statusMode:1;
@ -320,14 +320,14 @@ union agpInfo{
unsigned statusIsochSupp:1;
unsigned statusUnk2:6;
unsigned statusReq:8;
} status_bits1 Q_PACKED;
} status Q_PACKED;
} status_bits1;
} status;
union {
unsigned config;
struct {
unsigned configEnhRate:4;
unsigned configUnk:28;
} config_bits0 Q_PACKED;
} config_bits0;
struct {
unsigned configRate:3;
unsigned configUnk1:1;
@ -341,10 +341,10 @@ union agpInfo{
unsigned configOptReqSize:3;
unsigned configUnk3:8;
unsigned configReq:8;
} config_bits1 Q_PACKED;
} config Q_PACKED;
} cooked Q_PACKED;
} Q_PACKED;
} config_bits1;
} config;
} cooked;
};
union pmInfo {
unsigned char raw[6];
@ -364,8 +364,8 @@ union pmInfo {
unsigned capsPmeD2:1;
unsigned capsPmeD3hot:1;
unsigned capsPmeD3cold:1;
} caps_bits Q_PACKED;
} caps Q_PACKED;
} caps_bits;
} caps;
union {
unsigned short status;
struct {
@ -375,19 +375,19 @@ union pmInfo {
unsigned statDataSelect:4;
unsigned statDataScale:2;
unsigned statPmeStat:1;
} status_bits Q_PACKED;
} status Q_PACKED;
} status_bits;
} status;
union {
unsigned char statusBridge;
struct {
unsigned statBridgeUnk:6;
unsigned statBridgeBx:1;
unsigned statBridgeClock:1;
} statusBridge_bits Q_PACKED;
} statusBridge Q_PACKED;
} statusBridge_bits;
} statusBridge;
unsigned char data;
} cooked Q_PACKED;
} Q_PACKED;
} cooked;
};
union vpdInfo {
unsigned char raw[6];
@ -395,8 +395,8 @@ union vpdInfo {
unsigned vpdAddress:15;
unsigned vpdTransfer:1;
unsigned vpdData;
} cooked Q_PACKED;
} Q_PACKED;
} cooked ;
};
union msiInfo {
unsigned char raw[22];
@ -410,8 +410,8 @@ union msiInfo {
unsigned msi64bit:1;
unsigned msiPerVector:1;
unsigned msiUnk0:7;
} msiControl_bits Q_PACKED;
} msiControl Q_PACKED;
} msiControl_bits;
} msiControl;
unsigned msiAddress;
union {
struct {
@ -420,16 +420,16 @@ union msiInfo {
unsigned short msiUnk64;
unsigned msiMask64;
unsigned msiPending64;
} address Q_PACKED;
} address;
struct {
unsigned short msiData;
unsigned short msiUnk;
unsigned msiMask;
unsigned msiPending;
} data Q_PACKED;
} payload Q_PACKED;
} cooked Q_PACKED;
} Q_PACKED;
} data;
} payload;
} cooked;
};
//In following arrays -1 mean default value