vendorcode/cavium: Use unsigned integers in struct bitfields
Bitfields with signed integers are not valid C code. This fixes compilation with clang v16.0.6. Change-Id: I0b2add2f1078a88347fea7dc65d422d0e5a210a1 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80638 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Felix Singer
parent
f426df3f68
commit
e4e29c9e78
@ -113,8 +113,8 @@ typedef union
|
|||||||
uint64_t reserved2 : 32;
|
uint64_t reserved2 : 32;
|
||||||
unsigned speed : 24;
|
unsigned speed : 24;
|
||||||
unsigned lanes : 6;
|
unsigned lanes : 6;
|
||||||
int full_duplex : 1;
|
unsigned full_duplex : 1;
|
||||||
int up : 1;
|
unsigned up : 1;
|
||||||
} s;
|
} s;
|
||||||
} bdk_if_link_t;
|
} bdk_if_link_t;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user