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/[email protected] Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Linus Walleij <[email protected]> Cc: Bartosz Golaszewski <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Rasmus Villemoes <[email protected]> Cc: Thomas Petazzoni <[email protected]> Cc: William Breathitt Gray <[email protected]> Cc: Yury Norov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
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)