Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3966237rdb; Thu, 14 Sep 2023 08:02:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEF3VuUtfGrbhOuQNEONXvMTS5nnfMoIauiK95IdCxjV0/QJj8xL7MWpj8hTEjwfMhdf4Ne X-Received: by 2002:a05:6e02:12c8:b0:348:ac7f:69a2 with SMTP id i8-20020a056e0212c800b00348ac7f69a2mr7178422ilm.15.1694703758328; Thu, 14 Sep 2023 08:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694703758; cv=none; d=google.com; s=arc-20160816; b=n8JLRx428Ag6us61S6gQgLt8sqWV/ccUD/Lj3xRpMiX09P820EWb5a/WXJ3HjQBodl k6E8E71qAGz9/d0GBmyP6R2+LPwhQKsDCWvWMmxJHBbYLm/iHTcH0cCSjHPebHRz/YZq a7HvBg0oCeoqml/b8wX775sm2+zWHo9lQgqJhT3c3mvYn7vAJs/D1fnjiqeL/PgHhDIu BNXE048jEj4cpsMTZyorYFftWnYTWJVT+7sVOW0JsOEPQE58wh8Lv1euuX4oK4jHXgPa m6+NfwLMK/WUIf70CGd0/JLrK3girFYJ1cnfQI2dj174Qe6urKPmo/InqznShvKyP2uo z3dg== 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=f2hDyfU1b40FQL9fZS1RPzUCtY8X09ykI8Ju0Dyg2s4=; fh=w8fe5nKQqtKJVtsdCXVR7HwaFnfwafGsQ780FJgPcyk=; b=j79sGKjdpGf6RXH9gfH74ca7VyE7ua9xyW4iKr99yASX+PKRuyRSb/vTx0K4565GAc y0epgJ/3A4jmOMMfjMXWxMeXaAmKT0mxnefH0+X+ctzyWoIo1HqKx7fSwfmlXY/x5wDT N1knBrfEo/b3FKAwYpIhyrRdi6Gex7oj2kofS9wEiinfZIPzoEoiLyePeWKBE4bDa0S6 f6WxO+RJbYXE7ofGYHPTjdfhvIpFD0YN4hFrhWtVUlj2w7UfIqVwnvHnL9Gj77w0fKVs l3O2xrpP27HGnBZNAfyqcePJjki85Luf3lqhH9qUtKmjruzCdN57Z5m/IQXNqGdkDFqZ 9fAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RrzOrImj; 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=redhat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id m14-20020a637d4e000000b00563f4e46f7esi1614389pgn.287.2023.09.14.08.02.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 08:02:38 -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=@redhat.com header.s=mimecast20190719 header.b=RrzOrImj; 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=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D746E810EC0F; Thu, 14 Sep 2023 04:26:05 -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 S238065AbjINL0I (ORCPT + 99 others); Thu, 14 Sep 2023 07:26:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237579AbjINL0B (ORCPT ); Thu, 14 Sep 2023 07:26:01 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6384AE3 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-641-S5GAtyXrOQ-1OL4fsoNasQ-1; Thu, 14 Sep 2023 07:25:09 -0400 X-MC-Unique: S5GAtyXrOQ-1OL4fsoNasQ-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-402d1892cecso4041055e9.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=FRv8oOZ1vUQfjiFuNDsOGvinaqy5yebKcFcELTgoKeHiYqR7AP0x21gtkub5DQyvD9 yuJ2QC8o6GibcRRUFgex4Dlx8ZlIFsflaX7zMTSmQYps6uh5F4Lun57yY2x1wRkLtRDv h0aOOlf1I67BTj1GP088QpPvKfSSgGMDAcIMGFSzbthoxM+uf8/Lpiqdaa23PqjmkpDe 5cWaN+wseLCmBNg0oNdcECXmSAELm6ToW5fSKpuGuf4He7g5KyPe/E4+hollNgyNAIS6 sODJ9k+0GwfCyMIxcXpua7RcwF4T/R/y+4buTpjnCGsGabcj7QqiM84sxHeNlNCCxWqi VqMA== X-Gm-Message-State: AOJu0YxWnCSczqNP0+8RcvHITlq7KeQ6MCJiqZinvK9L8Ip19TLAAfFX m5Pvx0dW+Dw3YqK/OM46Npo1s3VzCVQ9778zEzeUw5S+KKV6ryIK40ngFy2GZ3Ldq9DZccp3siA dYKth2jaRQ4MFNFGO7fAS X-Received: by 2002:a1c:7914:0:b0:401:cf93:3103 with SMTP id l20-20020a1c7914000000b00401cf933103mr1318290wme.0.1694690707948; Thu, 14 Sep 2023 04:25:07 -0700 (PDT) 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> 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> 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]); Thu, 14 Sep 2023 04:26:06 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 --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--