Skip to content

Commit 6ac3893

Browse files
author
Ingo Molnar
committed
Revert "kbuild/Makefile: Prepare for using macros in inline assembly code to work around asm() related GCC inlining bugs"
This reverts commit 77b0bf5. See this commit for details about the revert: e769742 ("Revert "x86/jump-labels: Macrofy inline assembly code to work around GCC inlining bugs"") Conflicts: arch/x86/Makefile Reported-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Borislav Petkov <bp@alien8.de> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Cc: Juergen Gross <jgross@suse.com> Cc: Richard Biener <rguenther@suse.de> Cc: Kees Cook <keescook@chromium.org> Cc: Segher Boessenkool <segher@kernel.crashing.org> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Nadav Amit <namit@vmware.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 96af6cd commit 6ac3893

File tree

5 files changed

+3
-26
lines changed

5 files changed

+3
-26
lines changed

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ scripts: scripts_basic scripts_dtc asm-generic gcc-plugins $(autoksyms_h)
10811081
# version.h and scripts_basic is processed / created.
10821082

10831083
# Listed in dependency order
1084-
PHONY += prepare archprepare macroprepare prepare0 prepare1 prepare2 prepare3
1084+
PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3
10851085

10861086
# prepare3 is used to check if we are building in a separate output directory,
10871087
# and if so do:
@@ -1104,9 +1104,7 @@ prepare2: prepare3 outputmakefile asm-generic
11041104
prepare1: prepare2 $(version_h) $(autoksyms_h) include/generated/utsrelease.h
11051105
$(cmd_crmodverdir)
11061106

1107-
macroprepare: prepare1 archmacros
1108-
1109-
archprepare: archheaders archscripts macroprepare scripts_basic
1107+
archprepare: archheaders archscripts prepare1 scripts_basic
11101108

11111109
prepare0: archprepare gcc-plugins
11121110
$(Q)$(MAKE) $(build)=.
@@ -1174,9 +1172,6 @@ archheaders:
11741172
PHONY += archscripts
11751173
archscripts:
11761174

1177-
PHONY += archmacros
1178-
archmacros:
1179-
11801175
PHONY += __headers
11811176
__headers: $(version_h) scripts_basic uapi-asm-generic archheaders archscripts
11821177
$(Q)$(MAKE) $(build)=scripts build_unifdef

arch/x86/Makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,6 @@ archscripts: scripts_basic
232232
archheaders:
233233
$(Q)$(MAKE) $(build)=arch/x86/entry/syscalls all
234234

235-
archmacros:
236-
$(Q)$(MAKE) $(build)=arch/x86/kernel arch/x86/kernel/macros.s
237-
238-
ASM_MACRO_FLAGS = -Wa,arch/x86/kernel/macros.s
239-
export ASM_MACRO_FLAGS
240-
KBUILD_CFLAGS += $(ASM_MACRO_FLAGS)
241-
242235
###
243236
# Kernel objects
244237

arch/x86/kernel/macros.S

Lines changed: 0 additions & 7 deletions
This file was deleted.

scripts/Kbuild.include

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ __cc-option = $(call try-run,\
115115

116116
# Do not attempt to build with gcc plugins during cc-option tests.
117117
# (And this uses delayed resolution so the flags will be up to date.)
118-
# In addition, do not include the asm macros which are built later.
119-
CC_OPTION_FILTERED = $(GCC_PLUGINS_CFLAGS) $(ASM_MACRO_FLAGS)
120-
CC_OPTION_CFLAGS = $(filter-out $(CC_OPTION_FILTERED),$(KBUILD_CFLAGS))
118+
CC_OPTION_CFLAGS = $(filter-out $(GCC_PLUGINS_CFLAGS),$(KBUILD_CFLAGS))
121119

122120
# cc-option
123121
# Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)

scripts/mod/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ OBJECT_FILES_NON_STANDARD := y
44
hostprogs-y := modpost mk_elfconfig
55
always := $(hostprogs-y) empty.o
66

7-
CFLAGS_REMOVE_empty.o := $(ASM_MACRO_FLAGS)
8-
97
modpost-objs := modpost.o file2alias.o sumversion.o
108

119
devicetable-offsets-file := devicetable-offsets.h

0 commit comments

Comments
 (0)