aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/core-api/idr.rst2
-rw-r--r--lib/test_ida.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/core-api/idr.rst b/Documentation/core-api/idr.rst
index d351e880a2f6..a2738050c4f0 100644
--- a/Documentation/core-api/idr.rst
+++ b/Documentation/core-api/idr.rst
@@ -1,4 +1,4 @@
1.. SPDX-License-Identifier: CC-BY-SA-4.0 1.. SPDX-License-Identifier: GPL-2.0+
2 2
3============= 3=============
4ID Allocation 4ID Allocation
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)
150 IDA_BUG_ON(ida, !ida_is_empty(ida)); 150 IDA_BUG_ON(ida, !ida_is_empty(ida));
151} 151}
152 152
153static DEFINE_IDA(ida);
154
153static int ida_checks(void) 155static int ida_checks(void)
154{ 156{
155 DEFINE_IDA(ida);
156
157 IDA_BUG_ON(&ida, !ida_is_empty(&ida)); 157 IDA_BUG_ON(&ida, !ida_is_empty(&ida));
158 ida_check_alloc(&ida); 158 ida_check_alloc(&ida);
159 ida_check_destroy(&ida); 159 ida_check_destroy(&ida);