From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F918CA0EF1 for ; Tue, 12 Sep 2023 15:08:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236173AbjILPIK (ORCPT ); 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 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 ...