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: 10060407 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 27EB960231 for ; Wed, 15 Nov 2017 21:41:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17BB329F30 for ; Wed, 15 Nov 2017 21:41:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C7752A2DA; Wed, 15 Nov 2017 21:41:37 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9661929F30 for ; Wed, 15 Nov 2017 21:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hF4BR+UkAO3FrPQPWiYKoRYU/ULtHLzBHKKAV7Z7Mzg=; b=QvkIo6ZMzOgDgvI/aGDZIpT9bY 9RXRPbCVY99OfYUQCpFjjq4XpnOBWtY051ZSZvjblrS/7CNg70dWQVslylZ8HWZxKvXML31ts/6RF Vuy7JtQZ0LzjKZGBPBwHpQCumG/V5hexs+XDmopALQ7w1h3BmelT07i2MJN1bscsu6Eg1CFfwpVzY lt4BHyiITXYBxJIXQGjfeePy9Qka3MIaBEryRFfxbUx596cBWqXnhCEqHG2XqB87IPJclDVUBarhY Kn5A+WVxYulhnr6L5SMoQCRdgWu8qEuZyqYrj9UfJF2J+OnerxnAL35VcgOfgs1TNhwnGdc8sliMj 9VqdlVjQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eF5R9-0006mX-L8; Wed, 15 Nov 2017 21:41:35 +0000 Received: from mail-it0-x241.google.com ([2607:f8b0:4001:c0b::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eF5LI-0000RM-I2 for linux-arm-kernel@lists.infradead.org; Wed, 15 Nov 2017 21:35:41 +0000 Received: by mail-it0-x241.google.com with SMTP id n134so15896759itg.0 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=Xylr8oGGMsUd07kmL9TenvX1kYZrJIIxCR844h2aLWZpKZ/C43H7neFsGiHZxkNGsg DtwvWYO1BsWY1FJoCv5tZU8raP6HMNokzJFijvlunYN3oqRMMSSeD5a0hF9rVHUjDNJV glnpajBuST/0kMf+cTjNqZqXSGjvXTc+rMEG2iKDLMub/mDkQR3QCnYE8pvcfIjXdTrF uuauPMjnd53buMD9to8YKAyikwo1Id8K5+24W4325zFXfz/34Q6UESo1KdaFSDZe4oBU kCPndnb4NZP4XoH2FDVEZqj+YMG+iAYqZRkBkaWck4nY+GHNUZFOlmbATXR8KJ5PsvmL wTMw== X-Gm-Message-State: AJaThX67fJIzOvO9qR6f0sCzH/9DnAObtreJNQjdwJ9vY9BO+CeVRck3 FcdsZl6UtqnmY3l1uU45yHSOAA== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171115_133533_391155_F8967F09 X-CRM114-Status: UNSURE ( 8.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sami Tolvanen MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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