diff options
author | Justin Stitt <justinstitt@google.com> | 2022-07-08 13:35:49 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-07-14 16:53:38 +0200 |
commit | d618072d86fcc391b77ca0a1909b5f0bb8423f6e (patch) | |
tree | c82945ceb2d896473434c0aad9919adb9cfa729a /drivers/misc/mei/hw-me.c | |
parent | 71d46f1ff2212ced4852c7e77c5176382a1bdcec (diff) | |
download | linux-stable-d618072d86fcc391b77ca0a1909b5f0bb8423f6e.tar.gz linux-stable-d618072d86fcc391b77ca0a1909b5f0bb8423f6e.tar.bz2 linux-stable-d618072d86fcc391b77ca0a1909b5f0bb8423f6e.zip |
mei: me: fix clang -Wformat warning
When building with Clang we encounter the following warning:
| drivers/misc/mei/hw-me.c:564:44: error: format specifies type 'unsigned
| short' but the argument has type 'int' [-Werror,-Wformat]
| dev_dbg(dev->dev, "empty slots = %hu.\n", empty_slots);
The format specifier used is `%hu` which specifies an unsigned short,
however, empty_slots is an int -- hence the warning.
Link: https://github.com/ClangBuiltLinux/linux/issues/378
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Justin Stitt <justinstitt@google.com>
Link: https://lore.kernel.org/r/20220708203549.3834790-1-justinstitt@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hw-me.c')
-rw-r--r-- | drivers/misc/mei/hw-me.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/hw-me.c b/drivers/misc/mei/hw-me.c index befa491e3344..3a95fe7d4e33 100644 --- a/drivers/misc/mei/hw-me.c +++ b/drivers/misc/mei/hw-me.c @@ -561,7 +561,7 @@ static int mei_me_hbuf_write(struct mei_device *dev, dev_dbg(dev->dev, MEI_HDR_FMT, MEI_HDR_PRM((struct mei_msg_hdr *)hdr)); empty_slots = mei_hbuf_empty_slots(dev); - dev_dbg(dev->dev, "empty slots = %hu.\n", empty_slots); + dev_dbg(dev->dev, "empty slots = %d.\n", empty_slots); if (empty_slots < 0) return -EOVERFLOW; |