VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: Matthew Wilcox <willy@infradead.org> 2018-10-15 16:23:08 -0400 committer: Matthew Wilcox <willy@infradead.org> 2018-10-15 16:31:29 -0400 commit: c994b12945a65cd892ca2cf7ddcf0b7d8b25cdec parent: f0a7d1883d9f78ae7bf15fc258bf9a2b20f35b76
Commit Summary:
test_ida: Fix lockdep warning
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/lib/test_ida.c b/lib/test_ida.c
index 2d1637d8136b..b06880625961 100644
--- a/lib/test_ida.c
+++ b/lib/test_ida.c
@@ -150,10 +150,10 @@ static void ida_check_conv(struct ida *ida)
 	IDA_BUG_ON(ida, !ida_is_empty(ida));
 }
 
+static DEFINE_IDA(ida);
+
 static int ida_checks(void)
 {
-	DEFINE_IDA(ida);
-
 	IDA_BUG_ON(&ida, !ida_is_empty(&ida));
 	ida_check_alloc(&ida);
 	ida_check_destroy(&ida);