Commit 69325698 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Torvalds

lib/test-string_helpers: get rid of trailing comma in terminators

Terminators by definition shouldn't accept anything behind.  Make them
robust by removing trailing commas.

Link: https://lkml.kernel.org/r/20210504180819.73127-9-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Chuck Lever <chuck.lever@oracle.com>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 229563b1
...@@ -136,7 +136,7 @@ static const struct test_string_2 escape0[] __initconst = {{ ...@@ -136,7 +136,7 @@ static const struct test_string_2 escape0[] __initconst = {{
.flags = ESCAPE_SPACE | ESCAPE_HEX, .flags = ESCAPE_SPACE | ESCAPE_HEX,
},{ },{
/* terminator */ /* terminator */
}}, }}
},{ },{
.in = "\\h\\\"\a\e\\", .in = "\\h\\\"\a\e\\",
.s1 = {{ .s1 = {{
...@@ -150,7 +150,7 @@ static const struct test_string_2 escape0[] __initconst = {{ ...@@ -150,7 +150,7 @@ static const struct test_string_2 escape0[] __initconst = {{
.flags = ESCAPE_SPECIAL | ESCAPE_HEX, .flags = ESCAPE_SPECIAL | ESCAPE_HEX,
},{ },{
/* terminator */ /* terminator */
}}, }}
},{ },{
.in = "\eb \\C\007\"\x90\r]", .in = "\eb \\C\007\"\x90\r]",
.s1 = {{ .s1 = {{
...@@ -201,7 +201,7 @@ static const struct test_string_2 escape0[] __initconst = {{ ...@@ -201,7 +201,7 @@ static const struct test_string_2 escape0[] __initconst = {{
.flags = ESCAPE_NP | ESCAPE_HEX, .flags = ESCAPE_NP | ESCAPE_HEX,
},{ },{
/* terminator */ /* terminator */
}}, }}
},{ },{
/* terminator */ /* terminator */
}}; }};
...@@ -217,7 +217,7 @@ static const struct test_string_2 escape1[] __initconst = {{ ...@@ -217,7 +217,7 @@ static const struct test_string_2 escape1[] __initconst = {{
.flags = ESCAPE_HEX, .flags = ESCAPE_HEX,
},{ },{
/* terminator */ /* terminator */
}}, }}
},{ },{
.in = "\\h\\\"\a\e\\", .in = "\\h\\\"\a\e\\",
.s1 = {{ .s1 = {{
...@@ -225,7 +225,7 @@ static const struct test_string_2 escape1[] __initconst = {{ ...@@ -225,7 +225,7 @@ static const struct test_string_2 escape1[] __initconst = {{
.flags = ESCAPE_OCTAL, .flags = ESCAPE_OCTAL,
},{ },{
/* terminator */ /* terminator */
}}, }}
},{ },{
.in = "\eb \\C\007\"\x90\r]", .in = "\eb \\C\007\"\x90\r]",
.s1 = {{ .s1 = {{
...@@ -233,7 +233,7 @@ static const struct test_string_2 escape1[] __initconst = {{ ...@@ -233,7 +233,7 @@ static const struct test_string_2 escape1[] __initconst = {{
.flags = ESCAPE_OCTAL, .flags = ESCAPE_OCTAL,
},{ },{
/* terminator */ /* terminator */
}}, }}
},{ },{
/* terminator */ /* terminator */
}}; }};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment