Commit e1566567 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

lib/test_kasan_module.c: suppress unused var warning



Local `unused' is intentionally unused - it is there to suppress
__must_check warnings.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Link: https://lkml.kernel.org/r/202104050216.HflRxfJm-lkp@intel.com


Cc: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 06b1f855
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)