Add virtio headers if CONFIG_VIRTIO is enabled. Signed-off-by: Manos Pitsidianakis <[email protected]> --- rust/bindings/bindings_helper.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h index 083cc44aa952c2b29ab82d5d481063a1cf48bccf..1cbe1a4b5647fd646c1be3c5c80fb24ae7b97a4a 100644 --- a/rust/bindings/bindings_helper.h +++ b/rust/bindings/bindings_helper.h @@ -151,3 +151,8 @@ const vm_flags_t RUST_CONST_HELPER_VM_NOHUGEPAGE = VM_NOHUGEPAGE; #include "../../drivers/android/binder/rust_binder_events.h" #include "../../drivers/android/binder/page_range_helper.h" #endif + +#if IS_ENABLED(CONFIG_VIRTIO) +#include <linux/virtio_config.h> +#include <uapi/linux/virtio_ids.h> +#endif /* IS_ENABLED(CONFIG_VIRTIO) */ -- 2.47.3

