linux/drivers/soc/qcom
Bill Wendling 0ec29ccf94 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>
2022-07-04 14:26:51 +02:00
..
apr.c soc: qcom: apr: Remove redundant 'flush_workqueue()' calls 2022-01-31 16:44:47 -06:00
cmd-db.c soc: qcom: cmd-db: allow loading as a module 2020-10-26 16:02:29 -05:00
cpr.c PM: AVS: qcom-cpr: Use div64_ul instead of do_div 2021-12-20 19:10:09 -06:00
Kconfig qcom: spm: allow compile-testing 2021-10-26 20:01:40 +02:00
kryo-l2-accessors.c soc: qcom: kryo-l2-accessors: Fix misnaming of 'val' 2020-11-10 23:23:02 -06:00
llcc-qcom.c soc: qcom: llcc: Add sc8180x and sc8280xp configurations 2022-05-04 11:39:40 -05:00
Makefile soc: qcom: Add Sleep stats driver 2021-10-16 18:23:30 -05:00
mdt_loader.c soc: qcom: mdt_loader: Fix split-firmware condition 2022-02-23 13:13:12 -06:00
ocmem.c soc: qcom: ocmem: Fix missing put_device() call in of_get_ocmem 2022-01-31 16:09:50 -06:00
pdr_interface.c soc: qcom: pdr: replace usage of found with dedicated list iterator variable 2022-04-07 22:20:27 -05:00
pdr_internal.h soc: qcom: pdr: use static for servreg_* variables 2022-05-05 22:08:15 -05:00
qcom_aoss.c soc: qcom: aoss: remove spurious IRQF_ONESHOT flags 2022-01-31 18:12:20 -06:00
qcom_gsbi.c soc: qcom: gsbi: Make use of the helper function devm_platform_ioremap_resource() 2021-09-21 17:41:48 -05:00
qcom_stats.c soc: qcom: stats: Add fixed sleep stats offset for older RPM firmwares 2021-12-20 19:10:09 -06:00
qcom-geni-se.c soc: qcom: geni: Make use of the helper function devm_platform_ioremap_resource() 2021-09-21 17:41:48 -05:00
qmi_encdec.c soc: qcom: Fix typos in the file qmi_encdec.c 2021-03-11 20:22:20 -06:00
qmi_interface.c soc: qcom: qmi: Fix a typo in a comment 2021-11-18 14:21:56 -06:00
rmtfs_mem.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
rpmh-internal.h soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free 2020-09-10 16:56:12 +00:00
rpmh-rsc.c soc: qcom: rpmh-rsc: Fix typo in a comment 2021-12-20 19:10:11 -06:00
rpmh.c soc: qcom: rpmh: Use __fill_rpmh_msg API during rpmh_write() 2020-11-26 11:43:00 -06:00
rpmhpd.c soc: qcom: rpmhpd: add sc8280xp & sa8540p rpmh power-domains 2022-04-28 14:19:57 -05:00
rpmpd.c soc: qcom: rpmpd: Add MSM8226 support 2022-02-24 14:12:34 -06:00
smd-rpm.c soc: qcom: smd-rpm: Add QCM2290 compatible 2021-09-21 17:41:49 -05:00
smem_state.c soc: qcom: smem_state: Add devm_qcom_smem_state_get() 2021-06-23 13:35:12 -05:00
smem.c soc: qcom: smem: use correct format characters 2022-07-04 14:26:51 +02:00
smp2p.c soc: qcom: smp2p: Fix missing of_node_put() in smp2p_parse_ipc 2022-04-07 22:16:29 -05:00
smsm.c soc: qcom: smsm: Fix missing of_node_put() in smsm_parse_ipc 2022-04-07 22:17:03 -05:00
socinfo.c soc: qcom: socinfo: Sort out 8974PRO names 2022-04-19 13:04:01 -05:00
spm.c soc: qcom: spm: Add 8916 SPM register data 2021-10-23 22:15:46 -05:00
trace-rpmh.h drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE 2018-07-21 13:32:31 -05:00
wcnss_ctrl.c soc: qcom: wcnss_ctrl: Allow reading firmware-name from DT 2021-04-05 22:35:06 -05:00