Skip to content

Commit

Permalink
x86: remove unneeded defined(__ASSEMBLY__) check from asm/dwarf2.h
Browse files Browse the repository at this point in the history
This header file has the following check at the top:

  #ifndef __ASSEMBLY__
  #warning "asm/dwarf2.h should be only included in pure assembly files"
  #endif

So, we expect defined(__ASSEMBLY__) is always true.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Masahiro Yamada committed Apr 8, 2020
1 parent 06bd48b commit 418d6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/dwarf2.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define CFI_SIGNAL_FRAME
#endif

#if defined(CONFIG_AS_CFI_SECTIONS) && defined(__ASSEMBLY__)
#if defined(CONFIG_AS_CFI_SECTIONS)
#ifndef BUILD_VDSO
/*
* Emit CFI data in .debug_frame sections, not .eh_frame sections.
Expand Down

0 comments on commit 418d6e2

Please sign in to comment.