Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2216958pxb; Fri, 17 Sep 2021 05:07:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTY0G6u1FvEve6ToKGTtEtWZUOZsNeMfnaJJgZlbLMeVAQF9ivK1ISo60JYPxVM4bbSPea X-Received: by 2002:a05:6e02:12a6:: with SMTP id f6mr7983119ilr.38.1631880449677; Fri, 17 Sep 2021 05:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631880449; cv=none; d=google.com; s=arc-20160816; b=QF1oxa55JLK5w9Ql/t5Oe3vr/ecdnSPm8vefj2Tm7Q0CO0QQbVnybXSp6X8WD4NoPr EcgQvHPicnFdG9FQqvCpGOoL2oDWCuLmb3+wP4G1kgcE8NTw0W0xPav798WcJ77/3TJZ rsDxM6whaq68aKETTdrflQM771znJEbadS4QjPGbunIyvLLqCZJ8trAUotU7pAfZoK6W 5B9nSRpdLIUheEC1bjL5revJmxO4/93phfQx6u/+G0yE0fXcyzCdaoNQ+3UDuffzLa9S CppVTs/yrtU1/D26HuDLXeOK7l7wZd++7QK+fqKUQH7Uk3URsc7CThihE2RwbW79j3Pf NabA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NEwj3beiV9NT9Up1IKj47y8V8qIglyHke0d3SN9Lqy0=; b=uyBZVsf9zbbh4ZFIAWBgNokbAva/0n0sweDfn9ZDNzlVT7gJp5MG6jbK8RE56rCU6z lFB1+OspIGvuomW0zp4bBjghGFa2kCfsNJqLeh5vj/NuCqu/LPNTufzE3n2+QG+YWkXw OeqccGU7/6YWFxAdCjXgVHeB8WEPnAF70YmPiSww0jTL39OANW8jrs1m33TADxtl78ZI uZh/iqmktAZm46G0e774o7uOqF4RJ/rcZY0DK6GcrN4gjQyDJd4AzW6Twm83iQ8147OZ b+vMhqcgFE6wyN0M3g192f2x5og86jbFx7CIMCONV6ERMU917rqLdihbPgx1fATznA0k zjGw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si5339289ilu.50.2021.09.17.05.07.16; Fri, 17 Sep 2021 05:07:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243788AbhIQDUW (ORCPT + 99 others); Thu, 16 Sep 2021 23:20:22 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:55238 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243721AbhIQDUW (ORCPT ); Thu, 16 Sep 2021 23:20:22 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1mR4Or-000695-Op; Fri, 17 Sep 2021 11:18:53 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1mR4Oq-0001jI-1W; Fri, 17 Sep 2021 11:18:52 +0800 Date: Fri, 17 Sep 2021 11:18:52 +0800 From: Herbert Xu To: Nathan Chancellor Cc: "David S. Miller" , Tianjia Zhang , Nick Desaulniers , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, llvm@lists.linux.dev Subject: Re: [PATCH] crypto: sm4 - Do not change section of ck and sbox Message-ID: <20210917031851.GB6559@gondor.apana.org.au> References: <20210825203859.416449-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210825203859.416449-1-nathan@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Aug 25, 2021 at 01:38:59PM -0700, Nathan Chancellor wrote: > When building with clang and GNU as, there is a warning about ignored > changed section attributes: > > /tmp/sm4-c916c8.s: Assembler messages: > /tmp/sm4-c916c8.s:677: Warning: ignoring changed section attributes for > .data..cacheline_aligned > > "static const" places the data in .rodata but __cacheline_aligned has > the section attribute to place it in .data..cacheline_aligned, in > addition to the aligned attribute. > > To keep the alignment but avoid attempting to change sections, use the > ____cacheline_aligned attribute, which is just the aligned attribute. > > Fixes: 2b31277af577 ("crypto: sm4 - create SM4 library based on sm4 generic code") > Link: https://github.com/ClangBuiltLinux/linux/issues/1441 > Signed-off-by: Nathan Chancellor > --- > lib/crypto/sm4.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt