From patchwork Wed Nov 15 21:34:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10060357 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 89F9560231 for ; Wed, 15 Nov 2017 21:38:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 792B12A2DA for ; Wed, 15 Nov 2017 21:38:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E1042A31D; Wed, 15 Nov 2017 21:38:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 606662A2DA for ; Wed, 15 Nov 2017 21:38:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932455AbdKOVf5 (ORCPT ); Wed, 15 Nov 2017 16:35:57 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:34359 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759448AbdKOVfL (ORCPT ); Wed, 15 Nov 2017 16:35:11 -0500 Received: by mail-it0-f66.google.com with SMTP id m191so13353409itg.1 for ; Wed, 15 Nov 2017 13:35:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wyKkTldyPAHhelMsD4GMM+cd8hiWymfmeKmsN8XAz2A=; b=Igfb/UA8rI8QCaUAp4CafhlaSqSDlDyP7MbjSwKrnbqMWp45AuYw0LczUS/trCmRMg UwtV9oqNCrTCVV54qbMmq8wiav19IXOcWWP1NY38iG6uCS2iGTiP+/VzHRk8ih3m9Sqy zUNJP2HJaUhlPc0rriewDzPR/PswA+tfGsfOGJ0J4KrOHYxzxKlq5h+F3dNRjhV46pC1 n990/tGQbGmLFEFHrJz2BTO4LllYgmTrmyyvSJmLpW/PLvnLLdE9GH1VJxcIQ9V1h/jY sCgXmhHxr0o4v/oMbeYGijtxHIjdfuYBz1WvQ07ddjoL0/ZPv8zrHqjbHq6HS8SduN3j JlEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wyKkTldyPAHhelMsD4GMM+cd8hiWymfmeKmsN8XAz2A=; b=OZLbRTc3/Go87e/6+w/2AKzJRVUGfI2sZ+/bEkDLQLjsxtFBYoW3X/pEzYVHYuIwlg U1S0ssJl/sQ1rPoArJEl2MFOXTni09mWoYDlalemAd88Gz9nW1R2dlzlgyUH+qO6yiV6 KNwyyCMebuwrAIfVtC0i9ur4NIbtEuqtJCTTdpLQGCJmrhIfQXjeBu+J8tUXg+rNqv1O zA/4V7oCR2OEhxHhVMJjFNJ2crNe5f5VNxxidaSQBMm0obFbDCZrkZ0pYtndqZ6nnApX +BhYsfiGUtVhnNZ7wZhr5sxNsjC5asJX2Cc8WEs6bwcsVqMjkOAoN66sSVyP4ZJ0Yv7g LcuQ== X-Gm-Message-State: AJaThX4NyPw4OHVsh3UH4+Gs0lOTtjtwCALTgil/ZSKW75l/X+jai7Pa C7M1rFc9+H9Kc4M4iazB9jAj/A== X-Google-Smtp-Source: AGs4zMYCINtHssypIR556ium26UozMDo7bPFXyk538GyOAPJ/3Ie2iAQB8UEgLPW0MRjSs0q8AhWog== X-Received: by 10.36.189.140 with SMTP id x134mr18547833ite.26.1510781710350; Wed, 15 Nov 2017 13:35:10 -0800 (PST) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id 68sm9735197iov.2.2017.11.15.13.35.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 13:35:09 -0800 (PST) From: Sami Tolvanen To: Alex Matveev , Andi Kleen , Ard Biesheuvel , Greg Hackmann , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Masahiro Yamada , Maxim Kuvyrkov , Michal Marek , Nick Desaulniers , Yury Norov , Matthias Kaehlcke Cc: Sami Tolvanen Subject: [PATCH v2 16/18] arm64: crypto: disable LTO for aes-ce-cipher.c Date: Wed, 15 Nov 2017 13:34:26 -0800 Message-Id: <20171115213428.22559-17-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.448.gf294e3d99a-goog In-Reply-To: <20171115213428.22559-1-samitolvanen@google.com> References: <20171115213428.22559-1-samitolvanen@google.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP CONFIG_LTO_CLANG requires the use of clang's integrated assembler, which doesn't understand the inline assembly in aes-ce-cipher.c. Disable LTO for the file to work around the issue. Acked-by: Ard Biesheuvel Signed-off-by: Sami Tolvanen Signed-off-by: Alex Matveev --- arch/arm64/crypto/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/crypto/Makefile b/arch/arm64/crypto/Makefile index b5edc5918c28..af08508521a3 100644 --- a/arch/arm64/crypto/Makefile +++ b/arch/arm64/crypto/Makefile @@ -24,7 +24,7 @@ obj-$(CONFIG_CRYPTO_CRC32_ARM64_CE) += crc32-ce.o crc32-ce-y:= crc32-ce-core.o crc32-ce-glue.o obj-$(CONFIG_CRYPTO_AES_ARM64_CE) += aes-ce-cipher.o -CFLAGS_aes-ce-cipher.o += -march=armv8-a+crypto +CFLAGS_aes-ce-cipher.o += -march=armv8-a+crypto $(DISABLE_LTO_CLANG) obj-$(CONFIG_CRYPTO_AES_ARM64_CE_CCM) += aes-ce-ccm.o aes-ce-ccm-y := aes-ce-ccm-glue.o aes-ce-ccm-core.o