From patchwork Sat Aug 20 19:07:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12949777 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 320D2C25B08 for ; Sat, 20 Aug 2022 19:07:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4732E8D0002; Sat, 20 Aug 2022 15:07:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 422678D0001; Sat, 20 Aug 2022 15:07:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2EA198D0002; Sat, 20 Aug 2022 15:07:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 18C808D0001 for ; Sat, 20 Aug 2022 15:07:28 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id D974EAB1FB for ; Sat, 20 Aug 2022 19:07:27 +0000 (UTC) X-FDA: 79820904534.05.44B41E9 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf01.hostedemail.com (Postfix) with ESMTP id 83060400F7 for ; Sat, 20 Aug 2022 19:07:27 +0000 (UTC) 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 9BD67B80AB2; 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661022447; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=SWbuyFbh1UJYacxY4nyXXaBtgqEVhO0YpLGHVTzr1T0=; b=itnILwGaPJ8ut+ZKcLfpLd4QGO4eTLst/R8LvB4gE/QEXFOU3hwxWuGJlDcSVIC32AsDrd rKCsIeImWaBrKSsQGUqy1DMCy6lqnGyMeZQzt5vCMLoASpfDJAAHIT+eNiGMK/oRdqOOPJ zT66GU2PDtpwzh3sK6X+gtHGFt9WF+k= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=p+qVmwUV; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661022447; a=rsa-sha256; cv=none; b=12OTdmFEt67zbqNJ3ObFVys7VHhBimtWyoT17AYAxkJX3/KpwticsezimAZmtJH+oLAAWX dCShOXagMyEMlu/Tf8AVXknhbtqDrDXfPxnTrar2wymTBgkiu0FLYkD9bTqWWQJAj3OQPa GwMoE+4oTicAM9Y43v5UVxdtQPtzvTc= X-Rspamd-Queue-Id: 83060400F7 X-Rspam-User: Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=p+qVmwUV; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=sj@kernel.org X-Rspamd-Server: rspam04 X-Stat-Signature: 4cpa6tg7f9yfnmymna9u1a4boix54chs X-HE-Tag: 1661022447-841532 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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