Skip to content

Commit

Permalink
lib/test_kasan_module.c: suppress unused var warning
Browse files Browse the repository at this point in the history
Local `unused' is intentionally unused - it is there to suppress
__must_check warnings.

Reported-by: kernel test robot <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Cc: Marco Elver <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Apr 9, 2021
1 parent 06b1f85 commit e156656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test_kasan_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static noinline void __init copy_user_test(void)
char *kmem;
char __user *usermem;
size_t size = 10;
int unused;
int __maybe_unused unused;

kmem = kmalloc(size, GFP_KERNEL);
if (!kmem)
Expand Down

0 comments on commit e156656

Please sign in to comment.