Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1432634lqd; Thu, 25 Apr 2024 15:58:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOC1GYDmR5Jpyjn+cxiXxqjqzI90HWcDqqt/HzuMUTfPKGitBY1LQPXwJzG8HUy/LhLfmXv41BcNApj2yQ+OD78jYDkk4IkCUBObnrfQ== X-Google-Smtp-Source: AGHT+IGRTl6tqz0oh+bv56VGxH3o/Cw10YcqPiE7UwACeargFL5NuvCNuKtaXroDkTkkh6BtHFrK X-Received: by 2002:a50:c04f:0:b0:56e:35a7:b0d3 with SMTP id u15-20020a50c04f000000b0056e35a7b0d3mr543515edd.36.1714085895504; Thu, 25 Apr 2024 15:58:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714085895; cv=pass; d=google.com; s=arc-20160816; b=Jm00tRU8cBFn8tQFFnnEIPzNIrSIiM0Jj551IBGIQLgpGf1/n9SS6abLU4HfshKPeK uiUAXG7SY7nTg7JeQ8UscG1k8cBuuoZEZi0s4bz3DBCzG8Tfig1aZZuZf1HqH8kZOXmq tqsaLPwwU/DbF5sZoCOEeTz2Ktz2wQfgUef7bprLcWX6lyoSrcUk8e8hE4iG2YBdFnY9 uJIen/bv0pucqCE5MHK1CU0cTiIyZPbT1FS8vdVm7/d9+7AiSdLEL+tyZns18zsvcQcv MHtUrWEMipfMdCGsf6D9x4uHGNwvv6Gub/+hb8Wy2BEwUYmlVldYGLsUC1ONR8FxQ2Z2 hETw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=aAIHAXdcuH8f5Nd+bjB8hMYSQdmo05sB+anM6niDDe8=; fh=rPJvfltoWGrekfxYypUPr6pnMQv2Q1yhMVwvgNXA87A=; b=Gg6xhpLlWGcdp+rwAcu4fWEwfAZmMQ99+YQj8JjYEvtgi/QlheeRUcqhGZiLLwwNRr PB4ctyLCTZP7fS3Fh4Cd90bbPhcy9rjHqzjCvU6/Eyk4uu5tAAMtK66OxTHLe4/UgYX+ z3xsLIA2HgnLgGYS4K0qwFrAj1QjPsEYXcMSI67dhxvSKUNdop1C6Oe0Ebv/rWlNgzA5 MpRCJBO5SZbPJEOk6jYvMh33eMgtYh9WXdhuG7n2dnQSKY13H5KFKukR5bZsVRjGsKNM /AFtR4ZR4NtPVyh59OBB2u4ku6sxQ/RUhwoo/hjYmcRFkVev0w9Lj6TuUrQu8KkJh41K JKUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="XQHjP+/I"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t1-20020a05640203c100b005721bd24d96si4510026edw.617.2024.04.25.15.58.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 15:58:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="XQHjP+/I"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4011A1F22140 for ; Thu, 25 Apr 2024 22:58:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85A69156227; Thu, 25 Apr 2024 22:58:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XQHjP+/I" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2895E12BF28; Thu, 25 Apr 2024 22:58:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714085889; cv=none; b=UKjIzWySvO4bE+i+R07JJinYA6FOo2fgfdBFLJ3wQsJ0Ok25V2DCMWZBkQBYtSET2LC27Og0tYkdXfrFfv03nMyQkP9h1Lncpdki3gcPrmb5lFvQhoHvgaKk2sdzBM2nGSLhUCDDRygz1qY/K/P0Xw/qlOeyUpgQChD9V6DnhaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714085889; c=relaxed/simple; bh=KZ6d6tmhKGWfhPvc5pe1zvmWKH4eLy2i/SVKQGqyco4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=c1vIRoD0mqVvzd8eT81Nx2JjmImmwuRoGApm7OfcIEB5r5siU77rQvOIqfyBWoBcXS7m1f/U+fkG12v5/s/R8XCY5r65N4mlj/rmGVwdfN2HctNxdKYVFd8toU0YMA5PjN9VHxnOPywOXT5opCRreZhCqQ36x9VUUBYu/SZ04Z4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XQHjP+/I; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3902C113CC; Thu, 25 Apr 2024 22:58:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714085888; bh=KZ6d6tmhKGWfhPvc5pe1zvmWKH4eLy2i/SVKQGqyco4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XQHjP+/IEP3Hod/NE4TIvhSjSrvdrjAy9k2SyFIAJjFzNY8+Nh3Sx4POcNt5btuMm 3im4slzGoWYkGm7TS50kvWPPVYBYIGT0/MZhkPK2muqrQmmbWC0GyjmcZ0ybOYTxW9 SMkcyLR9W1KlZ7QqBNuRE0iMGbU80vuL7IHG1jEi41QYuf83RSpP92ZQTtRVvOQLlr v3hS48+RITvJrg9TWBKbL4CriqzPOg3Tsg+Vt50QKETrvCXiqDRTehoqDAJ9x/Y1u/ a3230EtuGUq8KzmygdeZcglcAOIPu4ukSmpzRXKV2jvztr04ZgWZjoIRpRbueNQj+A zP3uYbLEZ8C/g== Date: Thu, 25 Apr 2024 15:58:04 -0700 From: Jakub Kicinski To: Joel Granados via B4 Relay Cc: j.granados@samsung.com, "David S. Miller" , Eric Dumazet , Paolo Abeni , Alexander Aring , Stefan Schmidt , Miquel Raynal , David Ahern , Steffen Klassert , Herbert Xu , Matthieu Baerts , Mat Martineau , Geliang Tang , Ralf Baechle , Remi Denis-Courmont , Allison Henderson , David Howells , Marc Dionne , Marcelo Ricardo Leitner , Xin Long , Wenjia Zhang , Jan Karcher , "D. Wythe" , Tony Lu , Wen Gu , Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Jon Maloy , Ying Xue , Martin Schiller , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Roopa Prabhu , Nikolay Aleksandrov , Simon Horman , Julian Anastasov , Joerg Reuter , Luis Chamberlain , Kees Cook , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, dccp@vger.kernel.org, linux-wpan@vger.kernel.org, mptcp@lists.linux.dev, linux-hams@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-afs@lists.infradead.org, linux-sctp@vger.kernel.org, linux-s390@vger.kernel.org, linux-nfs@vger.kernel.org, tipc-discussion@lists.sourceforge.net, linux-x25@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, bridge@lists.linux.dev, lvs-devel@vger.kernel.org Subject: Re: [PATCH v4 1/8] net: Remove the now superfluous sentinel elements from ctl_table array Message-ID: <20240425155804.66f3bed5@kernel.org> In-Reply-To: <20240425-jag-sysctl_remset_net-v4-1-9e82f985777d@samsung.com> References: <20240425-jag-sysctl_remset_net-v4-0-9e82f985777d@samsung.com> <20240425-jag-sysctl_remset_net-v4-1-9e82f985777d@samsung.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 25 Apr 2024 14:02:59 +0200 Joel Granados via B4 Relay wrote: > - for (i =3D 0; i < ARRAY_SIZE(mpls_table) - 1; i++) > + for (i =3D 0; i < tabel_size; i++) > table[i].data =3D (char *)net + (uintptr_t)table[i].data; > =20 > net->mpls.ctl =3D register_net_sysctl_sz(net, "net/mpls", table, > - ARRAY_SIZE(mpls_table)); > + tabel_size); ../net/mpls/af_mpls.c: In function =E2=80=98mpls_net_init=E2=80=99: ../net/mpls/af_mpls.c:2676:25: error: =E2=80=98tabel_size=E2=80=99 undeclar= ed (first use in this function); did you mean =E2=80=98table_size=E2=80=99? 2676 | for (i =3D 0; i < tabel_size; i++) | ^~~~~~~~~~ | table_size ../net/mpls/af_mpls.c:2676:25: note: each undeclared identifier is reported= only once for each function it appears in ../net/mpls/af_mpls.c:2660:16: warning: unused variable =E2=80=98table_size= =E2=80=99 [-Wunused-variable] 2660 | size_t table_size =3D ARRAY_SIZE(mpls_table); | ^~~~~~~~~~ --=20 netdev FAQ tl;dr: - designate your patch to a tree - [PATCH net] or [PATCH net-next] - for fixes the Fixes: tag is required, regardless of the tree - don't post large series (> 15 patches), break them up - don't repost your patches within one 24h period pw-bot: cr