Skip to content

Commit 5422404

Browse files
andy-shevtorvalds
authored andcommitted
lib/test_bitmap: undefine macros after use
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>
1 parent 17b6753 commit 5422404

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/test_bitmap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ static const struct test_bitmap_parselist parselist_tests[] __initconst = {
311311
{-EINVAL, "a-31:10/1", NULL, 8, 0},
312312
{-EINVAL, "0-31:a/1", NULL, 8, 0},
313313
{-EINVAL, "0-\n", NULL, 8, 0},
314+
315+
#undef step
314316
};
315317

316318
static void __init __test_bitmap_parselist(int is_user)
@@ -357,6 +359,8 @@ static void __init __test_bitmap_parselist(int is_user)
357359
if (ptest.flags & PARSE_TIME)
358360
pr_err("parselist%s: %d: input is '%s' OK, Time: %llu\n",
359361
mode, i, ptest.in, time);
362+
363+
#undef ptest
360364
}
361365
}
362366

0 commit comments

Comments
 (0)