Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2349926iob; Fri, 20 May 2022 07:30:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0eHNwvuy6Sq6XXOX7oWmocwopKkEvRXCqHd2tURKApOq9Xd4puTRiOS/WuVRleVsMhak+ X-Received: by 2002:a05:6402:274c:b0:42b:394e:c7b2 with SMTP id z12-20020a056402274c00b0042b394ec7b2mr205503edd.338.1653057050459; Fri, 20 May 2022 07:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653057050; cv=none; d=google.com; s=arc-20160816; b=gQ4W94Q0acUPaQRNNCTCv1z35O+mM2wp9TUMEBsDDmhtBYxZbkKi3dP5XjAOG+zQWT XXg+oKT+dYfqfA6Xj0aHC6rrofBkoUhXmxVwoMc0O6K9Us6oA2cbFbdMGvcKpeSDLqFy 3Mp/vGXSF+4UojE/+HU5/I9gRzd4DEiRkdOjdgXNYygLWnuBiT/H4kw7cWWAsmNSqTbQ ZcFihzwIZBM2H7yuif3PLJlJIO2TRiPMyngbszQ5hcODM+hxQ6pCZsnQu4Pmn5jOc++h Mgy7bxhfKWqHEcPCwvzKu9KPLpEYn9CouyeoRRDqn29dsdRgG8ecIj5Oee8dKRxVhUHY 6CBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fIjT43TfJnObNfqdhbKyOlXi8GybWGPBgHbR7W1IqBQ=; b=NZKKoF+u0OQKRDiFC0Kjhoke3e4hFqFEcSXxNpBIVZ3JZPmgH1KZdnrCmp0RWkoGEU By8qVMhZOActZm8EWLeL/A45snHH+9t+HJ57MyazHsyx7V6O2XjnmOhXyqS1meoj7Ong 9V3BQ45rKsnGEwQnqBcjVwuauLEKBrwPPi68HTEqJNgTQzRMQ8+r78QFpoDVwI4o2hpA +4s/Fhqu29ZgtiXAcNyPTA4vXgkNkC+Zk5qVd2bOcThqMlAgyXnu6W739Mbm4izoGY9q 9oerM95x9LqrBzTkUuLl9FDVizc7Q+k4zN+1e9l+7uUZNtkAZlGaqOVPCP/aPhcar0// 0cVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz38-20020a1709077da600b006df76385c62si6140163ejc.258.2022.05.20.07.30.13; Fri, 20 May 2022 07:30:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238193AbiETFxy (ORCPT + 99 others); Fri, 20 May 2022 01:53:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231455AbiETFxu (ORCPT ); Fri, 20 May 2022 01:53:50 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9B12C1EFC; Thu, 19 May 2022 22:53:48 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1nrva3-00Fhx1-Ai; Fri, 20 May 2022 15:53:44 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 20 May 2022 13:53:43 +0800 Date: Fri, 20 May 2022 13:53:43 +0800 From: Herbert Xu To: Nathan Huckleberry Cc: linux-crypto@vger.kernel.org, linux-fscrypt@vger.kernel.org, "David S. Miller" , linux-arm-kernel@lists.infradead.org, Paul Crowley , Eric Biggers , Sami Tolvanen , Ard Biesheuvel , Eric Biggers Subject: Re: [PATCH v8 8/9] crypto: arm64/polyval: Add PMULL accelerated implementation of POLYVAL Message-ID: References: <20220510172359.3720527-1-nhuck@google.com> <20220510172359.3720527-9-nhuck@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220510172359.3720527-9-nhuck@google.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, May 10, 2022 at 05:23:58PM +0000, Nathan Huckleberry wrote: > > +module_cpu_feature_match(PMULL, polyval_ce_mod_init) > + > +module_init(polyval_ce_mod_init); I get a cross-compile failure on this: In file included from ../arch/arm64/crypto/polyval-ce-glue.c:25: ../include/linux/module.h:131:42: error: redefinition of ‘__inittest’ 131 | static inline initcall_t __maybe_unused __inittest(void) \ | ^~~~~~~~~~ ../arch/arm64/crypto/polyval-ce-glue.c:187:1: note: in expansion of macro ‘module_init’ 187 | module_init(polyval_ce_mod_init); | ^~~~~~~~~~~ ../include/linux/module.h:131:42: note: previous definition of ‘__inittest’ was here 131 | static inline initcall_t __maybe_unused __inittest(void) \ | ^~~~~~~~~~ ../include/linux/cpufeature.h:55:1: note: in expansion of macro ‘module_init’ 55 | module_init(cpu_feature_match_ ## x ## _init) | ^~~~~~~~~~~ ../arch/arm64/crypto/polyval-ce-glue.c:185:1: note: in expansion of macro ‘module_cpu_feature_match’ 185 | module_cpu_feature_match(PMULL, polyval_ce_mod_init) | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/module.h:133:6: error: redefinition of ‘init_module’ 133 | int init_module(void) __copy(initfn) \ | ^~~~~~~~~~~ ../arch/arm64/crypto/polyval-ce-glue.c:187:1: note: in expansion of macro ‘module_init’ 187 | module_init(polyval_ce_mod_init); | ^~~~~~~~~~~ ../include/linux/module.h:133:6: note: previous definition of ‘init_module’ was here 133 | int init_module(void) __copy(initfn) \ | ^~~~~~~~~~~ ../include/linux/cpufeature.h:55:1: note: in expansion of macro ‘module_init’ 55 | module_init(cpu_feature_match_ ## x ## _init) | ^~~~~~~~~~~ ../arch/arm64/crypto/polyval-ce-glue.c:185:1: note: in expansion of macro ‘module_cpu_feature_match’ 185 | module_cpu_feature_match(PMULL, polyval_ce_mod_init) | ^~~~~~~~~~~~~~~~~~~~~~~~ Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt