diff options
| author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2026-05-04 12:43:40 +0200 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2026-05-21 16:01:52 +0200 |
| commit | d1c9b60b6d7bb6ac973e9fb3f430618ab237ea9b (patch) | |
| tree | 184ca9f754b86026b8b9dcc1bcac2872166664d6 /lib/vsprintf.c | |
| parent | b66cb4f156fe47f52065e70eb1b2f12ccd0c2884 (diff) | |
vsprintf: Only export no_hash_pointers to test module
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>
Diffstat (limited to 'lib/vsprintf.c')
| -rw-r--r-- | lib/vsprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 9f359b31c8d1..cbcc47bf8510 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -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 |
