projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17b6753
)
lib/test_bitmap: undefine macros after use
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Thu, 5 Dec 2019 00:53:09 +0000
(16:53 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 5 Dec 2019 03:44:14 +0000
(19:44 -0800)
There is no need to keep step and ptest macros defined in entire file.
Link:
http://lkml.kernel.org/r/20191022172922.61232-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: William Breathitt Gray <vilhelm.gray@gmail.com>
Cc: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/test_bitmap.c
patch
|
blob
|
history
diff --git
a/lib/test_bitmap.c
b/lib/test_bitmap.c
index 09aa29a6b562d1460f8bc1a805b17f279f8ebee8..d2fa94e45a46ddc400fef47ae5365a2069cababb 100644
(file)
--- a/
lib/test_bitmap.c
+++ b/
lib/test_bitmap.c
@@
-311,6
+311,8
@@
static const struct test_bitmap_parselist parselist_tests[] __initconst = {
{-EINVAL, "a-31:10/1", NULL, 8, 0},
{-EINVAL, "0-31:a/1", NULL, 8, 0},
{-EINVAL, "0-\n", NULL, 8, 0},
+
+#undef step
};
static void __init __test_bitmap_parselist(int is_user)
@@
-357,6
+359,8
@@
static void __init __test_bitmap_parselist(int is_user)
if (ptest.flags & PARSE_TIME)
pr_err("parselist%s: %d: input is '%s' OK, Time: %llu\n",
mode, i, ptest.in, time);
+
+#undef ptest
}
}