Skip to content

Commit

Permalink
Kernel/USB: Make USBHubDescriptor::hub_characteristics union packed
Browse files Browse the repository at this point in the history
AArch64 Clang otherwise complains that this anonymous union is more
aligned than the struct.
  • Loading branch information
spholz authored and nico committed Jul 30, 2024
1 parent b526e3c commit 26555ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/Bus/USB/USBDescriptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static_assert(AssertSize<USBSuperSpeedEndpointCompanionDescriptor, 6>());
struct [[gnu::packed]] USBHubDescriptor {
USBDescriptorCommon descriptor_header;
u8 number_of_downstream_ports;
union {
union [[gnu::packed]] {
u16 raw;
struct {
u16 logical_power_switching_mode : 2;
Expand Down

0 comments on commit 26555ba

Please sign in to comment.