From patchwork Tue Mar 24 08:48:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11454893 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5E40617D4 for ; Tue, 24 Mar 2020 08:52:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 35E19208C3 for ; Tue, 24 Mar 2020 08:52:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585039924; bh=m+am+kmwiawifnUnuxkCkvSvL5zjZ1qL8TV5YJi4c8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=koda565PpO7USwAQx/UNiy3+ogVuPwxAKwn5USiX9HNme5By3AlOpU9uUhvJJ0Gfy DDJ+XFYJVD0vVPgxhr18IqVHsmpis9fbfmrhO+G1SUnTVnCcPeRcrbv8M82IJMWJh8 heajpKeFp79dxL5MVOcf6W/PS2GGKAl7V06mqYnI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727272AbgCXIvJ (ORCPT ); Tue, 24 Mar 2020 04:51:09 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:17161 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727241AbgCXIvI (ORCPT ); Tue, 24 Mar 2020 04:51:08 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id 02O8mgsZ011219; Tue, 24 Mar 2020 17:48:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com 02O8mgsZ011219 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1585039726; bh=FqNgRiTBfIYxlDlBeZgqdHunw+p1cDDhJa4wa3yG6eU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dqipl7rHpgfewAF8qKP3Fx2de752MeQHBSlVcQf8AsK4S8FpDU3wZfcFuTlfByEqf NjdRNvKg3Z8xkl2s60Q8konSwKXakg007f59kSEfIVNrmW2+gSnO5h9L4iEQNaO3yN 0C0lkCcavEgwL0Kff4oaDUOqdLN4+m0orKooREUi1IUWKY6H2/wP9UGmCkIPEUturd ybuKXOrfa/y04z9D946j0BkioO2+BV63wx7mJpPZp1wCLdo1BZP4Rpxo9/RsHJxDzK kYUwQ9JCZABcYPbvTl++NZxBU17Et0hgPRYnCR1DPN/9OEZQrWZfXZ7GCvMthpB9h2 0uXS583Fngn6Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kernel@vger.kernel.org Cc: "David S . Miller" , Linus Torvalds , Kees Cook , clang-built-linux@googlegroups.com, Herbert Xu , linux-crypto@vger.kernel.org, Ingo Molnar , Thomas Gleixner , Borislav Petkov , Peter Zijlstra , "H . Peter Anvin" , x86@kernel.org, linux-kbuild@vger.kernel.org, Masahiro Yamada Subject: [PATCH 02/16] x86: remove unneeded defined(__ASSEMBLY__) check from asm/dwarf2.h Date: Tue, 24 Mar 2020 17:48:07 +0900 Message-Id: <20200324084821.29944-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200324084821.29944-1-masahiroy@kernel.org> References: <20200324084821.29944-1-masahiroy@kernel.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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 Acked-by: Jason A. Donenfeld Reviewed-by: Nick Desaulniers --- arch/x86/include/asm/dwarf2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/dwarf2.h b/arch/x86/include/asm/dwarf2.h index ae391f609840..5a0502212bc5 100644 --- a/arch/x86/include/asm/dwarf2.h +++ b/arch/x86/include/asm/dwarf2.h @@ -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.