Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp240740pxb; Mon, 7 Feb 2022 10:09:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6wFpvnJtzSMC+hcnUFOwRdaTmevQyB0lXlDSCwCT4qvl4tNMJLflCU4LTsM7LHAJ06YEY X-Received: by 2002:a17:90b:1d0e:: with SMTP id on14mr136148pjb.59.1644257381727; Mon, 07 Feb 2022 10:09:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644257381; cv=none; d=google.com; s=arc-20160816; b=CeJVm8wSFsPZVBRcbkqDpflKshpm+GbhEabrB+b0DrkE8KNTeQLfKE8U1LuYV3azle 9gW8/5Iu7F/9JAHIA4DdFPCgwa+pLQirIcBC6hzrWE/PUyVCu7B4h6u10RP8Qi8Z1yQL WahFqt9Zi+sRHRolN5Xv03BdAc7NsiI/m1oljxyZbOWR3HJiOYlrD50Q2m3DmM2WIC9E U5xsYHZ81CqrvRK2Z7t/u0cbkCJp/Bx98zTaL3P+xECYaUF+p3BNjIpkNVaQIKowqicY UTr8UKukvHjW/MElP4ua47BulqRCGXs9cG3IjKYhuLkinq7dy0aB75XLOQYXBC06xrr0 aNfA== 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=tbmCb79hoigKQgWDfDGdlNwXrIbpEzIpR82BfHlTNN8=; b=n6wArtAS9DhoBXEflguMKU3vJ/OXBzgMNFTbJ0yoeJ3OewLWOdYYviGKg//rdw5wTO gip6tcNjStX4GhnIv+kYMqYsS/18Nj2f6vu6stNZfvotzx0fVKccFNLvQVpFUxWYyfhP OMP+GUzTbkj8eIpADldwNYGI0ok+BWmLFE9RYoqvFdLU7aL4O2fJT+HYJ5pV9sIazuf1 xrrJy5cZ6JhoxpDtQ0SsMFvaXJrU6Lk0Zv6vNfMLOz+rpUTBtXNyXV47nPZqbw0LSlPR 7b1ozbtjw2yTS8nDTavW+o9H6xFf83okprG1QwUXaFLg1pyi7qK0+a1X6uHEWuLcdZmV 6x+A== 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 84si9874015pfz.357.2022.02.07.10.09.16; Mon, 07 Feb 2022 10:09:41 -0800 (PST) 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 S1379011AbiBEE0W (ORCPT + 99 others); Fri, 4 Feb 2022 23:26:22 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:34004 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbiBEE0U (ORCPT ); Fri, 4 Feb 2022 23:26:20 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1nGCeP-0001wp-Sm; Sat, 05 Feb 2022 15:26:19 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Sat, 05 Feb 2022 15:26:17 +1100 Date: Sat, 5 Feb 2022 15:26:17 +1100 From: Herbert Xu To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, Nick Desaulniers , Nathan Chancellor Subject: Re: [PATCH 1/2] lib/xor: make xor prototypes more friendely to compiler vectorization Message-ID: References: <20220127081227.2430-1-ardb@kernel.org> <20220127081227.2430-2-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220127081227.2430-2-ardb@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Jan 27, 2022 at 09:12:26AM +0100, Ard Biesheuvel wrote: > > diff --git a/arch/arm64/lib/xor-neon.c b/arch/arm64/lib/xor-neon.c > index d189cf4e70ea..64c9577fcf0f 100644 > --- a/arch/arm64/lib/xor-neon.c > +++ b/arch/arm64/lib/xor-neon.c This fails to build: ../arch/arm64/lib/xor-neon.c:13:6: warning: no previous prototype for ‘xor_arm64_neon_2’ [-Wmissing-prototypes] 13 | void xor_arm64_neon_2(unsigned long bytes, unsigned long * __restrict p1, | ^~~~~~~~~~~~~~~~ ../arch/arm64/lib/xor-neon.c:40:6: warning: no previous prototype for ‘xor_arm64_neon_3’ [-Wmissing-prototypes] 40 | void xor_arm64_neon_3(unsigned long bytes, unsigned long * __restrict p1, | ^~~~~~~~~~~~~~~~ ../arch/arm64/lib/xor-neon.c:76:6: warning: no previous prototype for ‘xor_arm64_neon_4’ [-Wmissing-prototypes] 76 | void xor_arm64_neon_4(unsigned long bytes, unsigned long * __restrict p1, | ^~~~~~~~~~~~~~~~ ../arch/arm64/lib/xor-neon.c:121:6: warning: no previous prototype for ‘xor_arm64_neon_5’ [-Wmissing-prototypes] 121 | void xor_arm64_neon_5(unsigned long bytes, unsigned long * __restrict p1, | ^~~~~~~~~~~~~~~~ ../arch/arm64/lib/xor-neon.c: In function ‘xor_neon_init’: ../arch/arm64/lib/xor-neon.c:316:29: error: assignment to ‘void (*)(long unsigned int, long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__)’ from incompatible pointer type ‘void (*)(long unsigned int, long unsigned int *, long unsigned int *, long unsigned int *)’ [-Werror=incompatible-pointer-types] 316 | xor_block_inner_neon.do_3 = xor_arm64_eor3_3; | ^ ../arch/arm64/lib/xor-neon.c:317:29: error: assignment to ‘void (*)(long unsigned int, long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__)’ from incompatible pointer type ‘void (*)(long unsigned int, long unsigned int *, long unsigned int *, long unsigned int *, long unsigned int *)’ [-Werror=incompatible-pointer-types] 317 | xor_block_inner_neon.do_4 = xor_arm64_eor3_4; | ^ ../arch/arm64/lib/xor-neon.c:318:29: error: assignment to ‘void (*)(long unsigned int, long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__)’ from incompatible pointer type ‘void (*)(long unsigned int, long unsigned int *, long unsigned int *, long unsigned int *, long unsigned int *, long unsigned int *)’ [-Werror=incompatible-pointer-types] 318 | xor_block_inner_neon.do_5 = xor_arm64_eor3_5; | ^ cc1: some warnings being treated as errors Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt