summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts
diff options
context:
space:
mode:
authorBill Wendling <morbo@google.com>2022-03-21 10:49:12 -0700
committerArnd Bergmann <arnd@arndb.de>2022-07-04 14:26:51 +0200
commit0ec29ccf94eb4c32570555a882575eca9eec6467 (patch)
treef2882c42fd98318a8cf8a8d9e5822e59117cb142 /arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts
parent7ecd8a7af36efa52fb95fb42ecab03bc4e76c848 (diff)
downloadlinux-stable-0ec29ccf94eb4c32570555a882575eca9eec6467.tar.gz
linux-stable-0ec29ccf94eb4c32570555a882575eca9eec6467.tar.bz2
linux-stable-0ec29ccf94eb4c32570555a882575eca9eec6467.zip
soc: qcom: smem: use correct format characters
When compiling with -Wformat, clang emits the following warnings: drivers/soc/qcom/smem.c:847:41: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] dev_err(smem->dev, "bad host %hu\n", remote_host); ~~~ ^~~~~~~~~~~ %u ./include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err' dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ ./include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap' _p_func(dev, fmt, ##__VA_ARGS__); \ ~~~ ^~~~~~~~~~~ drivers/soc/qcom/smem.c:852:47: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] dev_err(smem->dev, "duplicate host %hu\n", remote_host); ~~~ ^~~~~~~~~~~ %u ./include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err' dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ ./include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap' _p_func(dev, fmt, ##__VA_ARGS__); \ ~~~ ^~~~~~~~~~~ The types of these arguments are unconditionally defined, so this patch updates the format character to the correct one and change type of remote_host to "u16" to match with other types. Signed-off-by: Bill Wendling <morbo@google.com> Tested-by: Justin Stitt <jstitt007@gmail.com> Reviewed-by: Justin Stitt <jstitt007@gmail.com> Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/boot/dts/stm32mp157c-dk2-scmi.dts')
0 files changed, 0 insertions, 0 deletions