From patchwork Thu Feb 1 10:22:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 10195223 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 9D8E2601A0 for ; Thu, 1 Feb 2018 10:22:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 936412876D for ; Thu, 1 Feb 2018 10:22:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 87D1A289FD; Thu, 1 Feb 2018 10:22:08 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 02C872876D for ; Thu, 1 Feb 2018 10:22:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751909AbeBAKWH (ORCPT ); Thu, 1 Feb 2018 05:22:07 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:50648 "EHLO laurent.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751520AbeBAKWG (ORCPT ); Thu, 1 Feb 2018 05:22:06 -0500 Received: from ayla.of.borg ([84.194.104.20]) by laurent.telenet-ops.be with bizsmtp id 5NN31x00Y0SRDqC01NN3vM; Thu, 01 Feb 2018 11:22:05 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1ehC0J-0007hE-0i; Thu, 01 Feb 2018 11:22:03 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1ehC0I-0001At-Sx; Thu, 01 Feb 2018 11:22:02 +0100 From: Geert Uytterhoeven To: Herbert Xu , "David S . Miller" , Christopher Li , Ard Biesheuvel , Tom Lendacky Cc: Arnd Bergmann , Andrew Morton , linux-crypto@vger.kernel.org, linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/3] crypto: sha3-generic - Use __optimize to support old compilers Date: Thu, 1 Feb 2018 11:22:00 +0100 Message-Id: <1517480520-4465-3-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517480520-4465-1-git-send-email-geert@linux-m68k.org> References: <1517480520-4465-1-git-send-email-geert@linux-m68k.org> MIME-Version: 1.0 Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With gcc-4.1.2: crypto/sha3_generic.c:39: warning: ‘__optimize__’ attribute directive ignored Use the newly introduced __optimize macro to fix this. Fixes: 83dee2ce1ae791c3 ("crypto: sha3-generic - rewrite KECCAK transform to help the compiler optimize") Signed-off-by: Geert Uytterhoeven Acked-by: Ard Biesheuvel --- crypto/sha3_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/sha3_generic.c b/crypto/sha3_generic.c index a965b9d8055983af..c409cd87fea5decd 100644 --- a/crypto/sha3_generic.c +++ b/crypto/sha3_generic.c @@ -35,7 +35,7 @@ static const u64 keccakf_rndc[24] = { /* update the state with given number of rounds */ -static void __attribute__((__optimize__("O3"))) keccakf(u64 st[25]) +static void __optimize("O3") keccakf(u64 st[25]) { u64 t[5], tt, bc[5]; int round;