[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZCMoZMftUgg7Mrv2@bombadil.infradead.org>
Date: Tue, 28 Mar 2023 10:48:20 -0700
From: Luis Chamberlain <mcgrof@...nel.org>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Jan Kara <jack@...e.com>, Yangtao Li <frank.li@...o.com>,
Arnd Bergmann <arnd@...db.de>,
Christian Brauner <brauner@...nel.org>,
Seth Forshee <sforshee@...italocean.com>,
Dave Chinner <dchinner@...hat.com>,
Roman Gushchin <roman.gushchin@...ux.dev>,
Baokun Li <libaokun1@...wei.com>,
"Matthew Wilcox (Oracle)" <willy@...radead.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fs: quota: avoid unused function warning for
!CONFIG_SYSCTL
On Tue, Mar 28, 2023 at 02:22:31PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
> Note: it may be better to just revert the 63d00e08515b patch, as the
> -#ifdef CONFIG_SYSCTL
> - if (!register_sysctl("fs/quota", fs_dqstats_table))
> - pr_notice("quota sysctl registration failed!\n");
> -#endif
> + if (IS_ENABLED(CONFIG_SYSCTL)) {
> + if (!register_sysctl("fs/quota", fs_dqstats_table))
> + pr_notice("quota sysctl registration failed!\n");
> + }
I'd agree to drop that patch and instead just use register_sysctl_init()
iwht Arnd's strategy.
Luis
Powered by blists - more mailing lists