Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4758550rwl; Tue, 28 Mar 2023 10:54:04 -0700 (PDT) X-Google-Smtp-Source: AKy350aC/G5Q5syLwS50G8EV7yCBmvCa3AhHrv8Tvzf+eOW9Mif20UNgTL9SliJviHIxyUWys10m X-Received: by 2002:a17:906:4a4e:b0:889:1eb1:7517 with SMTP id a14-20020a1709064a4e00b008891eb17517mr18889828ejv.30.1680026043973; Tue, 28 Mar 2023 10:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680026043; cv=none; d=google.com; s=arc-20160816; b=0sDupVxfvvr4Tm5qf3RXANu48GSW5t/nXaRGUyYzRq7lBEJkGcjS5zgL+FTJMM3cEa WBGgAJ9rT8grCuw8bA+NC9M7M2Wyrqkytpi6EsFp+90FpzGCUrNr1TQb+/Yf1TJoEXrh sUmppZY0NZ7P3K9KSaWNOWDCd0O0n6+CWkIaOtpjr+Vr+gcne5woI1Gj9+cpXwXoZXNJ EAPzGfTkmWXhS2D7czB7NQoMadkywVITwPBpHP9uwepFduQVoj16/UYoRhgFtPN8nM2w WTL/tEnrxOt0Wa/bpdG0kAcerxdP08tY+p7yAUTRQXIl652VJft4z9lYLoi7dErKgStO RZ1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=VFaciPaePZVej+tCKBMHtsjAZ53gqGo22KKn0gPVud8=; b=SPAcS9wvi1gc4DgOFvFji8O0qJuqjgFmFnUjT8CYoiLI2jQuXIeRgjxlqHfYw6FGPs gbBojfYmWJpJQk4e/zMHJ6UHBD09HwbC/1YmlWcWpqRgjJp1OJVQ+nINRKp7bj3l8sdm 8skQis143NgjyN9nism5+0po7TmpvwgKwveJbN37625eJBv8SaNX2SndX9Kznae9+d2U kK+zpO6Fqa5oroOYlUFR76/f/frgC1pKA1+IWGqfdtsgXsuReV/LyHBFKxPsXPduX26n syv01k4I9BBhseLU/gKj1gb4o+UyaH4156kY64brPbNVNHJWOIuRHkL4NZsYkpMgr/W6 jrxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=H3330iUf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg9-20020a170907a40900b0093e3a33d7easi13999535ejc.451.2023.03.28.10.53.39; Tue, 28 Mar 2023 10:54:03 -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=@infradead.org header.s=bombadil.20210309 header.b=H3330iUf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229740AbjC1Rsm (ORCPT + 99 others); Tue, 28 Mar 2023 13:48:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbjC1Rsk (ORCPT ); Tue, 28 Mar 2023 13:48:40 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00E2EE19B for ; Tue, 28 Mar 2023 10:48:33 -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=VFaciPaePZVej+tCKBMHtsjAZ53gqGo22KKn0gPVud8=; b=H3330iUfMaCaTnfPtCIJO1d4Bh Tvl63zioGJhmKL0ble0lR2ejt0TQDCg6P907xTVAeqKkjMOPHBvmLhTskSPFx8xqgK4h3pZjRAxBe QPDm9SBO6jKH7613NSMQXzSS6FiqRTD68/ZcrndKu2bPrq4i/+MuFVQM6WwcQXVtShK6Ydv4a0BFO MQLL0/ne5sap6m66nqM0QwwlD/W3SU0AXx5eT+qs09tgc+5BQkNBZzRoWOELsuAU2lhsZ+fRl58px eLTZu0ZHc+30TOMrA+jMNWRIHkqvBDG02fQiPsktiuSZylexafMifbIwY4EpiQROkw8vcYshkdQZS rQCZS7Hw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1phDQi-00FMn5-1B; Tue, 28 Mar 2023 17:48:20 +0000 Date: Tue, 28 Mar 2023 10:48:20 -0700 From: Luis Chamberlain To: Arnd Bergmann Cc: 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: References: <20230328122244.2521387-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230328122244.2521387-1-arnd@kernel.org> Sender: Luis Chamberlain X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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, 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. Luis