lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1661755140-3331-1-git-send-email-chensong_2000@189.cn>
Date:   Mon, 29 Aug 2022 14:39:00 +0800
From:   Song Chen <chensong_2000@....cn>
To:     karolinadrobnik@...il.com, rppt@...nel.org
Cc:     linux-kernel@...r.kernel.org, linux-mm@...ck.org,
        Song Chen <chensong_2000@....cn>
Subject: [PATCH 2/2] tools/testing/memblock: define pr_warn_ratelimited

Commit 14d9a675fd0d("mm: Ratelimited mirrored memory related warning
messages") introduced pr_warn_ratelimited in memblock.c, which breaks
tools/test/memblock, below is the message:

/usr/bin/ld: memblock.o: in function `memblock_find_in_range.constprop.0':
memblock.c:(.text+0x4603): undefined reference to `pr_warn_ratelimited'
/usr/bin/ld: memblock.o: in function `memblock_alloc_range_nid':
memblock.c:(.text+0x786a): undefined reference to `pr_warn_ratelimited'
collect2: error: ld returned 1 exit status

A fake pr_warn_ratelimited needs to be defined in printk.h like other
prink functions.

Signed-off-by: Song Chen <chensong_2000@....cn>
---
 tools/testing/memblock/linux/printk.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/memblock/linux/printk.h b/tools/testing/memblock/linux/printk.h
index 61af424d8c6c..bdca5eedbe4c 100644
--- a/tools/testing/memblock/linux/printk.h
+++ b/tools/testing/memblock/linux/printk.h
@@ -21,5 +21,6 @@
 #define pr_cont printk
 #define pr_err printk
 #define pr_warn printk
+#define pr_warn_ratelimited printf
 
 #endif
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ