Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2450925pxb; Tue, 13 Apr 2021 02:06:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMqa+r1KsyUHJsa1X2tgs9WcDlIC9Mmsx9Zn/swjoIz6k27H4L28J5ACIXv87JMfwoGzAu X-Received: by 2002:a63:a0c:: with SMTP id 12mr28600375pgk.247.1618304800682; Tue, 13 Apr 2021 02:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618304800; cv=none; d=google.com; s=arc-20160816; b=BAjQk1H2GM3BTgEDBh12XA2ayiSEgMbTRgW0CCq+j0XN5DXX7g+LUDQRmAQz3CixM5 TAMvU75nn2++ggo28rNBbsx7fce0vnurnKi2a0PP/KIxKpHXnapuQIBv8sAvhDIQ0mU5 7tB9P6RkI4jOwrGLa0m/+0QfOaSz7ZHXYPr7CAMEpN23KMrC1GlExB1Z8nked8IuEKaM v79LBkXOy3BBcOOnMq0PFA/p0aRoJGXfSNuchUrTu0Fu5AtpA+/A0aZN3+/TlDUVA/S+ RcaRLNnewxVpwKnj+Q0rDzjY0yL1K93KN+W7KBMxDkqDHT1VMRNZvgWWskX5t24Y76/k 4TzA== 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=EM7U/N62rbxjpd/wy3lwoMJ7CSKXstnqAzc6WMXVO+c=; b=wo/A1NGJYS7Bq9MGG3ukz+hS0GzAbE/NL/EWM7fti9fkFV2KPH0/defJChyS/DGiT4 X+aKR38UDQoYnLCUyt/XLlat9N9fzR+Wq6rdcfk/dwzQ9ymzYHWC47r05aaLAuKZPNK8 FrjPZ/a5T+gH28MUlTt68eQmtxmtJP2/dvZ1akvTDLj9N+9HRVQq+6N0XAxJYj6MoyGb iMneOOF7jmyTM9GjM/s3CZQiVFoe18MGN+SnPY3bYvFCQm9k2tPcu4hRFf8USytvHHnr 3RLcSpQ6rpOa4PAR6dL+ZPwouDmQTlfxxNH1lZDLi3I3PuBMfeIXhRbkS1VjgtMOTb9R LDJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="t/TvdOo7"; 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 e17si15640178pgg.123.2021.04.13.02.06.28; Tue, 13 Apr 2021 02:06:40 -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="t/TvdOo7"; 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 S1345054AbhDMG5N (ORCPT + 99 others); Tue, 13 Apr 2021 02:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245147AbhDMG5D (ORCPT ); Tue, 13 Apr 2021 02:57:03 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF0D4C061574 for ; Mon, 12 Apr 2021 23:56:44 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id e185so6246113ybf.4 for ; Mon, 12 Apr 2021 23:56:44 -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=EM7U/N62rbxjpd/wy3lwoMJ7CSKXstnqAzc6WMXVO+c=; b=t/TvdOo7hn9eFyLRcO6IKN2knJLFlMvJD85LqS3p70ezJY9KmJyQnoNmrkIR2uthXy WmFHutjhP3sNRUFV88YVqyqRzdb/QCULw0znZtShHzf8oRGvUznrafDt1yFbCPXkkI+0 Y1bOuKRWZn44z9QIgS0RLo1mHpFU76jVw8i6GqzSatKn5V3qIjC6li7inmOfVCGRz5Zl +SxAwEh7kMa92WQx0NoeerKExD4+Xxk3+iMBmL0VuvWnWnvSTan6oFLfspI3Vr1AfObf fAVPm3SigqMxgdFIo7OoLz/1wI9FPVPrUSETRfh9HMZZzvtlTIxOqZEUvZjaaMCiZtbS 2tUA== 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=EM7U/N62rbxjpd/wy3lwoMJ7CSKXstnqAzc6WMXVO+c=; b=rGLib4fG3u5JfGsMESfD549XkyQTbkxo+ZDK2peyx+gBJaLu40gpIMHYqYOJAyzqzG ix/FmZokOmB2+3Naq4VoOPQoJeMjsTJL0YBtF/6MDHz1/XjT5miqUjxHiUs4UtTo2Du6 F/+TEZ6RtK0ePZqj+F41HO2cFdLMN0FfxwTT86IF0q5FEXGo7ZGqUj/nGxuH9w5dgmHf 9Nskde954GH8rRzCtUmRNHuA8h7Ac3cmaz+uI7FTFiX01W+tcnke/SrzFAqCCl6ML8Ah 6Js8R+1sL+sXe8TtZjGQ2aa7aOQGYsPwyF+SJW5qYMLvDpcoUNdkKpfb2nSVpEKolrJA C3cg== X-Gm-Message-State: AOAM533k6NruViQt9bY73WARuw0APJWRdFLtJTsHl/VJrzJggskh0kcA On0mU/on2LGVIbt6g8dxcT+hA0GZgOI= X-Received: from yuzhao.bld.corp.google.com ([2620:15c:183:200:d02d:cccc:9ebe:9fe9]) (user=yuzhao job=sendgmr) by 2002:a5b:b4a:: with SMTP id b10mr2519734ybr.182.1618297003935; Mon, 12 Apr 2021 23:56:43 -0700 (PDT) Date: Tue, 13 Apr 2021 00:56:19 -0600 In-Reply-To: <20210413065633.2782273-1-yuzhao@google.com> Message-Id: <20210413065633.2782273-3-yuzhao@google.com> Mime-Version: 1.0 References: <20210413065633.2782273-1-yuzhao@google.com> X-Mailer: git-send-email 2.31.1.295.g9ea45b61b8-goog Subject: [PATCH v2 02/16] 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 , Benjamin Manes , Dave Chinner , Dave Hansen , Hillf Danton , Jens Axboe , Johannes Weiner , Jonathan Corbet , Joonsoo Kim , Matthew Wilcox , Mel Gorman , Miaohe Lin , Michael Larabel , Michal Hocko , Michel Lespinasse , Rik van Riel , Roman Gushchin , Rong Chen , SeongJae Park , 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 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 --- 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.295.g9ea45b61b8-goog