Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1156778pxx; Fri, 30 Oct 2020 03:39:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvx+P1ifdx6JXq+XUigUMID6zSC68mpQ1ecrS9HCcRN/Oj3MWfI02CCkTyYlRAcEou13iD X-Received: by 2002:a17:906:12cf:: with SMTP id l15mr1864590ejb.540.1604054359191; Fri, 30 Oct 2020 03:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604054359; cv=none; d=google.com; s=arc-20160816; b=MSPslwze5L2w5+YR/JHkc0Sr2kyUFLm2uQYc1/ZvHMZ7X5826socukmT0z4HOZB0PG klSfqcXD/5DJG4aD+rBtkFjI/vJK2au/3v2DS3WMhmFX7svFaNCFngam6Afc4Jneyc2H lrjPzfwEl9LF8Uh9C9bzg7A5pfEswJYtNF0onqzTmpJK+OmOuJksDXBaHxZJ2XPkdBtN WvzZuU32lm96zvGCV7K+7bIQYB98/YdTKcHPcIB803WzOjh3ZXFNCzsKkSvh+qzIkUqV PSQIB0tT75N/xS0fi3lXwT2pmB81mMUArzL7GgunqrlR2RSJbNTT0ol8ICmfJ5omtMlj 5pJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=V6kRRTd2LJIuUq7PDFIy4FihcopOfGaO4K5gGTIxmkk=; b=N97pddREOZMLFR6er9Vri75lwU+LdE+NsMLdjl1S7ls0Ru1K/ztm1bHGyV9sqGwSWF EStUiXdSTG+PyFNUzB3U4GDSoz6v2TGVOss4G42OeKI2st+KnajdLqsirRjdMF20ng3q rKGXrQHPLnk3nJaeeK5Q3AjNWuGOnAWHf64rP3LeAMNb/TM0JbC684/Mk44SNSdE82Ah A94R84EGxWELcRr2GxbJWBSk47RXc06wwnG2peR1/XthO18YAw3EGQv2ci3oxBBbuENI axqAUm8g037596A09HtFsL53CEG1C2HhH5RPdHJEcHyo2w6AASiFb8wa2VLO9DTrzIEQ OA8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hPWuGxnK; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z26si3213143ejl.280.2020.10.30.03.38.54; Fri, 30 Oct 2020 03:39:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hPWuGxnK; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726055AbgJ3Kiv (ORCPT + 99 others); Fri, 30 Oct 2020 06:38:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:33198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbgJ3Kiu (ORCPT ); Fri, 30 Oct 2020 06:38:50 -0400 Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DA49B221FA; Fri, 30 Oct 2020 10:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604054330; bh=UXqdytnptRfkles0LLOMHaZ1KItSIYi00Dbknf+7zvM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hPWuGxnKPeGGg4xEDQk0B/67C7JPg5fAcMZe6g9C8HgaK77Qr6ctZ6wra7p755LQr PxW3dPfEGZuWPi0xajrmCWGwDXYUeay3zw+RSoq4c2wAZZWSKvmHy9IAJANzuary7i kz3VpA5AVqFRNosbaiK0QNDx6cqb1+KUJxY3JxGc= Received: by mail-oi1-f179.google.com with SMTP id u127so6182254oib.6; Fri, 30 Oct 2020 03:38:49 -0700 (PDT) X-Gm-Message-State: AOAM530g3Ohwdb+kI5l5IuBNBvIoaq3skYNCSXc2ffZo4/uT8/DOEk63 Hud7/l52AlLOn9Iene6458x1qtONw8X4HOsmEnU= X-Received: by 2002:aca:2310:: with SMTP id e16mr1028003oie.47.1604054329082; Fri, 30 Oct 2020 03:38:49 -0700 (PDT) MIME-Version: 1.0 References: <1604045940-33684-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1604045940-33684-1-git-send-email-tiantao6@hisilicon.com> From: Ard Biesheuvel Date: Fri, 30 Oct 2020 11:38:38 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] crypto: arm64 - move const after static To: Tian Tao Cc: Herbert Xu , "David S. Miller" , Catalin Marinas , Will Deacon , Linux Crypto Mailing List , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, 30 Oct 2020 at 09:18, Tian Tao wrote: > > Fixed the WARNING: Move const after static - use 'static const u8' > > Signed-off-by: Tian Tao Nak. What warning is that? This is perfectly valid C, and the const is already after the static. And in general, const applies to the type on the left, unless it comes first, so putting it after the type is less ambiguous: > --- > arch/arm64/crypto/aes-ce-glue.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/crypto/aes-ce-glue.c b/arch/arm64/crypto/aes-ce-glue.c > index 56a5f6f..8ba6f04 100644 > --- a/arch/arm64/crypto/aes-ce-glue.c > +++ b/arch/arm64/crypto/aes-ce-glue.c > @@ -77,7 +77,7 @@ int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, > /* > * The AES key schedule round constants > */ > - static u8 const rcon[] = { > + static const u8 rcon[] = { > 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, > }; > > -- > 2.7.4 >