From nobody Wed Apr 15 05:43:14 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F955C43334 for ; Tue, 26 Jul 2022 03:21:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237471AbiGZDVl (ORCPT ); Mon, 25 Jul 2022 23:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbiGZDVj (ORCPT ); Mon, 25 Jul 2022 23:21:39 -0400 Received: from chinatelecom.cn (prt-mail.chinatelecom.cn [42.123.76.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 515B627CE4 for ; Mon, 25 Jul 2022 20:21:38 -0700 (PDT) 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 Sender: liuxp11@chinatelecom.cn 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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/int= ernal.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 =3D 1; #endif =20 +#define pr_warn_ratelimited(fmt, ...) printf(fmt, ##__VA_ARGS__) + +bool mirrored_kernelcore =3D false; struct page {}; =20 void memblock_free_pages(struct page *page, unsigned long pfn, --=20 1.8.3.1