From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D1B4208D1 for ; Thu, 14 Sep 2023 11:25:12 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9D3AD1A5 for ; Thu, 14 Sep 2023 04:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694690710; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f2hDyfU1b40FQL9fZS1RPzUCtY8X09ykI8Ju0Dyg2s4=; b=RrzOrImjZNl58OV+uLkx4jENE3AteTYeVfF/7FanehJ+c6/PtMKkUp1aSciZ7rP1s8dGvE pyuJrrmGtalIuj6ZD0LmWwaS9beWFXAfuwn3xXNfygZXaSC9o4wjc0TKAQlYSKPd8++MPb pcdiERm7Ejnl43ic2cd+C4y3tDTaE9E= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-572-Jj6Os8kgPti-NjVoNAqyuQ-1; Thu, 14 Sep 2023 07:25:09 -0400 X-MC-Unique: Jj6Os8kgPti-NjVoNAqyuQ-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-402d1892cecso4041065e9.1 for ; Thu, 14 Sep 2023 04:25:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690708; x=1695295508; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=f2hDyfU1b40FQL9fZS1RPzUCtY8X09ykI8Ju0Dyg2s4=; b=AjMfSmzh/OmNdBNwzzkgIGkiVk+R8myKQW7DPd7FRG9lUzr7lpBw62+t1m2kXfgLkP MNh/Y+sYvWQiJgnENr7/D/LZAOYLE3VU8Ae372Eh9tKkd9nvJgb02RZkrGdrKkEBeolJ NZxoXSaU6UX9iI2j5H7pIl1woxM6vwvLdhfM0aX0whix8v9dmKhJsN1Dt6wA0lOxZQfD pLB3F3K1KPmJhSf/Pz2ecPHD1EqfA8APyy8I4hOHKMJifWt2yDFYwzOER1tkTpN60i9C rzp/YY6FsFm2QFTEUj+yFwOGYfxwLK/S2eY441WSwOmFGaHTLZPENWRYVtMRf6aCMQY2 p2YA== X-Gm-Message-State: AOJu0YwfzFPBIRESkkPTk6k7s1bpb83v7RM0M6UHRHjuHT7x2rYlZX78 ZIJTsyLCprqzCeJhACiJscnI1UvtLJP0yU/ayOV9qVTb/4ytHxWEMm0bfkss/91Ziyj9RBDChML ktIb9onerU9BRuaJ2 X-Received: by 2002:a1c:7914:0:b0:401:cf93:3103 with SMTP id l20-20020a1c7914000000b00401cf933103mr1318293wme.0.1694690707973; Thu, 14 Sep 2023 04:25:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeFx36SStVfKBMMDHBKgIzhzB5r3kokl/1wHGsMUlr+ymY6Q9E2do/WpDXYQ0ZJ6kuhRh10w== X-Received: by 2002:a1c:7914:0:b0:401:cf93:3103 with SMTP id l20-20020a1c7914000000b00401cf933103mr1318272wme.0.1694690707641; Thu, 14 Sep 2023 04:25:07 -0700 (PDT) Received: from localhost (net-2-34-76-254.cust.vodafonedsl.it. [2.34.76.254]) by smtp.gmail.com with ESMTPSA id g13-20020a7bc4cd000000b003fc02e8ea68sm4592932wmk.13.2023.09.14.04.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:25:07 -0700 (PDT) Date: Thu, 14 Sep 2023 13:25:05 +0200 From: Lorenzo Bianconi To: Simon Horman Cc: Lorenzo Bianconi , linux-nfs@vger.kernel.org, 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: References: <20230912150751.GG401982@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tNrImtEzFl/+ZPIv" Content-Disposition: inline In-Reply-To: <20230912150751.GG401982@kernel.org> --tNrImtEzFl/+ZPIv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > On Mon, Sep 11, 2023 at 02:49:45PM +0200, Lorenzo Bianconi wrote: > > Generate empty netlink stubs and uAPI through nfsd_server.yaml specs: > >=20 > > $./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 > >=20 > > Tested-by: Jeff Layton > > Signed-off-by: Lorenzo Bianconi >=20 > ... >=20 > > 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) > > =20 > > unsigned int nfsd_net_id; > > =20 > > +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; > > +} > > + >=20 > Hi Lorenzo, Hi Simon, >=20 > W=3D1 build for gcc-13 and clang-16, and Smatch, complain that > there is no prototype for the above functions. >=20 > Perhaps nfs_netlink_gen.h should be included in this file? actually I added it in patch 3/3. I will move it here. Thx. Regards, Lorenzo >=20 > > /** > > * nfsd_net_init - Prepare the nfsd_net portion of a new net namespace > > * @net: a freshly-created network namespace >=20 > ... >=20 --tNrImtEzFl/+ZPIv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCZQLtkQAKCRA6cBh0uS2t rD2bAP9KyJWMYFncdne90PW4IGot6TyXx3FF+H0CswJ8iOn+tAD/XuoGLCi6X2uz oxQQZq2NdKdcICP1rk6TSwFnlDNglwo= =5wyb -----END PGP SIGNATURE----- --tNrImtEzFl/+ZPIv--