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 2E191C001E0 for ; Thu, 27 Jul 2023 15:51:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233645AbjG0PvC (ORCPT ); Thu, 27 Jul 2023 11:51:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbjG0PvB (ORCPT ); Thu, 27 Jul 2023 11:51:01 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91ACB26BC; Thu, 27 Jul 2023 08:51:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=whKeVZWLhmUYByq+U/YnOMvphcGTOrmTTlmTUFROnf0=; b=boxukzui/wv967gWjsN1nu1vL8 BbCpncLGebuycMF8caT1clC2fsrYVjiVM2mc73Opka5/x758sffC01xiM2lgIPMU7frfQ4an8355L 6+cYY589IjVE6RaneL/6XS4S7mPu9V8ToD7AIcDHPMKgNE1TRdiz99eJrk6NwcR29dszNgH5KzV95 Zng3e1ahmT86WH2d71zAVZAaZi6NxUvKJv9JemqyJAnAUuB+C4nVfSTBVhORdn9XVkr+ti2OUmFRK P+afcJV6rmETsrWIsClJ92ibmNFp+TtQ6wTN+o+L23yUuHRnpRejf2FVeu34FxgLQMai+yYiG4uJN FDfIH3ZQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qP3GL-00G8P5-09; Thu, 27 Jul 2023 15:50:49 +0000 Date: Thu, 27 Jul 2023 08:50:49 -0700 From: Luis Chamberlain To: Joel Granados Cc: Joerg Reuter , Ralf Baechle , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , willy@infradead.org, keescook@chromium.org, josh@joshtriplett.org, linux-hams@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/14] ax.25: Update to register_net_sysctl_sz Message-ID: References: <20230726140635.2059334-1-j.granados@samsung.com> <20230726140635.2059334-10-j.granados@samsung.com> <20230727153804.vjsofabjbkkfat25@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230727153804.vjsofabjbkkfat25@localhost> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 27, 2023 at 05:38:04PM +0200, Joel Granados wrote: > On Wed, Jul 26, 2023 at 11:00:37AM -0700, Luis Chamberlain wrote: > > On Wed, Jul 26, 2023 at 04:06:29PM +0200, Joel Granados wrote: > > > This is part of the effort to remove the sentinel (last empty) element > > > from the ctl_table arrays. We update to the new function and pass it the > > > array size. > > > > The commit log does not explain why. It also does not explain if there > > is any delta on size at compile or runtime. > Just to be on the same page: > You mean the specific why for this commit. like for example: > " > We update to register_net_sysctl_sz I think it is clearer to just say: Move from register_net_sysctl() to register_net_sysctl_sz() > to prepare for when the ctl_table > array sentinels are removed. That is not as clear. I think you should just spell it out. We want to use the syctl ARRAY_SIZE() when possible, and subsequent patches ... now the register_net_sysctl() while register_net_sysctl_sz() and this user and so we must use register_net_sysctl_sz(). > " > > right? Luis