summaryrefslogtreecommitdiffstats
path: root/net/tipc/bearer.c
diff options
context:
space:
mode:
authorLouis Taylor <louis@kragniz.eu>2019-02-27 22:25:15 +0000
committerSteve French <stfrench@microsoft.com>2019-03-05 18:10:28 -0600
commit259594bea574e515a148171b5cd84ce5cbdc028a (patch)
tree5e474df83f25abbcc188a089701cb6ce0b8f2417 /net/tipc/bearer.c
parentd42043a600abfd4d6208c1f1454ee8afa3b5e905 (diff)
downloadlinux-stable-259594bea574e515a148171b5cd84ce5cbdc028a.tar.gz
linux-stable-259594bea574e515a148171b5cd84ce5cbdc028a.tar.bz2
linux-stable-259594bea574e515a148171b5cd84ce5cbdc028a.zip
cifs: use correct format characters
When compiling with -Wformat, clang emits the following warnings: fs/cifs/smb1ops.c:312:20: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] tgt_total_cnt, total_in_tgt); ^~~~~~~~~~~~ fs/cifs/cifs_dfs_ref.c:289:4: warning: format specifies type 'short' but the argument has type 'int' [-Wformat] ref->flags, ref->server_type); ^~~~~~~~~~ fs/cifs/cifs_dfs_ref.c:289:16: warning: format specifies type 'short' but the argument has type 'int' [-Wformat] ref->flags, ref->server_type); ^~~~~~~~~~~~~~~~ fs/cifs/cifs_dfs_ref.c:291:4: warning: format specifies type 'short' but the argument has type 'int' [-Wformat] ref->ref_flag, ref->path_consumed); ^~~~~~~~~~~~~ fs/cifs/cifs_dfs_ref.c:291:19: warning: format specifies type 'short' but the argument has type 'int' [-Wformat] ref->ref_flag, ref->path_consumed); ^~~~~~~~~~~~~~~~~~ The types of these arguments are unconditionally defined, so this patch updates the format character to the correct ones for ints and unsigned ints. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Louis Taylor <louis@kragniz.eu> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'net/tipc/bearer.c')
0 files changed, 0 insertions, 0 deletions