From mboxrd@z Thu Jan 1 00:00:00 1970 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 C6C3BC43334 for ; Tue, 26 Jul 2022 03:21:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2113A8E0002; Mon, 25 Jul 2022 23:21:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1C1218E0001; Mon, 25 Jul 2022 23:21:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 089478E0002; Mon, 25 Jul 2022 23:21:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id EADFD8E0001 for ; Mon, 25 Jul 2022 23:21:39 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id BC986C11E8 for ; Tue, 26 Jul 2022 03:21:39 +0000 (UTC) X-FDA: 79727801118.27.816EFB9 Received: from chinatelecom.cn (prt-mail.chinatelecom.cn [42.123.76.226]) by imf06.hostedemail.com (Postfix) with ESMTP id D922A18008D for ; Tue, 26 Jul 2022 03:21:38 +0000 (UTC) HMM_SOURCE_IP:172.18.0.218:46296.160933712 HMM_ATTACHE_NUM:0000 HMM_SOURCE_TYPE:SMTP Received: from clientip-10.133.8.199 (unknown [172.18.0.218]) by chinatelecom.cn (HERMES) with SMTP id 3B61B2800DB; Tue, 26 Jul 2022 11:21:35 +0800 (CST) X-189-SAVE-TO-SEND: +liuxp11@chinatelecom.cn Received: from ([172.18.0.218]) by app0025 with ESMTP id ee3b4560c65b4957bb52cabbf7ed1611 for rppt@kernel.org; Tue, 26 Jul 2022 11:21:37 CST X-Transaction-ID: ee3b4560c65b4957bb52cabbf7ed1611 X-Real-From: liuxp11@chinatelecom.cn X-Receive-IP: 172.18.0.218 X-MEDUSA-Status: 0 From: Liu Xinpeng To: rppt@kernel.org, david@redhat.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Liu Xinpeng Subject: [PATCH] memblock tests: compiling error Date: Tue, 26 Jul 2022 11:21:21 +0800 Message-Id: <1658805681-17371-1-git-send-email-liuxp11@chinatelecom.cn> X-Mailer: git-send-email 1.8.3.1 ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf06.hostedemail.com: domain of liuxp11@chinatelecom.cn designates 42.123.76.226 as permitted sender) smtp.mailfrom=liuxp11@chinatelecom.cn ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658805699; h=from:from:sender: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:references; bh=UCowGeiHAB0PuBu/+KXEnTj194gVA5J2lLVdCMqwOPY=; b=UVa2RZy3/Wqmi+BlPwj7urX5f4QuXf3EyRBzHSNJV1bXqo0mOpcOMYLaxclSj03ldXZPeJ 6PUhsFliMbihUtl6MvPWkuG7fvEQeL9xCAQ+i6EPuwZq8WJ3UI7bgKjybGWULmASX+DHn4 JsTHExTfotAgBvAGYj3Dr/bQxHL2dgs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658805699; a=rsa-sha256; cv=none; b=aS4yCtS1LU+Ox3kOz5OO4qE4kRq2Oh7S1YK4Rk2ZSH7yz5+ALOYggk7aHq2R0Y5gU42Fmb ohHAur8U06C3q3CglBUnpGqENY/E85C24g4qibbX0pDXnlt9uAPrSnVAdTU5hLQIkAwnza 8LKNeRSV1Gm21hirZ2s0eWV6RNO/OIw= X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: D922A18008D X-Rspam-User: Authentication-Results: imf06.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf06.hostedemail.com: domain of liuxp11@chinatelecom.cn designates 42.123.76.226 as permitted sender) smtp.mailfrom=liuxp11@chinatelecom.cn X-Stat-Signature: qiye8k9spq13pe3scwd8neuf45n7y93u X-HE-Tag: 1658805698-871422 X-Bogosity: Ham, tests=bogofilter, spamicity=0.023144, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: memblock.o: In function `memblock_find_in_range.constprop.9': memblock.c:(.text+0x4651): undefined reference to `pr_warn_ratelimited' memblock.o: In function `memblock_mark_mirror': memblock.c:(.text+0x7171): undefined reference to `mirrored_kernelcore' Fixs: 902c2d91582 ("memblock: Disable mirror feature if kernelcore is not specified") Fixs: 14d9a675fd0 ("mm: Ratelimited mirrored memory related warning") Signed-off-by: Liu Xinpeng --- tools/testing/memblock/internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/memblock/internal.h b/tools/testing/memblock/internal.h index c2a492c..cf67e6e 100644 --- a/tools/testing/memblock/internal.h +++ b/tools/testing/memblock/internal.h @@ -9,6 +9,9 @@ static int memblock_debug = 1; #endif +#define pr_warn_ratelimited(fmt, ...) printf(fmt, ##__VA_ARGS__) + +bool mirrored_kernelcore = false; struct page {}; void memblock_free_pages(struct page *page, unsigned long pfn, -- 1.8.3.1