Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3489839rdh; Thu, 28 Sep 2023 13:14:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsdqzooA8OfBNlNtJqbuCoMCXIrUTyi4q7orFijjDXyE53G5gKfmecl1IFcRPP5ucy3f4J X-Received: by 2002:a05:6358:9218:b0:13a:4f34:8063 with SMTP id d24-20020a056358921800b0013a4f348063mr2162338rwb.32.1695932094194; Thu, 28 Sep 2023 13:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695932094; cv=none; d=google.com; s=arc-20160816; b=FlK59H8XjHi+9rqEqviw83veKynL0HB1II4QEM2W1qnYl4qXSn8xLE522adNQazYoG mZyNrhlSfN4tyk+78lUi1JVkGrJpDA2U465AMQYOFJ1erlZxFSrHQDGBbC/UggUSrbZP pPbnKZnSiZjjlYMO1OPtr2X2OeoJvDXPTWv2nq/3Yhc1faknzjA7b2jsPQnv08Ay2Kc4 amhCxGLPWu+g+hEz2gVkB4JIpTBVg0hl//SF4tstBDf+Lw8zGK1KdcwqlpdFjD/PNBzs Wwtm1fwdewgC5MUYzcwDt/r5d4nEG4G2TszRDtaedA//QsH/38tnqdIFTVEv5Iz6svzV GYtg== 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=IFFfdUq9U5b8POcCnKQd8EEG5Jvz6lcGq8NZVMNDUA0=; fh=0oyY8wYQiW3UKiGd0z1Xe/tzD5PtJQEfXQ6FylmL2g8=; b=ejGYRzENh5Wfnjgz8cR8Ryp3M/J8JhYkUaM+a0gmSWp55ypVwOfhZ4VQBuoJ75sopR DzZqXqjINRWONkfaCSzJIRFRj4KxCnJJaseYTXegWDkJ82gRXwcVLrPwqcJFWUFTNNyK zjIhbb5iCUsfrCHGeG/HGcVSm2tgDyEISyqLiNVBQLHedAjNF4fH9BvnnZJn/A564FpU UJWzitQI2Xfkn78GHNTfXoLv5s0C6cgQ8kRWYcP/ixa+rM07ydWZjtUXtWZCsdMlzv5i kOZNQ2htR9HrNXZoO0effWKPcIY3lEIXGT5MaOM68znqcbpxkUjuTLP2YPULyBjYz9o5 enMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fQY4RQBX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id v135-20020a63618d000000b0056401aef836si19149852pgb.822.2023.09.28.13.14.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 13:14:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fQY4RQBX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 73480820E506; Thu, 28 Sep 2023 06:37:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232165AbjI1NhE (ORCPT + 99 others); Thu, 28 Sep 2023 09:37:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231868AbjI1NhD (ORCPT ); Thu, 28 Sep 2023 09:37:03 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5244519B; Thu, 28 Sep 2023 06:37:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30ED8C433C8; Thu, 28 Sep 2023 13:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1695908220; bh=+wQRUm2msRT1Vv6LzHjx16q1r07oTZukLX6w4Q72cRo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fQY4RQBXMdvdqFGAIafv/Phk7Y1oE+EJjzKjC3TRuINAbWxqzcqLPwyX0a9VAn7db lrLv0OwYBTVD2TtgiIEZJRfo0bKqoMi2GBhCLXf4v+k2xekgAHOfI6frhHYfLI3c4k s478XPbm0PhMMeW0NqTPzj3Xl+SvTPCIBgs7SdE0= Date: Thu, 28 Sep 2023 15:36:55 +0200 From: Greg Kroah-Hartman To: j.granados@samsung.com Cc: Luis Chamberlain , willy@infradead.org, josh@joshtriplett.org, Kees Cook , Phillip Potter , Clemens Ladisch , Arnd Bergmann , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Jiri Slaby , "James E.J. Bottomley" , "Martin K. Petersen" , Doug Gilbert , Sudip Mukherjee , Jason Gunthorpe , Leon Romanovsky , Corey Minyard , Theodore Ts'o , "Jason A. Donenfeld" , David Ahern , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Robin Holt , Steve Wahl , Russ Weight , "Rafael J. Wysocki" , Song Liu , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, linux-serial@vger.kernel.org, linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-rdma@vger.kernel.org, openipmi-developer@lists.sourceforge.net, netdev@vger.kernel.org, linux-raid@vger.kernel.org, linux-hyperv@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array Message-ID: <2023092855-cultivate-earthy-4d25@gregkh> References: <20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com> <20230928-jag-sysctl_remove_empty_elem_drivers-v1-1-e59120fca9f9@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230928-jag-sysctl_remove_empty_elem_drivers-v1-1-e59120fca9f9@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 06:37:13 -0700 (PDT) On Thu, Sep 28, 2023 at 03:21:26PM +0200, Joel Granados via B4 Relay wrote: > From: Joel Granados > > This commit comes at the tail end of a greater effort to remove the > empty elements at the end of the ctl_table arrays (sentinels) which > will reduce the overall build time size of the kernel and run time > memory bloat by ~64 bytes per sentinel (further information Link : > https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) > > Remove sentinel element from cdrom_table > > Signed-off-by: Joel Granados > --- > drivers/cdrom/cdrom.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c > index cc2839805983..451907ade389 100644 > --- a/drivers/cdrom/cdrom.c > +++ b/drivers/cdrom/cdrom.c > @@ -3654,8 +3654,7 @@ static struct ctl_table cdrom_table[] = { > .maxlen = sizeof(int), > .mode = 0644, > .proc_handler = cdrom_sysctl_handler > - }, > - { } > + } You should have the final entry as "}," so as to make any future additions to the list to only contain that entry, that's long been the kernel style for lists like this. So your patches will just remove one line, not 2 and add 1, making it a smaller diff. thanks, greg k-h