Skip to content

Commit b0bc357

Browse files
committed
kbuild: rust: allow modules to allocate memory
The `allocator_api` feature is needed by drivers that allocate memory. Signed-off-by: Wedson Almeida Filho <[email protected]>
1 parent caf9b29 commit b0bc357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ $(obj)/%.lst: $(src)/%.c FORCE
262262
# Compile Rust sources (.rs)
263263
# ---------------------------------------------------------------------------
264264

265-
rust_allowed_features := new_uninit,return_position_impl_trait_in_trait,offset_of
265+
rust_allowed_features := new_uninit,return_position_impl_trait_in_trait,offset_of,allocator_api
266266

267267
# `--out-dir` is required to avoid temporaries being created by `rustc` in the
268268
# current working directory, which may be not accessible in the out-of-tree

0 commit comments

Comments
 (0)