Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1155rwd; Fri, 19 May 2023 14:18:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7MXj9LfzonQCXsuOjhG+PZk4vJHtreQSD9Sw5WDQD4QFsDFd20EijpqOJZFff8e3hE0ob4 X-Received: by 2002:a05:6a20:c704:b0:f1:c63a:f7fa with SMTP id hi4-20020a056a20c70400b000f1c63af7famr2732485pzb.15.1684531115652; Fri, 19 May 2023 14:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684531115; cv=none; d=google.com; s=arc-20160816; b=f3FPc6YLcAmWALZQrUXYNDz7/H3yBcsqq5zXkaGY1V3NDHWz1rLM9uawlvB3iZQsdt vSYSaF4FwNCCN/Ok8wr85NhLwEzVD3PXpRTlZTtK35D7BmvwIgg7Gq0iDwYvM7kAyZZr tVx7TOxo+ghgwAJylIRAK/ar8IbxSyvu/9L/fTNnU/eYho/ZaNL2JDJLP64x2EK2yYaN 1ZwMuvUII5pzNsu2pN+vscmaFfR3SsdImYjOizFPigVutC+CQ80AePluZ+uv8T8CJ2O+ hglknZYDNOMxgeghKA64yX7pWb1OZ4/0nlyTIJ5kczLmBs5AOCDsBd6lLlxjz+uzZ1U5 Ttsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=U+PRM1Nr3eo4nor/mZstxXU/yh23Q1IE51T6Iw1dc9s=; b=bRvjXWRMXlwsackXP5JQD+4pD5dXa7mo2CvEIl+neXxMo6hehFmdK8JwqPuL+A56oy 3Z1PBMNFoqmNh5xMmhPmduvOlRYHwVpyzCges/VkkBYv22Mm+xq0XvRQ8PgoNUO+msqA QI/uQ00U5xXIkxe7uL+9etXxo6gUpKr6U1bxKKH6fPe9lLmtyyyj7Zn0jROxlAJ95QJI nwKkp6djBiS82EdgD9GrzqHf3YZ9KbarG2IRb1DeC4BRoDhSXK6z1ltZEhmyLeMlLCSl +Xxc0suH7kWru5GbQtumG51nxr+gpA+NKeXqir2DlXkHNtQmzZMjR+SJHgC/opzqx7Nt uuNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O9C5sQA1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a63744d000000b004fab4df6dfdsi217150pgn.369.2023.05.19.14.18.23; Fri, 19 May 2023 14:18:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O9C5sQA1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S229719AbjESVFP (ORCPT + 99 others); Fri, 19 May 2023 17:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjESVFN (ORCPT ); Fri, 19 May 2023 17:05:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D4E41A5; Fri, 19 May 2023 14:05:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E5A6A6586C; Fri, 19 May 2023 21:05:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53ED6C433EF; Fri, 19 May 2023 21:05:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684530311; bh=Mj5v+bpL8vpGksGf9GHZnKOEt24+6uxqfaVWrmt99z8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=O9C5sQA1fDVpT+LsSe6nmDSMALaYALFtdGjIibPahT/bWTZ9K/xCEuNlBdPX/AtHx 3d/exTbXTnvIIrdEdTJp+DNh+eNUTwXqBE/RNAqItKss1L6kdlKgCOC9vXzLxP3blc XmfvhhYwEdz9t6V79+qDDEOKbHzZKuEGMD0myTBn3aHA0VNnt4gXaifMKukZRjJwst iFm+v3xC35EAVmkv8tdQH6mQmEqpK1x1AHveHnA6SwPOAU8f4BtYnpkBbDZX9/Cigm VAi3C9LccQwq+TTvbk2nY2R59V3oEET05a++9ydhgupKTatXvLc1Xa85eDuvutVWKO TaA6k5Gv7ibYg== Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2af0eb50b4aso37010011fa.2; Fri, 19 May 2023 14:05:11 -0700 (PDT) X-Gm-Message-State: AC+VfDxBYiHpam6pEVV3uvUSbZBqqInFqdPmK60RTBlArrrJ4wQF+/YJ Z80PGi4q77eBuFPvUhNMb3lJV/T23quoiQYRRgc= X-Received: by 2002:a05:651c:10d:b0:2af:1681:2993 with SMTP id a13-20020a05651c010d00b002af16812993mr1121072ljb.49.1684530309331; Fri, 19 May 2023 14:05:09 -0700 (PDT) MIME-Version: 1.0 References: <20230517132220.937200-1-arnd@kernel.org> In-Reply-To: <20230517132220.937200-1-arnd@kernel.org> From: Song Liu Date: Fri, 19 May 2023 14:04:57 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] raid6: neon: add missing prototypes To: Arnd Bergmann Cc: Catalin Marinas , Will Deacon , Ard Biesheuvel , linux-raid@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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-kernel@vger.kernel.org On Wed, May 17, 2023 at 6:22=E2=80=AFAM Arnd Bergmann wro= te: > > From: Arnd Bergmann > > The raid6 syndrome functions are generated for different sizes and have > no generic prototype, while in the inner functions have a prototype > in a header that cannot be included from the correct file. In both > cases, the compiler warns about missing prototypes: > > lib/raid6/recov_neon_inner.c:27:6: warning: no previous prototype for '__= raid6_2data_recov_neon' [-Wmissing-prototypes] > lib/raid6/recov_neon_inner.c:77:6: warning: no previous prototype for '__= raid6_datap_recov_neon' [-Wmissing-prototypes] > lib/raid6/neon1.c:56:6: warning: no previous prototype for 'raid6_neon1_g= en_syndrome_real' [-Wmissing-prototypes] > lib/raid6/neon1.c:86:6: warning: no previous prototype for 'raid6_neon1_x= or_syndrome_real' [-Wmissing-prototypes] > lib/raid6/neon2.c:56:6: warning: no previous prototype for 'raid6_neon2_g= en_syndrome_real' [-Wmissing-prototypes] > lib/raid6/neon2.c:97:6: warning: no previous prototype for 'raid6_neon2_x= or_syndrome_real' [-Wmissing-prototypes] > lib/raid6/neon4.c:56:6: warning: no previous prototype for 'raid6_neon4_g= en_syndrome_real' [-Wmissing-prototypes] > lib/raid6/neon4.c:119:6: warning: no previous prototype for 'raid6_neon4_= xor_syndrome_real' [-Wmissing-prototypes] > lib/raid6/neon8.c:56:6: warning: no previous prototype for 'raid6_neon8_g= en_syndrome_real' [-Wmissing-prototypes] > lib/raid6/neon8.c:163:6: warning: no previous prototype for 'raid6_neon8_= xor_syndrome_real' [-Wmissing-prototypes] > > Add a new header file that contains the prototypes for both to avoid > the warnings. > > Signed-off-by: Arnd Bergmann Applied to md-next. Thanks! Song > --- > lib/raid6/neon.h | 22 ++++++++++++++++++++++ > lib/raid6/neon.uc | 1 + > lib/raid6/recov_neon.c | 8 +------- > lib/raid6/recov_neon_inner.c | 1 + > 4 files changed, 25 insertions(+), 7 deletions(-) > create mode 100644 lib/raid6/neon.h > > diff --git a/lib/raid6/neon.h b/lib/raid6/neon.h > new file mode 100644 > index 000000000000..2ca41ee9b499 > --- /dev/null > +++ b/lib/raid6/neon.h > @@ -0,0 +1,22 @@ > +// SPDX-License-Identifier: GPL-2.0-only > + > +void raid6_neon1_gen_syndrome_real(int disks, unsigned long bytes, void = **ptrs); > +void raid6_neon1_xor_syndrome_real(int disks, int start, int stop, > + unsigned long bytes, void **ptrs); > +void raid6_neon2_gen_syndrome_real(int disks, unsigned long bytes, void = **ptrs); > +void raid6_neon2_xor_syndrome_real(int disks, int start, int stop, > + unsigned long bytes, void **ptrs); > +void raid6_neon4_gen_syndrome_real(int disks, unsigned long bytes, void = **ptrs); > +void raid6_neon4_xor_syndrome_real(int disks, int start, int stop, > + unsigned long bytes, void **ptrs); > +void raid6_neon8_gen_syndrome_real(int disks, unsigned long bytes, void = **ptrs); > +void raid6_neon8_xor_syndrome_real(int disks, int start, int stop, > + unsigned long bytes, void **ptrs); > +void __raid6_2data_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t= *dp, > + uint8_t *dq, const uint8_t *pbmul, > + const uint8_t *qmul); > + > +void __raid6_datap_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t= *dq, > + const uint8_t *qmul); > + > + > diff --git a/lib/raid6/neon.uc b/lib/raid6/neon.uc > index b7c68030da4f..355270af0cd6 100644 > --- a/lib/raid6/neon.uc > +++ b/lib/raid6/neon.uc > @@ -25,6 +25,7 @@ > */ > > #include > +#include "neon.h" > > typedef uint8x16_t unative_t; > > diff --git a/lib/raid6/recov_neon.c b/lib/raid6/recov_neon.c > index d6fba8bf8c0a..1bfc14174d4d 100644 > --- a/lib/raid6/recov_neon.c > +++ b/lib/raid6/recov_neon.c > @@ -8,6 +8,7 @@ > > #ifdef __KERNEL__ > #include > +#include "neon.h" > #else > #define kernel_neon_begin() > #define kernel_neon_end() > @@ -19,13 +20,6 @@ static int raid6_has_neon(void) > return cpu_has_neon(); > } > > -void __raid6_2data_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t= *dp, > - uint8_t *dq, const uint8_t *pbmul, > - const uint8_t *qmul); > - > -void __raid6_datap_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t= *dq, > - const uint8_t *qmul); > - > static void raid6_2data_recov_neon(int disks, size_t bytes, int faila, > int failb, void **ptrs) > { > diff --git a/lib/raid6/recov_neon_inner.c b/lib/raid6/recov_neon_inner.c > index 90eb80d43790..f9e7e8f5a151 100644 > --- a/lib/raid6/recov_neon_inner.c > +++ b/lib/raid6/recov_neon_inner.c > @@ -5,6 +5,7 @@ > */ > > #include > +#include "neon.h" > > #ifdef CONFIG_ARM > /* > -- > 2.39.2 >