diff options
author | Justin Stitt <[email protected]> | 2022-07-07 11:20:52 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-07-08 20:15:11 -0700 |
commit | 5b47d2364652979dc43df14f7af19346a001b770 (patch) | |
tree | ca8afd9d3969ee765dbe7e473f0e77db9bff6dd2 /tools/perf/scripts/python/stackcollapse.py | |
parent | 16bd188eae2dc9294859bec8d0ed7388a176659f (diff) |
net: rxrpc: fix clang -Wformat warning
When building with Clang we encounter this warning:
| net/rxrpc/rxkad.c:434:33: error: format specifies type 'unsigned short'
| but the argument has type 'u32' (aka 'unsigned int') [-Werror,-Wformat]
| _leave(" = %d [set %hx]", ret, y);
y is a u32 but the format specifier is `%hx`. Going from unsigned int to
short int results in a loss of data. This is surely not intended
behavior. If it is intended, the warning should be suppressed through
other means.
This patch should get us closer to the goal of enabling the -Wformat
flag for Clang builds.
Link: https://github.com/ClangBuiltLinux/linux/issues/378
Signed-off-by: Justin Stitt <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Acked-by: David Howells <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions