diff options
author | Ingo Molnar <mingo@kernel.org> | 2018-12-19 05:20:50 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-12-19 06:00:00 -0500 |
commit | ffb61c6346d0f02b2a03377a3edac838c1f09b45 (patch) | |
tree | 4e01ec22fac771cf00f8e98b2cfee65f65934b77 /include/asm-generic/bug.h | |
parent | a4da3d86a285f0035a21bae776846c5077a535df (diff) |
Revert "x86/bug: Macrofy the BUG table section handling, to work around GCC inlining bugs"
This reverts commit f81f8ad56fd1c7b99b2ed1c314527f7d9ac447c6.
See this commit for details about the revert:
e769742d3584 ("Revert "x86/jump-labels: Macrofy inline assembly code to work around GCC inlining bugs"")
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>
Diffstat (limited to 'include/asm-generic/bug.h')
-rw-r--r-- | include/asm-generic/bug.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index cdafa5edea49..20561a60db9c 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h | |||
@@ -17,8 +17,10 @@ | |||
17 | #ifndef __ASSEMBLY__ | 17 | #ifndef __ASSEMBLY__ |
18 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
19 | 19 | ||
20 | struct bug_entry { | 20 | #ifdef CONFIG_BUG |
21 | |||
21 | #ifdef CONFIG_GENERIC_BUG | 22 | #ifdef CONFIG_GENERIC_BUG |
23 | struct bug_entry { | ||
22 | #ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS | 24 | #ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS |
23 | unsigned long bug_addr; | 25 | unsigned long bug_addr; |
24 | #else | 26 | #else |
@@ -33,10 +35,8 @@ struct bug_entry { | |||
33 | unsigned short line; | 35 | unsigned short line; |
34 | #endif | 36 | #endif |
35 | unsigned short flags; | 37 | unsigned short flags; |
36 | #endif /* CONFIG_GENERIC_BUG */ | ||
37 | }; | 38 | }; |
38 | 39 | #endif /* CONFIG_GENERIC_BUG */ | |
39 | #ifdef CONFIG_BUG | ||
40 | 40 | ||
41 | /* | 41 | /* |
42 | * Don't use BUG() or BUG_ON() unless there's really no way out; one | 42 | * Don't use BUG() or BUG_ON() unless there's really no way out; one |