Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2112238pxj; Wed, 19 May 2021 23:55:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwk4NQ8u+juh1zqajxqanhJ5ovNTOgnBJJYaf3P5cr7K/ponONWtKEgZ9IDdqCmBsPCG0lE X-Received: by 2002:a17:906:9990:: with SMTP id af16mr3099313ejc.195.1621493732592; Wed, 19 May 2021 23:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621493732; cv=none; d=google.com; s=arc-20160816; b=NGzNyme9F+kEROIpp2cfP1JfePVwEdaI9ssN+FRN1SkC6NuLYawc70l6ira4vvhmn6 5D6iohr30vZXV4/1PMVg0RsXpjnNuVq5HiDzTWA38qGvRcNUMogaA63zg9RczVHXxxtG c7rUDiM+r/m1nEmvRk7spobnic3wZL7D/fOsIyMPhrnwCFCPj+1UqL2o5yDBGaKwXbUC Fnvfc9MXIWPKQ15sviSR2Pmq+TpRy78Zjw/+7O9q7iXyUxarOnf6l7t1e4zOvFaGV+sm psiied5pgRHATaHcGJ1IxR2qKdg+s8/uhF+7wtORr24hKJgAGQfEl0OIC11JZLfOvdzW YuFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=Vxs+IsfkjudRR9AMrF0VuRYwRpXVOuThAM5t2BO4Wtw=; b=xMh8DLIhC+C8b5PLBkrEJXurnwXpskZcx9g90RU8wGj7vlUQVLpWxojdrldZC52cxy l0ULopD9J+fbfX7sGsNLFnTB1TRw0Qna+Pu+K+sBo7JGW6JU8W3AnBJvv1TXK6u/1q9z 5uKEWTlx4Hm73FPc/pUH3fPOoM4HI8tlcZI8+AGSlSQnn5ItGU220tj6KMRAekKs11Yz oKPTA9m87XbeXNLN4k4UVC4phrm98ePeb7pLthS5cqwZD6JryftOQSHeXfNNhb2KDaLg 0dwOfi3mmAjBfWE967U7dKaGBhjYdObIDNmioDdlMlgUiA5UFr2Pu2q4zVCxvA94CIBm NI8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gEeAhMTY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b4si1498309eds.344.2021.05.19.23.55.09; Wed, 19 May 2021 23:55:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gEeAhMTY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230409AbhETGzc (ORCPT + 99 others); Thu, 20 May 2021 02:55:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230365AbhETGzZ (ORCPT ); Thu, 20 May 2021 02:55:25 -0400 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DFF8C061574 for ; Wed, 19 May 2021 23:54:04 -0700 (PDT) Received: by mail-qv1-xf4a.google.com with SMTP id e15-20020a0caa4f0000b02901eedbb09299so10877261qvb.15 for ; Wed, 19 May 2021 23:54:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=Vxs+IsfkjudRR9AMrF0VuRYwRpXVOuThAM5t2BO4Wtw=; b=gEeAhMTYbAQslSO01e0o8YIym/dFnsQfB9lZrmyFhl8uqTqmQEDIIu/28e1BOlyvt9 rJm5/8Caqo1KIaunpdBy2LPtOXmfi9ZJDnuwRnb21JoByNrFkCChT4Z5xyeBqut1yHQm /TlMDm6OPoewZgMjaOhRgLuU1i+Q2viLaBK5TcX/f4jp7CkEtCTn5SioWFrXLpHFPgfg kYO7g2IN+CR6iy3EfEzmDy81m8wakeRxZZOx4HjJ7gGFFDfSfK4SyZnaOFS2lmsp1BrE F/LSnBPYHDzzGJCEqa0RfGIu9OFnYG7fyBb1AzMWt5UOwD1Z5Gw0p3PCAJBE1ykqsTQ7 ooLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Vxs+IsfkjudRR9AMrF0VuRYwRpXVOuThAM5t2BO4Wtw=; b=WqdLL8JjD4oD11umCae6nAxvQ9zl0qjRO1psbjN4FhRRkc/CQM+QJ7TCbayd5VCaUu rtoZfhuozKEHvBBclv4jQzorRkiOVjwZGIX52HwBCvcXpPAQF69jkqG0WRjQKrUK9laH TcyQDkdTbJztqqLLgoaMke0Pvw3qiJvr4a19wbHUQt+uwR4UXoL2NTQBotaVS1/Ji2zn MhoxUD+f8pgFoCCCn/G5DgDvOIOCN2Ed8dcKb+fMyQn2Lhjc9xLUnlaGN6WdKwBpOq9Z AFd/Ld6gumYWjtW7nBuum/ysfqbF5Au47sGCuLngPSTq/x4OIApMHQLjOikk1jB9ydlN GRzA== X-Gm-Message-State: AOAM5302cFNM+/KQLI85uCrC18olBzO35TXBlTOBABeaNnESgoIvYml8 1LlliNnJr3ok2uXDGXaBzjDPiIU7ddM= X-Received: from yuzhao.bld.corp.google.com ([2620:15c:183:200:595d:62ee:f08:8e83]) (user=yuzhao job=sendgmr) by 2002:ad4:4184:: with SMTP id e4mr4097411qvp.13.1621493643517; Wed, 19 May 2021 23:54:03 -0700 (PDT) Date: Thu, 20 May 2021 00:53:43 -0600 In-Reply-To: <20210520065355.2736558-1-yuzhao@google.com> Message-Id: <20210520065355.2736558-3-yuzhao@google.com> Mime-Version: 1.0 References: <20210520065355.2736558-1-yuzhao@google.com> X-Mailer: git-send-email 2.31.1.751.gd2f1c929bd-goog Subject: [PATCH v3 02/14] include/linux/nodemask.h: define next_memory_node() if !CONFIG_NUMA From: Yu Zhao To: linux-mm@kvack.org Cc: Alex Shi , Andi Kleen , Andrew Morton , Dave Chinner , Dave Hansen , Donald Carr , Hillf Danton , Jens Axboe , Johannes Weiner , Jonathan Corbet , Joonsoo Kim , Konstantin Kharlamov , Marcus Seyfarth , Matthew Wilcox , Mel Gorman , Miaohe Lin , Michael Larabel , Michal Hocko , Michel Lespinasse , Rik van Riel , Roman Gushchin , Tim Chen , Vlastimil Babka , Yang Shi , Ying Huang , Zi Yan , linux-kernel@vger.kernel.org, lkp@lists.01.org, page-reclaim@google.com, Yu Zhao , Konstantin Kharlamov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently next_memory_node only exists when CONFIG_NUMA=y. This patch adds the macro for !CONFIG_NUMA. Signed-off-by: Yu Zhao Tested-by: Konstantin Kharlamov --- include/linux/nodemask.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/nodemask.h b/include/linux/nodemask.h index ac398e143c9a..89fe4e3592f9 100644 --- a/include/linux/nodemask.h +++ b/include/linux/nodemask.h @@ -486,6 +486,7 @@ static inline int num_node_state(enum node_states state) #define first_online_node 0 #define first_memory_node 0 #define next_online_node(nid) (MAX_NUMNODES) +#define next_memory_node(nid) (MAX_NUMNODES) #define nr_node_ids 1U #define nr_online_nodes 1U -- 2.31.1.751.gd2f1c929bd-goog