Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp349594rwl; Wed, 29 Mar 2023 02:47:07 -0700 (PDT) X-Google-Smtp-Source: AKy350bsdtaLy+lRL+w7t7G+Tkg8nK/bPL+qxkXgbcOYng7A4tIhzQDkC3Oumb93wp0yyigbPZzZ X-Received: by 2002:a17:906:b159:b0:93d:b767:9fea with SMTP id bt25-20020a170906b15900b0093db7679feamr17987056ejb.31.1680083227024; Wed, 29 Mar 2023 02:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680083227; cv=none; d=google.com; s=arc-20160816; b=LEYPSiPzXYFvHzAIS5zlf/wXH2W42fWYHiIogI1S83zevR1uKvCbOFG0/a14rovmuL OYuEJeti8CqrxrR8XMDTh9IgUKtlOEJIiLbSPeKO1AHj4agMFAEL2P2NACG4WeWrbleI WyALutuOiGt8VgCviy4UtNBAc5GOW9Bm+xvdfSm3XWp+9Ei9TiAEfkUQE8lGu3MEcV3W 0K+AA1hSVBcK2dpF/jUe/BcGFIdbpUNrQEINJ6QLISIOidaAFlwjCt9pbeCgbujs65N9 F4nEXqrf8ymPujex1XvvvGvy9XLlIfjo0hp1JiyF3soMk0O0ofP9HULYL20p0JXseghk 4+xw== 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 :dkim-signature; bh=Ig6sqEZUrYn/QAvnNzag4XDKU7oCgIVDyMP94kyTyUw=; b=VERhqXKj30ZY/80esw8raPqlQbRrs8jpTuouVk/3u+24yM+vbZgNpK80qJrm6aA6lR E3/P1+DFk/xM8RqtRmwcBU69tKk5RIaxfhJMucMq/uePFrueCFWI599zAyd4wJy8NDsv +Qc5Nwjs9mKOh3+b8wE7OVpm5ty4jLFAvGA+1pwX+n1baSposdPpHPQq+ONsbUjeE213 voiy3Ms+TgkiV6jFeh89XEE7Y9XWCSAponUDLqTL0HRKnteqBAu5OXvohokaI2uVGoj0 RlwQA+pzh2SLtWqgmOOfOVDGQE3getSKAN6KkT73p1JudFyirVKLW//Twd0uB/wDJy9u 0vvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=mMEQjGmO; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=yKDdmpat; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wt12-20020a170906ee8c00b009354991f96bsi25773037ejb.739.2023.03.29.02.46.42; Wed, 29 Mar 2023 02:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=mMEQjGmO; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=yKDdmpat; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230472AbjC2JoN (ORCPT + 99 others); Wed, 29 Mar 2023 05:44:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjC2JoM (ORCPT ); Wed, 29 Mar 2023 05:44:12 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34F0E9B for ; Wed, 29 Mar 2023 02:44:11 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E2BC01FDC3; Wed, 29 Mar 2023 09:44:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1680083049; h=from:from:reply-to: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=Ig6sqEZUrYn/QAvnNzag4XDKU7oCgIVDyMP94kyTyUw=; b=mMEQjGmOUAbSDbllnpzbEJzevfkxfb9g6gM5+iO9pAn8zfBqif/sNFECmZzTq+rmOzIGDR 7b5mJtlqF9gaecEeM8q5y5UNd9h+JfyyRy+scYfff1Lqmj5MJkViiKnXWYH3GrKeUeCSML rMFiAAYiRnTdlqhlBd6PX+7RCrnLuDc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1680083049; h=from:from:reply-to: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=Ig6sqEZUrYn/QAvnNzag4XDKU7oCgIVDyMP94kyTyUw=; b=yKDdmpat9gOhjC6Rb1B7ZnLXpxmtrjxmcjH7789s3TpG6KjdJtpwC///YYCtg764jCsAIq V5MZRnx63zpTbjDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B9F9A138FF; Wed, 29 Mar 2023 09:44:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id G3BXLWkIJGRRDwAAMHmgww (envelope-from ); Wed, 29 Mar 2023 09:44:09 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id B94EAA0729; Wed, 29 Mar 2023 11:44:07 +0200 (CEST) Date: Wed, 29 Mar 2023 11:44:07 +0200 From: Jan Kara To: Luis Chamberlain Cc: Arnd Bergmann , Jan Kara , Yangtao Li , Arnd Bergmann , Christian Brauner , Seth Forshee , Dave Chinner , Roman Gushchin , Baokun Li , "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] fs: quota: avoid unused function warning for !CONFIG_SYSCTL Message-ID: <20230329094407.cpypyfqdwrf7egco@quack3> References: <20230328122244.2521387-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=unavailable 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 On Tue 28-03-23 10:48:20, Luis Chamberlain wrote: > On Tue, Mar 28, 2023 at 02:22:31PM +0200, Arnd Bergmann wrote: > > From: Arnd Bergmann > > 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. Ah, indeed, register_sysctl_init() is exactly what we need here. I didn't know about that helper. Thanks for letting me know. Honza -- Jan Kara SUSE Labs, CR