Skip to content

Commit 478bc95

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 3abb3f9 commit 478bc95

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
@@ -77,7 +77,7 @@ bindgen_c_flags = $(filter-out $(bindgen_skip_c_flags), $(c_flags)) \
7777
$(bindgen_extra_c_flags)
7878
endif
7979

80-
bindgen_opaque_types := xregs_state desc_struct arch_lbr_state
80+
bindgen_opaque_types := xregs_state desc_struct arch_lbr_state local_apic
8181

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

0 commit comments

Comments
 (0)