From patchwork Fri Nov 3 17:12:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10040849 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 B5EEE60384 for ; Fri, 3 Nov 2017 17:15:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CD1D29714 for ; Fri, 3 Nov 2017 17:15:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 916CD29743; Fri, 3 Nov 2017 17:15:47 +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 1FFFB29714 for ; Fri, 3 Nov 2017 17:15:47 +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=IKnag3fa/SgIG6axowIPmv62AuN6gNgDKPsWnejwGdE=; b=YPqcQQbz6rVyGJ2HpB+FlBQf8d /uq76h7gcppvfUw+vNohqgNpS4G/wq3DXwf3t+92KGSVLrU/FeN0iHzdEVnTkkx5UMO7EqIzVI2DL vl/S7rqxXsuCe1HzQSbXshymseHRoQYwPE3gxT2esYTgoSYINddfsiMdBANFcnvI43/2FuIF1mG9Z JGTLDDIxdC4Y4f/zlcHgy2F6pbDIQraFJ8Zlujqu1IzZZ8uri9NKRWIt7Rpt+IX30cOJljG3Wx7c3 2acyQ5S+t2SpQbaW227UjMjwpw55j6I8hlZ/F5QJuO+6Kvg2py9Ha7gq1219UQJNRP7CF5AXxAjyk nKCWhiiA==; 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 1eAfZK-0003ty-G0; Fri, 03 Nov 2017 17:15:46 +0000 Received: from mail-io0-x241.google.com ([2607:f8b0:4001:c06::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAfX2-0000DA-U2 for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 17:13:57 +0000 Received: by mail-io0-x241.google.com with SMTP id m16so7796743iod.1 for ; Fri, 03 Nov 2017 10:13:07 -0700 (PDT) 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=xbwVAEnLDBAMuAzjI/MlL2erZM2TZe3f+yM3JU0iRx8=; b=h+L8F1L/9H1Xu9jWAiCSrji4XiYncIQAGT2rSudZFLIQacCN/B0u+JswiPSFsDbANj ZvNtTWSYeItEGzxzYqPGmXWoqc17s4X21W7BC/8mTeXjCCkNUK5OMD8c1L1M5ycpe92j kNBFz/XwMRVWlGLtduQkQmDbbRhki7RSHoB58N8gJL+KoqI/63AOqDzKuTB1w8de/9UZ 0P7GAieNa1agjWkvzLtv6USDXM/SxVMMDG+Bq0O2pWClYWbeiRJubQiDinHrUvc0B5gG xdYXXFmiCmrvuHOeL2TkzlwuRwuHzMJaagfSS/sI3Ziu51AW+p/y35ZAIi6LUHdwQ5kI KHCg== 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=xbwVAEnLDBAMuAzjI/MlL2erZM2TZe3f+yM3JU0iRx8=; b=drSiowGG3x7LhgLDjMzUZNzZjd/I/JfiSI8JVga1q6IUgXdB+sAVn/YytwqqE3bu14 7ZtWmT7oPz1pVoiDdghYCtD3ddkzx8ZaOxtE2rQ4fKTm1YZv5ERaL5eqygYyv++oS7Si wB2UPuyXhhmQ8+u8Semxnljd0lJ1rHSyg9ToX7VKS1FbIiB0uZLuhmK+3ifeqja6Tnv2 LLwAxeJIvcca3x22XhEcGckmaTSKEvhSNlzMOwQ/qs4AxN/wVv+Qr9toKl2M3nQJkP0V iJVU8lyYMVU7rubKgiRMVI7Vpa5VMOobUESaCUuvys+2fOUtCj28J0U2oEvceZveZnIk j83w== X-Gm-Message-State: AJaThX6SlxWuv7gPuIUkUjrWvSPam+MixyZXymM5yvdgP76nMij3mI9k LOlr3zk6j4idbDhF+BJ59IQXEXan83Q= X-Google-Smtp-Source: ABhQp+RXX5GwLxJvXGd+ZU9Z5lTspZ10gxV76UXQ7llFXLvr+TaQSSOQYkYNV1hWLZRI62HIJl6Bew== X-Received: by 10.36.55.210 with SMTP id r201mr676190itr.132.1509729186725; Fri, 03 Nov 2017 10:13:06 -0700 (PDT) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id d186sm1370787itd.38.2017.11.03.10.13.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 10:13:05 -0700 (PDT) From: Sami Tolvanen To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 14/15] arm64: crypto: disable LTO for aes-ce-cipher.c Date: Fri, 3 Nov 2017 10:12:02 -0700 Message-Id: <20171103171203.107569-19-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.403.gc27cc4dac6-goog In-Reply-To: <20171103171203.107569-1-samitolvanen@google.com> References: <20171103171203.107569-1-samitolvanen@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171103_101325_708621_330A83DE X-CRM114-Status: UNSURE ( 9.18 ) 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 , Matthias Kaehlcke , Nick Desaulniers , Kees Cook , Greg Hackmann 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_CLANG_LTO 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. Signed-off-by: Sami Tolvanen Acked-by: Ard Biesheuvel --- 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..0edaef43a1d4 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) 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