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 3EACBC761A6 for ; Wed, 29 Mar 2023 08:51:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231309AbjC2IvP (ORCPT ); Wed, 29 Mar 2023 04:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231269AbjC2IvH (ORCPT ); Wed, 29 Mar 2023 04:51:07 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 072B94495 for ; Wed, 29 Mar 2023 01:50:40 -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=e5tA8e6Rq5IwjYRoES39AKzgJsaOL1PNlGaNEuxuSls=; b=sWSd8GK8NgS3mwvhKkk5UU60DL 6VYlzhrKeVpDukC3hI+hgNmvegOJXMWNu5TEn4Y1bJcdkeJ9/2Ut9HuA8o613+biAgpnBhJJIIf+Q lJOuoQtyvtNqE9lw/ScdNMnsNbMb0k0U9xjK2GoTaVapuWDpQ6phU6HTsZeRQYy+DNJcC9Wgnel9M F36iUDnN1NxYsmUUgVuLJCDxcRUb0FNRS8EJarc8scJCpectqbSfXYPFpxP82NuTsgPAZ8zJON/PL e11vkI/VLdfW6MjpK8dc0HQG0yjrrx1s7xoAzuvbB2F26R0tF6B7+YEgPHoghboChnIOrrndTXb4S VwPkVqYw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1phRVf-00HBUN-0H; Wed, 29 Mar 2023 08:50:23 +0000 Date: Wed, 29 Mar 2023 01:50:23 -0700 From: Luis Chamberlain To: Arnd Bergmann Cc: Andrew Morton , Minghao Chi , Vlastimil Babka , Arnd Bergmann , Miaohe Lin , Baolin Wang , Mel Gorman , "Matthew Wilcox (Oracle)" , Kefeng Wang , NARIBAYASHI Akira , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: compaction: remove incorrect #ifdef checks Message-ID: References: <20230329080248.2543492-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230329080248.2543492-1-arnd@kernel.org> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 29, 2023 at 10:02:41AM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > Without CONFIG_SYSCTL, the compiler warns about a few unused functions: > > mm/compaction.c:3076:12: error: 'proc_dointvec_minmax_warn_RT_change' defined but not used [-Werror=unused-function] > mm/compaction.c:2780:12: error: 'sysctl_compaction_handler' defined but not used [-Werror=unused-function] > mm/compaction.c:2750:12: error: 'compaction_proactiveness_sysctl_handler' defined but not used [-Werror=unused-function] > > The #ifdef is actually not necessary here, as the alternative > register_sysctl_init() stub function does not use its argument, which > lets the compiler drop the rest implicitly, while avoiding the warning. > > Fixes: c521126610c3 ("mm: compaction: move compaction sysctl to its own file") > Signed-off-by: Arnd Bergmann Thanks! Queued up. Luis