[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230912150751.GG401982@kernel.org>
Date: Tue, 12 Sep 2023 17:07:51 +0200
From: Simon Horman <horms@...nel.org>
To: Lorenzo Bianconi <lorenzo@...nel.org>
Cc: linux-nfs@...r.kernel.org, lorenzo.bianconi@...hat.com,
chuck.lever@...cle.com, jlayton@...nel.org, neilb@...e.de,
netdev@...r.kernel.org
Subject: Re: [PATCH v8 2/3] NFSD: introduce netlink rpc_status stubs
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 <jlayton@...nel.org>
> Signed-off-by: Lorenzo Bianconi <lorenzo@...nel.org>
...
> 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
...
Powered by blists - more mailing lists