diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2019-03-28 23:44:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-29 13:01:38 -0400 |
commit | 2620327852478e695afb2eebe66c354b3bc456cc (patch) | |
tree | 728353f69cefd25ace3093776b16f736083a63a6 | |
parent | 4462996ea3cc6bcf3c4efbd7bd2514a15dd8ece4 (diff) |
fs: fs_parser: fix printk format warning
Fix printk format warning (seen on i386 builds) by using ptrdiff format
specifier (%t):
fs/fs_parser.c:413:6: warning: format `%lu' expects argument of type `long unsigned int', but argument 3 has type `int' [-Wformat=]
Link: http://lkml.kernel.org/r/19432668-ffd3-fbb2-af4f-1c8e48f6cc81@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/fs_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fs_parser.c b/fs/fs_parser.c index 842e8f749db6..570d71043acf 100644 --- a/fs/fs_parser.c +++ b/fs/fs_parser.c | |||
@@ -410,7 +410,7 @@ bool fs_validate_description(const struct fs_parameter_description *desc) | |||
410 | for (param = desc->specs; param->name; param++) { | 410 | for (param = desc->specs; param->name; param++) { |
411 | if (param->opt == e->opt && | 411 | if (param->opt == e->opt && |
412 | param->type != fs_param_is_enum) { | 412 | param->type != fs_param_is_enum) { |
413 | pr_err("VALIDATE %s: e[%lu] enum val for %s\n", | 413 | pr_err("VALIDATE %s: e[%tu] enum val for %s\n", |
414 | name, e - desc->enums, param->name); | 414 | name, e - desc->enums, param->name); |
415 | good = false; | 415 | good = false; |
416 | } | 416 | } |