Skip to content

Commit 736e9af

Browse files
authored
Merge pull request torvalds#642 from ojeda/bjorn3
@bjorn3 review
2 parents a2a2e10 + a7b3ee5 commit 736e9af

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/Kconfig.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2703,7 +2703,7 @@ config RUST_OPT_LEVEL_SIMILAR_AS_CHOSEN_FOR_C
27032703

27042704
-O2 is currently mapped to -Copt-level=2
27052705
-O3 is currently mapped to -Copt-level=3
2706-
-Os is currently mapped to -Copt-level=z
2706+
-Os is currently mapped to -Copt-level=s
27072707

27082708
The mapping may change over time to follow the intended semantics
27092709
of the choice for C as sensibly as possible.

rust/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,9 @@ $(objtree)/rust/build_error.o: $(srctree)/rust/build_error.rs \
329329
$(objtree)/rust/compiler_builtins.o FORCE
330330
$(call if_changed_dep,rustc_library)
331331

332-
# ICE on `--extern macros`: https://github.com/rust-lang/rust/issues/56935
333332
$(objtree)/rust/kernel.o: private rustc_target_flags = --extern alloc \
334333
--extern build_error \
335-
--extern macros=$(objtree)/rust/libmacros.so
334+
--extern macros
336335
$(objtree)/rust/kernel.o: $(srctree)/rust/kernel/lib.rs $(objtree)/rust/alloc.o \
337336
$(objtree)/rust/build_error.o \
338337
$(objtree)/rust/libmacros.so $(objtree)/rust/bindings_generated.rs \

rust/compiler_builtins.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! by providing this file.
88
//!
99
//! At the moment, some builtins are required that should not be. For instance,
10-
//! [`core`] has floating-point functionality which we should not be compiling
10+
//! [`core`] has 128-bit integers functionality which we should not be compiling
1111
//! in. We will work with upstream [`core`] to provide feature flags to disable
1212
//! the parts we do not need. For the moment, we define them to [`panic!`] at
1313
//! runtime for simplicity to catch mistakes, instead of performing surgery

0 commit comments

Comments
 (0)