Skip to content

Commit

Permalink
Merge tag 'unicode-next-v5.4' of https://git.kernel.org/pub/scm/linux…
Browse files Browse the repository at this point in the history
…/kernel/git/krisman/unicode into dev

fs/unicode patches for 5.4-rc1

This includes two fixes for the unicode system for inclusion into Linux
v5.4.

  - A patch from Krzysztof Wilczynski solving a build time warning.

  - A patch from Colin King making a parsing format static, to reduce
    stack size.

Build validated and run time tested using xfstests casefold testcase.

Signed-off-by: Gabriel Krisman Bertazi <[email protected]>
  • Loading branch information
tytso committed Sep 18, 2019
2 parents e855264 + aa28b98 commit 040823b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs/unicode/utf8-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static int utf8_parse_version(const char *version, unsigned int *maj,
{
substring_t args[3];
char version_string[12];
const struct match_token token[] = {
static const struct match_token token[] = {
{1, "%d.%d.%d"},
{0, NULL}
};
Expand Down
4 changes: 2 additions & 2 deletions fs/unicode/utf8-selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ unsigned int total_tests;
#define test_f(cond, fmt, ...) _test(cond, __func__, __LINE__, fmt, ##__VA_ARGS__)
#define test(cond) _test(cond, __func__, __LINE__, "")

const static struct {
static const struct {
/* UTF-8 strings in this vector _must_ be NULL-terminated. */
unsigned char str[10];
unsigned char dec[10];
Expand Down Expand Up @@ -89,7 +89,7 @@ const static struct {

};

const static struct {
static const struct {
/* UTF-8 strings in this vector _must_ be NULL-terminated. */
unsigned char str[30];
unsigned char ncf[30];
Expand Down

0 comments on commit 040823b

Please sign in to comment.