]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
vsprintf: Only export no_hash_pointers to test module
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 4 May 2026 10:43:40 +0000 (12:43 +0200)
committerPetr Mladek <pmladek@suse.com>
Thu, 21 May 2026 14:01:52 +0000 (16:01 +0200)
Aside from the printf test module, no module should ever use this symbol.

Suggested-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/all/aWpwMyFEfpCNN297@pathway.suse.cz/
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/all/aW3em-KplLVofU5z@smile.fi.intel.com/
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Link: https://patch.msgid.link/20260504-restricted-pointers-kunit-test-v2-1-19e8b1c0fbeb@linutronix.de
[pmladek@suse.com: Removed questionable ifdeffery.]
Signed-off-by: Petr Mladek <pmladek@suse.com>
lib/vsprintf.c

index 9f359b31c8d1c1805ffb62a57e5cd206740e3163..cbcc47bf85109c5af55c37e629a332e996973380 100644 (file)
@@ -59,7 +59,7 @@
 
 /* Disable pointer hashing if requested */
 bool no_hash_pointers __ro_after_init;
-EXPORT_SYMBOL_GPL(no_hash_pointers);
+EXPORT_SYMBOL_FOR_MODULES(no_hash_pointers, "printf_kunit");
 
 /*
  * Hashed pointers policy selected by "hash_pointers=..." boot param