Messages in this thread | | | Subject | Re: [PATCH v2] net: rxrpc: fix clang -Wformat warning | From | patchwork-bot+netdevbpf@kernel ... | Date | Sat, 09 Jul 2022 03:20:13 +0000 |
| |
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <kuba@kernel.org>:
On Thu, 7 Jul 2022 11:20:52 -0700 you wrote: > 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. > > [...]
Here is the summary with links: - [v2] net: rxrpc: fix clang -Wformat warning https://git.kernel.org/netdev/net-next/c/5b47d2364652
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
| |