Skip to content

Commit caa9a60

Browse files
committed
Force local_apic to be opaque
`local_apic` is a packed type and rustc will complain that it transitively contain a `#[repr(align)]` type. Signed-off-by: Gary Guo <[email protected]>
1 parent 99bec9d commit caa9a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ bindgen_c_flags = $(filter-out $(bindgen_skip_c_flags), $(c_flags)) \
6969
$(bindgen_extra_c_flags)
7070
endif
7171

72-
bindgen_opaque_types := xregs_state desc_struct arch_lbr_state
72+
bindgen_opaque_types := xregs_state desc_struct arch_lbr_state local_apic
7373

7474
# To avoid several recompilations in PowerPC, which inserts `-D_TASK_CPU`
7575
bindgen_c_flags_final = $(filter-out -D_TASK_CPU=%, $(bindgen_c_flags))

0 commit comments

Comments
 (0)