Message ID | 20240402132701.29744-2-richard.weiyang@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 A33BCCD128D for <linux-mm@archiver.kernel.org>; Tue, 2 Apr 2024 13:27:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1337A6B0095; Tue, 2 Apr 2024 09:27:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0BBEB6B009A; Tue, 2 Apr 2024 09:27:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E78A96B009B; Tue, 2 Apr 2024 09:27:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id CCE536B0095 for <linux-mm@kvack.org>; Tue, 2 Apr 2024 09:27:22 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 975851A0712 for <linux-mm@kvack.org>; Tue, 2 Apr 2024 13:27:22 +0000 (UTC) X-FDA: 81964668324.20.1E2B093 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by imf08.hostedemail.com (Postfix) with ESMTP id BDCB5160027 for <linux-mm@kvack.org>; Tue, 2 Apr 2024 13:27:20 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=MWlxYNsx; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf08.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.53 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1712064440; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:dkim-signature; bh=/zlJk86kk+e6v/0Hhm5prLyYwej1Vl0sY7sp0RzGlSU=; b=y83uF/tjoUb7XYtXMzcS1eHLwrzd4QBDJbS5NHhBOEy6w0kPPC8l/y1hT3K49KlJzr9ZU2 2Z9uer45xoziz2/axfPHNM62GvrcS2vm8CvSOZXA9nOqBLZPbuh1ZWGXPQLxQrm3oDhvg/ 72g4PkJKBYAkSsVLUpni48uTOzrWcc8= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=MWlxYNsx; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf08.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.53 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712064440; a=rsa-sha256; cv=none; b=hoYhVSkK+U2z7AfmENwB62eFv6bqLFC8C2+wwPLMdSaATfbFHQhX9X5nGspJuy30prF6aQ cHv3L5Pn7YnEqlJ+KbB0FZ+rvYuZ0d3IefI2WVJb/dp6nSD5GQdSwia9j0i1fH8hJGJ4DE rwMpg1F8fbJHPZU5R30tKUu8fjpOVM4= Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-56c404da0ebso7482902a12.0 for <linux-mm@kvack.org>; Tue, 02 Apr 2024 06:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712064439; x=1712669239; darn=kvack.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=/zlJk86kk+e6v/0Hhm5prLyYwej1Vl0sY7sp0RzGlSU=; b=MWlxYNsx04GP/icbfZkHiyObGGUf0klmvFNbL1OHRSd6Fcerbrm9MC8S+3BDkxBl6g fddRYznsEWaJjTMsroSDZfKwj+1faeUt+iv2zUqxKy1MilRp20ogHkrY4a/QymrDCnXD cJQRtK4Q+LwO4ZQKbUqODtnLDqKryDMLoZ8Be0T55P1zmk5jiD03vs4COVxnRwkN04fT 7N2iGjiOLdRDXJddHpU4QWtEwX5BbG3rY7gSYvVxuBrd4Sk6aflqMelv4gsCA6xp1NUT PamHTdi2wnLBZ00qH1MEfePib6eihs+1q/QeA94VDoJ4TwOnykgD6ChNi1JTNwv3Q49f IoAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712064439; x=1712669239; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/zlJk86kk+e6v/0Hhm5prLyYwej1Vl0sY7sp0RzGlSU=; b=pL3bY/ZfozXa0OjK5tWrH8NVFC36xKSos83ntauhKZ0QWs0R7TwoKSN3JEdSz/vh2p rclRLR6fM8mYIGBfM9wqjPM947VGl0V/j0bQOAXx4irRtWgDs/nwYjsRgBtF1fcx0RxP jXeHY9a0SiQidlpB1Gdil8F3/utz9O91PfoH7kf6WbvE8hxTrniKx65YIpwTpJyhpU6i VADSS55XNPAjen3Vrt+nFYGaxmtI5WEh80/J4jjJbRMs/Upi7v9yypWjXvCiPmbZLxB6 OMV/UJL3aK6deqLMnCSSHYHaWHOlsMnMHNsqAFLM8VaVx+otjQuOwhlsY2QjcDMEQR0A vBKw== X-Forwarded-Encrypted: i=1; AJvYcCXb0aNeXAR46tkhyu7DZBun8LNqoVTPnr4CDpb/L1u7dmXcyGC9KHVLa7FDfo+1b+HRP1fypI6ZQaMwyHXPPcOvjuM= X-Gm-Message-State: AOJu0YxqJ8ZkBWt54Oc23RDRfHmgok+MbnJuR94K04HEPFy7kAw8U++w vrdll1UAoRxO18oNsfjlOK5eTG6cNVvyl+GQeV96WHibd38vceer X-Google-Smtp-Source: AGHT+IGVGxd08nxJspeKCBa/sUfV4wRq6nZEH6TtddNfET39FJsuKrlK0+PJ5UXPJTlZxDo0ZOFcYA== X-Received: by 2002:a05:6402:348a:b0:568:9d96:b2d1 with SMTP id v10-20020a056402348a00b005689d96b2d1mr9264446edc.32.1712064438815; Tue, 02 Apr 2024 06:27:18 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id y11-20020aa7c24b000000b0056bdec673c3sm6942782edo.38.2024.04.02.06.27.17 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2024 06:27:17 -0700 (PDT) From: Wei Yang <richard.weiyang@gmail.com> To: akpm@linux-foundation.org, rppt@kernel.org, rongtao@cestc.cn Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Wei Yang <richard.weiyang@gmail.com>, Yajun Deng <yajun.deng@linux.dev> Subject: [PATCH 1/3] memblock tests: fix undefined reference to `early_pfn_to_nid' Date: Tue, 2 Apr 2024 13:26:59 +0000 Message-Id: <20240402132701.29744-2-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240402132701.29744-1-richard.weiyang@gmail.com> References: <20240402132701.29744-1-richard.weiyang@gmail.com> X-Rspamd-Queue-Id: BDCB5160027 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: n8o1f6hhcsn9gthyudj7sxgfu73ijcfn X-HE-Tag: 1712064440-177936 X-HE-Meta: U2FsdGVkX19h89sCVltTJeVmM/yqXJ+55LFdFfcp70wPsue0NEEANrnQNoIxysqqto32h5+8gzbaWUkQRVhZ5EcYghQHbGb5fqVOrRCLA5Sw5ToYbyhiRcKrz+AgrkwwDF3Hwox7fs4bM7/ZR7TqDVMaxQUUKY6/gWKUys8CYQ9YyltSIOzZICjL+cfOcApBkh3O5rT0/F6L0RMjVPhIXk6dRyIrRZAMSJt5m4dBNcnVR017+xUOPWlznHB8z8igasLpRe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lBWE3S6OdO8brhuorfPcHmuPmGRrCNV8sIi7Yt0+3t50d4fdh5S2M7g0eCeOphEb9lsyFWhiF1OXiQA7+vo6xbIJL5PLjfY3YP/dmfzn1XetKiLQizXD+S0oNDan0MdgJdWlddO0kLz/BbFdZIpCP/selB+3LBPxQ07geJVKKn2OtsrQFZKdxIYGiW/KAMVHkffFkp2rmwA/ZYeEir9UC4A8UNdHeuYwCvGmP0JLMxX39eY4CoILuVW77kQHINu6lPjj2s= 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
memblock tests: fix build error
|
expand
|
diff --git a/tools/include/linux/mm.h b/tools/include/linux/mm.h index f3c82ab5b14c..7d73da098047 100644 --- a/tools/include/linux/mm.h +++ b/tools/include/linux/mm.h @@ -37,4 +37,9 @@ static inline void totalram_pages_add(long count) { } +static inline int early_pfn_to_nid(unsigned long pfn) +{ + return 0; +} + #endif
commit 6a9531c3a880 ("memblock: fix crash when reserved memory is not added to memory") introduce the usage of early_pfn_to_nid, which is not defined in memblock tests. The original definition of early_pfn_to_nid is defined in mm.h, so let add this in the corresponding mm.h. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> CC: Yajun Deng <yajun.deng@linux.dev> CC: Mike Rapoport <rppt@kernel.org> --- tools/include/linux/mm.h | 5 +++++ 1 file changed, 5 insertions(+)