Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1371860ybj; Thu, 7 May 2020 23:06:50 -0700 (PDT) X-Google-Smtp-Source: APiQypIu0OP2u+7KeFlStQvAUkTYCvwi0sJhuEecmCtAYLFIITxt2sm5TJ33RuXOduJzh4YNi/d6 X-Received: by 2002:aa7:dd84:: with SMTP id g4mr829087edv.273.1588918009909; Thu, 07 May 2020 23:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588918009; cv=none; d=google.com; s=arc-20160816; b=Vw9v9/2cMLl7buPE3KR6j8XBvFfOnQHVhWMMiJmVqZgtczMKEqvfgTDsPNdg3T6HtV a5MEPnh7H6camQC3cOI3nwnBQwW6cXGTzsgZEnmjZFgmjuGrwb6snIW9PF2q6T8G/WqF /jwK6K8cnc7dyI+Wi1NIpBQlEad7ZqJf17h8GyB7CQUSIFyMLL3KMheSuBlajXjEzGKk FMWXC6RLEYwHJe7o8qDKGkg7mTkHN7PXbocstPh16AieVmIh61DGx2qfy824NuMHO9zO ClMxDtkQt1vQk+N9bHdrBd9VZgYqfzoUBgXPUL8PL/DDHNSKs+VXU5mblmXHAefFzmhq LKcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4zWfFZqvldxp2hwqGvWSV3L458X8iLzEir8Dnf89j8E=; b=JMUaFxWRsOSEMjk/mBRzh5C03lH0hL8PIjqtLBegI/LZ6QdgT+dlugL/rw7F/tF3y2 Lr5JE717xW36pqT0HR66ISbLw0aE834dobQbQ+kMEhIcgmR5+ZcU7318jTx00S/W0imp kndJmg9X72vlZtM4IIcwsRlN8lcjQLanuy0fAqXnXCBTa7QE3Xxm16mZsF3lO/TLuZm6 bUXwb1cCgdVbylkxcGe7n0gn9OdnkWfGIO6yUA5nv4DEyELmX8DEZr8axsAkEvUwesyl fSFbRmi75DWKtccLohxp4Ho9DPLq5VT9S2KQrNlGGVcyik/FJMSS00dFXCefT4ph3+RD /aIw== 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 bi13si388679edb.449.2020.05.07.23.06.27; Thu, 07 May 2020 23:06:49 -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 S1726036AbgEHGGZ (ORCPT + 99 others); Fri, 8 May 2020 02:06:25 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:40172 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbgEHGGY (ORCPT ); Fri, 8 May 2020 02:06:24 -0400 Received: from gwarestrin.me.apana.org.au ([192.168.0.7] helo=gwarestrin.arnor.me.apana.org.au) by fornost.hmeau.com with smtp (Exim 4.89 #2 (Debian)) id 1jWw2m-0004zL-9N; Fri, 08 May 2020 15:59:33 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 08 May 2020 16:06:11 +1000 Date: Fri, 8 May 2020 16:06:11 +1000 From: Herbert Xu To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, "David S. Miller" , Eric Biggers , Ard Biesheuvel , linux-crypto@vger.kernel.org Subject: Re: [PATCH 01/15] crypto - Avoid free() namespace collision Message-ID: <20200508060611.GF24789@gondor.apana.org.au> References: <20200430213101.135134-1-arnd@arndb.de> <20200430213101.135134-2-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200430213101.135134-2-arnd@arndb.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Apr 30, 2020 at 11:30:43PM +0200, Arnd Bergmann wrote: > gcc-10 complains about using the name of a standard library > function in the kernel, as we are not building with -ffreestanding: > > crypto/xts.c:325:13: error: conflicting types for built-in function 'free'; expected 'void(void *)' [-Werror=builtin-declaration-mismatch] > 325 | static void free(struct skcipher_instance *inst) > | ^~~~ > crypto/lrw.c:290:13: error: conflicting types for built-in function 'free'; expected 'void(void *)' [-Werror=builtin-declaration-mismatch] > 290 | static void free(struct skcipher_instance *inst) > | ^~~~ > crypto/lrw.c:27:1: note: 'free' is declared in header '' > > The xts and lrw cipher implementations run into this because they do > not use the conventional namespaced function names. > > It might be better to rename all local functions in those files to > help with things like 'ctags' and 'grep', but just renaming these two > avoids the build issue. I picked the more verbose crypto_xts_free() > and crypto_lrw_free() names for consistency with several other drivers > that do use namespaced function names. > > Fixes: f1c131b45410 ("crypto: xts - Convert to skcipher") > Fixes: 700cb3f5fe75 ("crypto: lrw - Convert to skcipher") > Signed-off-by: Arnd Bergmann > --- > crypto/lrw.c | 6 +++--- > crypto/xts.c | 6 +++--- > 2 files changed, 6 insertions(+), 6 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