Skip to content

Commit 0de4a7f

Browse files
xairyakpm00
authored andcommitted
kasan: mark kasan_kunit_executing as static
Mark kasan_kunit_executing as static, as it is only used within mm/kasan/report.c. Link: https://lkml.kernel.org/r/f64778a4683b16a73bba72576f73bf4a2b45a82f.1672794398.git.andreyknvl@google.com Fixes: c8c7016 ("kasan: fail non-kasan KUnit tests on KASAN reports") Reported-by: kernel test robot <[email protected]> Signed-off-by: Andrey Konovalov <[email protected]> Reviewed-by: Marco Elver <[email protected]> Cc: Alexander Potapenko <[email protected]> Cc: Andrey Ryabinin <[email protected]> Cc: Dmitry Vyukov <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 7633355 commit 0de4a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/kasan/report.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ EXPORT_SYMBOL_GPL(kasan_restore_multi_shot);
119119
* Whether the KASAN KUnit test suite is currently being executed.
120120
* Updated in kasan_test.c.
121121
*/
122-
bool kasan_kunit_executing;
122+
static bool kasan_kunit_executing;
123123

124124
void kasan_kunit_test_suite_start(void)
125125
{

0 commit comments

Comments
 (0)