diff options
author | Andrew Halaney <ahalaney@redhat.com> | 2023-12-05 17:05:11 -0600 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-12-15 23:17:27 -0600 |
commit | fbfd1f55ad34be14e52b39a1b83ae1f0d29b890c (patch) | |
tree | 3a82ddd6532b0fc6f05367fb117a85b6af6c5241 /drivers/regulator/twl6030-regulator.c | |
parent | a74ebfcd60c649f1bff7c369e432c322ae0a0d6a (diff) | |
download | linux-stable-fbfd1f55ad34be14e52b39a1b83ae1f0d29b890c.tar.gz linux-stable-fbfd1f55ad34be14e52b39a1b83ae1f0d29b890c.tar.bz2 linux-stable-fbfd1f55ad34be14e52b39a1b83ae1f0d29b890c.zip |
soc: qcom: pmic_pdcharger_ulog: Fix hypothetical ulog request message endianess
Sparse reports the following:
% ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make C=2 W=1 drivers/soc/qcom/pmic_pdcharger_ulog.o
...
CC drivers/soc/qcom/pmic_pdcharger_ulog.o
CHECK drivers/soc/qcom/pmic_pdcharger_ulog.c
drivers/soc/qcom/pmic_pdcharger_ulog.c:57:34: warning: incorrect type in initializer (different base types)
drivers/soc/qcom/pmic_pdcharger_ulog.c:57:34: expected restricted __le32 [usertype] owner
drivers/soc/qcom/pmic_pdcharger_ulog.c:57:34: got int
drivers/soc/qcom/pmic_pdcharger_ulog.c:58:33: warning: incorrect type in initializer (different base types)
drivers/soc/qcom/pmic_pdcharger_ulog.c:58:33: expected restricted __le32 [usertype] type
drivers/soc/qcom/pmic_pdcharger_ulog.c:58:33: got int
drivers/soc/qcom/pmic_pdcharger_ulog.c:59:35: warning: incorrect type in initializer (different base types)
drivers/soc/qcom/pmic_pdcharger_ulog.c:59:35: expected restricted __le32 [usertype] opcode
drivers/soc/qcom/pmic_pdcharger_ulog.c:59:35: got int
Let's deal with endianness conversion in the rare case this ever runs
on a big-endian machine (and to quiet down sparse for this file).
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312060355.M0eJtq4X-lkp@intel.com/
Fixes: 086fdb48bc65 ("soc: qcom: add ADSP PDCharger ULOG driver")
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20231205-pmicpdcharger-ulog-fixups-v1-3-71c95162cb84@redhat.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/regulator/twl6030-regulator.c')
0 files changed, 0 insertions, 0 deletions