Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2651790rdb; Tue, 12 Sep 2023 08:13:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFrdsQ0K+heWjWfeKYEMk5Gb0gZsejBxW75Y9GlS7U4IW/hmIjHRyCdsE6ISyEK05yCpEmW X-Received: by 2002:a17:903:1245:b0:1bb:9506:d47c with SMTP id u5-20020a170903124500b001bb9506d47cmr46893plh.19.1694531586734; Tue, 12 Sep 2023 08:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694531586; cv=none; d=google.com; s=arc-20160816; b=R2XPNXTSSlpR+piDmNYku5MBUghq6h54fFwIBoNB1+xRkHQmDmeo1ZbrA1FysB5YWC kuCGxgWzNTlGY+WHml4SRBd4EGwJcKpJrcDSmz9Hj/Ua3G40Vz7wctF4sLgkJmWaiRqf udzIEK986otBvhu9SW9E2Wjq+DTFZrJHUXKGecoVbCGvXBHY3HlITo5M7p7xi3YnEhhU yB8SE7ZgK7Zz49/Sl1ZdaVFyGlZbye6ndxalTjn+UBgvKBPvbZ+BLL3zQsqqD9JYOUiE SPEOunCYJzbNxT4ZDduf8rUTGrKr0z1hbiAd59KPuvu3Hl6FwskVvBitTreLu1W1WLiJ d/CA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WPi55EFhp6W9xhM0Ekr+3x6CsOkAiXX6RGsAaZWrBKc=; fh=VxY+Wmqg85qc13Ygd+I5uloGCvRHoxlqj05aFtiB4ak=; b=KbrTUPbjQKTde0QswQYoVPYZ4M1WtfB/WToeZK/vBePloll5Pu+Fb8bkeYYWNchh+k gf+7KMMn/GIuyEp2X/xY9B6nK5qvCsr9MkFAFgBCVe+kko6vsEjoVrEmEFeWEFaWXOkk kxCDm6l9+M1KVjvOCpoXlHtQ+5CtKoPRd7ikG5/vw6O1EESPRInXvsIxp7PYxS9ImDch 6YU/BKWOddg4eMoD1kuZv+53MvTS5LWnH1GNzo4zrFb3x+iwuKiGMPD7XwX/p1wE3dCm loVSgzPJ0yw9+6gfQBCqPpbZKvlKIwSwLMo48AZb3eUQj9bVs7TYQYMRkGWoFqNsMpNF 3VOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SNma68IH; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d5-20020a170903230500b001c35864fdbbsi8543548plh.406.2023.09.12.08.13.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 08:13:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SNma68IH; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B222582096B6; Tue, 12 Sep 2023 08:08:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236173AbjILPIK (ORCPT + 99 others); Tue, 12 Sep 2023 11:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236256AbjILPIA (ORCPT ); Tue, 12 Sep 2023 11:08:00 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AC52CCD for ; Tue, 12 Sep 2023 08:07:56 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14D3CC433C7; Tue, 12 Sep 2023 15:07:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694531275; bh=NRangzw3TzRKp9nbKHBdApjr4HkV2c3nCyfcogKlbUg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SNma68IHmoCH8q0wU2pAt42Hu9HLzKelsY6JRUe7jwa1JR/T2ZxUAZTKTWdgHMulS j71T4FO4QPHdHMibcjR9tAkVJzXwFxgnGbDm5CSp00iLmFPgWsIQHuBVScaMziVLId hLUp095sbZ7+wLcP5ONyg8zaWa5bPcgWm3QwYAZPR5bY3QVo4G0PqllnuZuxrbr75p b7Lr1/NSvB/Wi4vLdHRxpFYlJHEKkagPFrMUv7wj5bosflQw2YhSGieiBpdcTg3sEg Rf+qIZ8CoTt2uuWHpOQj5yZ6/kBWIKyx1LJ/2+FmA70R02v1ZjjLpPuIoKY7kuEhs7 zZV3pgsKyPFQA== Date: Tue, 12 Sep 2023 17:07:51 +0200 From: Simon Horman To: Lorenzo Bianconi Cc: linux-nfs@vger.kernel.org, lorenzo.bianconi@redhat.com, chuck.lever@oracle.com, jlayton@kernel.org, neilb@suse.de, netdev@vger.kernel.org Subject: Re: [PATCH v8 2/3] NFSD: introduce netlink rpc_status stubs Message-ID: <20230912150751.GG401982@kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 12 Sep 2023 08:08:07 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email On Mon, Sep 11, 2023 at 02:49:45PM +0200, Lorenzo Bianconi wrote: > Generate empty netlink stubs and uAPI through nfsd_server.yaml specs: > > $./tools/net/ynl/ynl-gen-c.py --mode uapi \ > --spec Documentation/netlink/specs/nfsd_server.yaml \ > --header -o include/uapi/linux/nfsd_server.h > $./tools/net/ynl/ynl-gen-c.py --mode kernel \ > --spec Documentation/netlink/specs/nfsd_server.yaml \ > --header -o fs/nfsd/nfs_netlink_gen.h > $./tools/net/ynl/ynl-gen-c.py --mode kernel \ > --spec Documentation/netlink/specs/nfsd_server.yaml \ > --source -o fs/nfsd/nfs_netlink_gen.c > > Tested-by: Jeff Layton > Signed-off-by: Lorenzo Bianconi ... > diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c > index 33f80d289d63..1be66088849c 100644 > --- a/fs/nfsd/nfsctl.c > +++ b/fs/nfsd/nfsctl.c > @@ -1495,6 +1495,22 @@ static int create_proc_exports_entry(void) > > unsigned int nfsd_net_id; > > +int nfsd_server_nl_rpc_status_get_start(struct netlink_callback *cb) > +{ > + return 0; > +} > + > +int nfsd_server_nl_rpc_status_get_done(struct netlink_callback *cb) > +{ > + return 0; > +} > + > +int nfsd_server_nl_rpc_status_get_dumpit(struct sk_buff *skb, > + struct netlink_callback *cb) > +{ > + return 0; > +} > + Hi Lorenzo, W=1 build for gcc-13 and clang-16, and Smatch, complain that there is no prototype for the above functions. Perhaps nfs_netlink_gen.h should be included in this file? > /** > * nfsd_net_init - Prepare the nfsd_net portion of a new net namespace > * @net: a freshly-created network namespace ...