From patchwork Mon Mar 23 02:08:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11452191 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 13CE81731 for ; Mon, 23 Mar 2020 02:17:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E68C620769 for ; Mon, 23 Mar 2020 02:17:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584929877; bh=pr6AtLlgKDBZy78fBf/+KjGfG2Q9GXU5Ja4T5hoPs2s=; h=From:To:Cc:Subject:Date:List-ID:From; b=SFkWSuBkSz+u41TDKqCdiS+gyrbwszXxHxItZVuNryxnmFcyxgIX2GsX2Rnl+dkV/ w/voXq7DtT8byEsbC7xOUhVQhKA9D/J7CxVh6ZLkGLMkV+dGvZxSboVI8ptRG755FV yJZQhZecXQY5WGO+KfuUXUzEatUYg+JaeT26m9fM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726954AbgCWCR4 (ORCPT ); Sun, 22 Mar 2020 22:17:56 -0400 Received: from condef-07.nifty.com ([202.248.20.72]:26249 "EHLO condef-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726946AbgCWCR4 (ORCPT ); Sun, 22 Mar 2020 22:17:56 -0400 Received: from conuserg-11.nifty.com ([10.126.8.74])by condef-07.nifty.com with ESMTP id 02N2BSGd023375 for ; Mon, 23 Mar 2020 11:11:28 +0900 Received: from grover.flets-west.jp (softbank126093102113.bbtec.net [126.93.102.113]) (authenticated) by conuserg-11.nifty.com with ESMTP id 02N28urR002941; Mon, 23 Mar 2020 11:08:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com 02N28urR002941 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1584929338; bh=H8Ul8qvy3/NjGlVWM0US24XZqkIoV6sumKhoWd9ALvU=; h=From:To:Cc:Subject:Date:From; b=QK1JkiQHss7CKQmUCCDhEmKxIkM/NXpU3k4+HCFbMgGvduOYvmPs6LbrIWByUf67v mx8GHDFFWY6SV3/V0w2iVjIt/bmAad+rV0jjTvwer1CrexVtZ9zdP9Ud2h4xA9oWQu cQFv7eJRpaXgjKIeYE2RTgBf+gFdImlDKE0Tl4GGQVAKOyTb+ysh6OCFOHb+79geL3 8mDRTUAzmuxa+PHF6ebp5z5K3v/2b3DrdhsJWXFfKOL0YXlwUJil+T4L82LMtY1+us bE92TKWNjwHCk69ME3cR8bkjRL70rb/AI5/9m7dxsrdxYWqfHJ7hf2fU74OJBYfS13 r44+C0s9neTUg== X-Nifty-SrcIP: [126.93.102.113] From: Masahiro Yamada To: x86@kernel.org, Ingo Molnar , Thomas Gleixner , Borislav Petkov , "H . Peter Anvin" Cc: linux-kernel@vger.kernel.org, "Jason A . Donenfeld" , Masahiro Yamada , Allison Randal , Armijn Hemel , "David S. Miller" , Greg Kroah-Hartman , Herbert Xu , Ingo Molnar , Kate Stewart , Song Liu , Zhengyuan Liu , clang-built-linux@googlegroups.com, linux-crypto@vger.kernel.org Subject: [PATCH 0/7] x86: remove always-defined CONFIG_AS_* options Date: Mon, 23 Mar 2020 11:08:37 +0900 Message-Id: <20200323020844.17064-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org arch/x86/Makefile tests instruction code by $(call as-instr, ...) Some of them are very old. For example, the check for CONFIG_AS_CFI dates back to 2006. We raise GCC versions from time to time, and we clean old code away. The same policy applied to binutils. The current minimal supported version of binutils is 2.21 This is new enough to recognize the instruction in most of as-instr calls. Masahiro Yamada (7): x86: remove unneeded defined(__ASSEMBLY__) check from asm/dwarf2.h x86: remove always-defined CONFIG_AS_CFI x86: remove always-defined CONFIG_AS_CFI_SIGNAL_FRAME x86: remove always-defined CONFIG_AS_CFI_SECTIONS x86: remove always-defined CONFIG_AS_SSSE3 x86: remove always-defined CONFIG_AS_AVX x86: add comments about the binutils version to support code in as-instr arch/x86/Makefile | 21 +++------ arch/x86/crypto/Makefile | 32 ++++++-------- arch/x86/crypto/aesni-intel_avx-x86_64.S | 3 -- arch/x86/crypto/aesni-intel_glue.c | 14 +----- arch/x86/crypto/blake2s-core.S | 2 - arch/x86/crypto/poly1305-x86_64-cryptogams.pl | 8 ---- arch/x86/crypto/poly1305_glue.c | 6 +-- arch/x86/crypto/sha1_ssse3_asm.S | 4 -- arch/x86/crypto/sha1_ssse3_glue.c | 9 +--- arch/x86/crypto/sha256-avx-asm.S | 3 -- arch/x86/crypto/sha256_ssse3_glue.c | 8 +--- arch/x86/crypto/sha512-avx-asm.S | 2 - arch/x86/crypto/sha512_ssse3_glue.c | 7 +-- arch/x86/include/asm/dwarf2.h | 43 ------------------- arch/x86/include/asm/xor_avx.h | 9 ---- lib/raid6/algos.c | 2 - lib/raid6/recov_ssse3.c | 6 --- lib/raid6/test/Makefile | 3 -- 18 files changed, 26 insertions(+), 156 deletions(-) Acked-by: Jason A. Donenfeld