You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This leads to some confusion, because depending on kernel configuration, include files might change ordering. We currently fix this by using as casts when we use constants that are affected:
/// Restart policy for timers.#[derive(Copy,Clone,PartialEq,Eq,Debug)]#[repr(u32)]pubenumHrTimerRestart{/// Timer should not be restarted.#[allow(clippy::unnecessary_cast)]NoRestart = bindings::hrtimer_restart_HRTIMER_NORESTART asu32,/// Timer should be restarted.#[allow(clippy::unnecessary_cast)]Restart = bindings::hrtimer_restart_HRTIMER_RESTART asu32,}
Is there anything we can do to prevent this behavior?
The text was updated successfully, but these errors were encountered:
Hi!
We have observed the following behavior when generating bindings for the Linux kernel:
test_a.h
:bindgen test_a.h
:test_b.h
bindgen test_b.h
:The type of
foo
has changed.This leads to some confusion, because depending on kernel configuration, include files might change ordering. We currently fix this by using
as
casts when we use constants that are affected:Is there anything we can do to prevent this behavior?
The text was updated successfully, but these errors were encountered: