lkml.org 
[lkml]   [2021]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/3] [v4] lib/vsprintf: no_hash_pointers prints all addresses as unhashed
From
Date
On 2021/09/11 11:25, Xiaoming Ni wrote:
> Why do we need to export the no_hash_pointers variable and
> not declare it in any header file?

Because lib/test_printf.c wants to use no_hash_pointers for testing
purpose, and lib/test_printf.c might be built as a loadable kernel module.
That is, no_hash_pointers is not meant for general use.

config TEST_PRINTF
tristate "Test printf() family of functions at runtime"

obj-$(CONFIG_TEST_PRINTF) += test_printf.o

\
 
 \ /
  Last update: 2021-09-11 04:40    [W:0.140 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site