aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <[email protected]>2021-04-09 13:27:41 -0700
committerLinus Torvalds <[email protected]>2021-04-09 14:54:23 -0700
commite156656717b810202914b77557de8112df4dad0d (patch)
treeab42356aa1ccad9455927a5dbd8b28dc077872ae
parent06b1f85588948bd4c772845e5d6891b8f6082248 (diff)
lib/test_kasan_module.c: suppress unused var warning
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]>
-rw-r--r--lib/test_kasan_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_kasan_module.c b/lib/test_kasan_module.c
index eee017ff8980..f1017f345d6c 100644
--- a/lib/test_kasan_module.c
+++ b/lib/test_kasan_module.c
@@ -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)