projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0a7d18
)
test_ida: Fix lockdep warning
author
Matthew Wilcox
<willy@infradead.org>
Mon, 15 Oct 2018 20:23:08 +0000
(16:23 -0400)
committer
Matthew Wilcox
<willy@infradead.org>
Mon, 15 Oct 2018 20:31:29 +0000
(16:31 -0400)
The IDA was declared on the stack instead of statically, so lockdep
triggered a warning that it was improperly initialised.
Reported-by: 0day bot
Tested-by: Rong Chen <rong.a.chen@intel.com>
Signed-off-by: Matthew Wilcox <willy@infradead.org>
lib/test_ida.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/test_ida.c
b/lib/test_ida.c
index 2d1637d8136b331b44c8273ba8ae4b3df964ec04..b0688062596150be5e29555ee237cf9a99a1d414 100644
(file)
--- 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);