Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp702494rwa; Sat, 20 Aug 2022 12:14:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR7xfbM9w3As9MFKV6ODqVVgsW6+QuBg9PafMi2RtmKN/+KEeB7YbdTvlQkmosakLp8X80Bx X-Received: by 2002:a17:907:b05:b0:73d:68a6:2c5a with SMTP id h5-20020a1709070b0500b0073d68a62c5amr1917214ejl.245.1661022851312; Sat, 20 Aug 2022 12:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661022851; cv=none; d=google.com; s=arc-20160816; b=zED1q5ZlwZMbY4CzqZUG62Pm/izOJAyEpk3vXaAGVol61+32i6unYO5exNN8/Nr0Av GUTbXMat5wbiRVAFrd8AE750Bcr5NqaloTYaiqJgAge5+S1x2tna8HUu+MMoEcTKWJQo 7N4hDgMV/ytBcqifKy7HfTioURna5K1a12whtPb0jZOIfhdGDhgo7xz2FJpeA5pfuWh+ okEF/2Ifi6dx7bEQnJKQ7nNo72HwNxyt6FYk6EVAgg+m08MDuCrnAshdqMZ4Az/mLyaV P5CBF8yyp1XvmvfK5G8bTcMiJAoD8m1KCvpWbUuKKU/E5Kwh66YJjl4irfpAmFKFYn7z /E/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SWbuyFbh1UJYacxY4nyXXaBtgqEVhO0YpLGHVTzr1T0=; b=nVRUhPUKQV8SsJjFFMq/JrnOU31VOzxZJSyfYZIjiU5f/DGAEDFCioGoVS6KdJCBjd RFaWkvDfViEDrcb4B80UjjyGvjfW9cP9YjELPhusBv6emKpDO9esphXiPLumpDZda8XI JBjmhVEdAxcMcsM3Xm9L6wrQDSHWrWeGBvBw3AS0BKeRBeaziRR7WEGpiR4A2n/7pgFf XnfbBRKUV39OkP+/PL1jW1EiPsJ0VgWd2fmLgLrfCM65l5LI8VP7eNTX7jLOojkmVb6C k5z5Ht+jKVLYupzqkN3CHEW2pkNanmiPvtUW61F/u/rjyvejy9wf9XeqNOd0a+spiGvH vcqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p+qVmwUV; 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 o12-20020a056402438c00b0043d476f96c1si1508846edc.86.2022.08.20.12.13.43; Sat, 20 Aug 2022 12:14:11 -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=@kernel.org header.s=k20201202 header.b=p+qVmwUV; 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 S229812AbiHTTHb (ORCPT + 99 others); Sat, 20 Aug 2022 15:07:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbiHTTH3 (ORCPT ); Sat, 20 Aug 2022 15:07:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C6D63F1DF for ; Sat, 20 Aug 2022 12:07:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 85B84B80AAD for ; Sat, 20 Aug 2022 19:07:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D08DBC433D6; Sat, 20 Aug 2022 19:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661022444; bh=stTxl3TjHABFzC0L3I/66L8wQuAor5Arb2kJ4m3gUtQ=; h=From:To:Cc:Subject:Date:From; b=p+qVmwUVcZnQ40lSXspYH2AZu1vZRygVjd/L95nfzcOvCJR5i1RplOHtTdqRNOiN0 IqrJMB6tTQH1MIa6oOS+x17DwAjxHVY4a+emXFf7XnnTF5cIuZCN7FYsrrslZmL/XT VFYDFeguj6mafSdGFRWUeMzErosrz5e/u/0ncpgttyxzOaWiZNQlcBeBr38PHGe9XI RSQGxg+EkXHjXs1ZrfVEs4Kk+JOsmBVT8yk+kkHE+03MHuH4rCXpsI7f/jUIXYrRNT CQiVIklMswA8olR6lfhrnDhZI9rkv0rDZpJ0Gmr+ytiqpT3gECCPKA67d0guZ61kLJ jYFAcGpLpZXPQ== From: SeongJae Park To: akpm@linux-foundation.org Cc: aneesh.kumar@linux.ibm.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH for-mm-unstable] kernel/sched/fair: include missed header file, memory-tiers.h Date: Sat, 20 Aug 2022 19:07:20 +0000 Message-Id: <20220820190720.248704-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Commit f66f3c261487 ("mm/demotion: update node_is_toptier to work with memory tiers") of the 'mm-unstable' tree moved the declaration of 'node_is_toptier()' from 'node.h' to 'memory-tiers.h' but didn't include the header in a source file using the function, 'kernel/sched/fair.c'. As a result, build fails as below: linux/kernel/sched/fair.c: In function ‘should_numa_migrate_memory’: linux/kernel/sched/fair.c:1571:7: error: implicit declaration of function ‘node_is_toptier’ [-Werror=implicit-function-declaration] 1571 | !node_is_toptier(src_nid)) { | ^~~~~~~~~~~~~~~ cc1: some warnings being treated as errors This commit fixes the error by including the missed header file. Fixes: f66f3c261487 ("mm/demotion: update node_is_toptier to work with memory tiers") on mm-unstable Signed-off-by: SeongJae Park --- kernel/sched/fair.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index d642e9ff2829..0e3e08a093d4 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -40,6 +40,7 @@ #include #include +#include #include #include #include -- 2.25.1