summaryrefslogtreecommitdiff
path: root/src/vendorcode/cavium
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-02-20 12:37:50 +0100
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-03-21 11:23:24 +0000
commite4e29c9e78079d6b8d3911b2059f5ae947bee605 (patch)
tree8db78808353211fa6745baee9be077e2baae63c3 /src/vendorcode/cavium
parentf426df3f6827908f02d3d3a72463a4ab2776c6c4 (diff)
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>
Diffstat (limited to 'src/vendorcode/cavium')
-rw-r--r--src/vendorcode/cavium/include/bdk/libbdk-hal/if/bdk-if.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vendorcode/cavium/include/bdk/libbdk-hal/if/bdk-if.h b/src/vendorcode/cavium/include/bdk/libbdk-hal/if/bdk-if.h
index b77aa2a393..499a6a42fa 100644
--- a/src/vendorcode/cavium/include/bdk/libbdk-hal/if/bdk-if.h
+++ b/src/vendorcode/cavium/include/bdk/libbdk-hal/if/bdk-if.h
@@ -113,8 +113,8 @@ typedef union
uint64_t reserved2 : 32;
unsigned speed : 24;
unsigned lanes : 6;
- int full_duplex : 1;
- int up : 1;
+ unsigned full_duplex : 1;
+ unsigned up : 1;
} s;
} bdk_if_link_t;