Skip to content

Commit 5b026e3

Browse files
metaspaceaxboe
authored andcommitted
rust: block: fix generated bindings after refactoring of features
Block device features and flags were refactored from `enum` to `#define`. This broke Rust binding generation. This patch fixes the binding generation. Fixes: fcf865e ("block: convert features and flags to __bitwise types") Signed-off-by: Andreas Hindborg <[email protected]> Acked-by: Miguel Ojeda <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent caffa7c commit 5b026e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/bindings/bindings_helper.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <kunit/test.h>
1010
#include <linux/blk_types.h>
1111
#include <linux/blk-mq.h>
12+
#include <linux/blkdev.h>
1213
#include <linux/errname.h>
1314
#include <linux/ethtool.h>
1415
#include <linux/jiffies.h>
@@ -28,3 +29,4 @@ const gfp_t RUST_CONST_HELPER_GFP_KERNEL = GFP_KERNEL;
2829
const gfp_t RUST_CONST_HELPER_GFP_KERNEL_ACCOUNT = GFP_KERNEL_ACCOUNT;
2930
const gfp_t RUST_CONST_HELPER_GFP_NOWAIT = GFP_NOWAIT;
3031
const gfp_t RUST_CONST_HELPER___GFP_ZERO = __GFP_ZERO;
32+
const blk_features_t RUST_CONST_HELPER_BLK_FEAT_ROTATIONAL = BLK_FEAT_ROTATIONAL;

0 commit comments

Comments
 (0)