[ath6kl:ath11k-qca6390-bringup 30/79] drivers/net/wireless/ath/ath11k/qmi.c:1734:34: warning: incompatible integer to pointer conversion assigning to 'u32 (aka 'unsigned int from 'u32' (aka 'unsigned int'); take the address with &
kernel test robot
lkp at intel.com
Tue Jun 23 13:58:33 EDT 2020
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath11k-qca6390-bringup
head: 646898f8c82ec41059a45f84707f2229c2a5060c
commit: 5c8400135822149588335dfc5812378409c627a9 [30/79] ath11k: Add board-2.bin support for QCA6x90 target
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 1d4c87335d5236ea1f35937e1014980ba961ae34)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 5c8400135822149588335dfc5812378409c627a9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/wireless/ath/ath11k/qmi.c:1734:34: warning: incompatible integer to pointer conversion assigning to 'u32 *' (aka 'unsigned int *') from 'u32' (aka 'unsigned int'); take the address with & [-Wint-conversion]
ab->qmi.target_mem[idx].vaddr = ab->hw_params.bdf_addr;
^ ~~~~~~~~~~~~~~~~~~~~~~
&
1 warning generated.
vim +1734 drivers/net/wireless/ath/ath11k/qmi.c
5c840013582214 Govind Singh 2020-06-05 1725
5c840013582214 Govind Singh 2020-06-05 1726 static int ath11k_qmi_assign_target_mem_chunk(struct ath11k_base *ab)
d5c65159f28953 Kalle Valo 2019-11-23 1727 {
d5c65159f28953 Kalle Valo 2019-11-23 1728 int i, idx;
d5c65159f28953 Kalle Valo 2019-11-23 1729
d5c65159f28953 Kalle Valo 2019-11-23 1730 for (i = 0, idx = 0; i < ab->qmi.mem_seg_count; i++) {
d5c65159f28953 Kalle Valo 2019-11-23 1731 switch (ab->qmi.target_mem[i].type) {
d5c65159f28953 Kalle Valo 2019-11-23 1732 case BDF_MEM_REGION_TYPE:
3b94ae4c62db0b Anilkumar Kolli 2020-06-16 1733 ab->qmi.target_mem[idx].paddr = ab->hw_params.bdf_addr;
3b94ae4c62db0b Anilkumar Kolli 2020-06-16 @1734 ab->qmi.target_mem[idx].vaddr = ab->hw_params.bdf_addr;
d5c65159f28953 Kalle Valo 2019-11-23 1735 ab->qmi.target_mem[idx].size = ab->qmi.target_mem[i].size;
d5c65159f28953 Kalle Valo 2019-11-23 1736 ab->qmi.target_mem[idx].type = ab->qmi.target_mem[i].type;
d5c65159f28953 Kalle Valo 2019-11-23 1737 idx++;
d5c65159f28953 Kalle Valo 2019-11-23 1738 break;
d5c65159f28953 Kalle Valo 2019-11-23 1739 case CALDB_MEM_REGION_TYPE:
d5c65159f28953 Kalle Valo 2019-11-23 1740 if (ab->qmi.target_mem[i].size > ATH11K_QMI_CALDB_SIZE) {
d5c65159f28953 Kalle Valo 2019-11-23 1741 ath11k_warn(ab, "qmi mem size is low to load caldata\n");
d5c65159f28953 Kalle Valo 2019-11-23 1742 return -EINVAL;
d5c65159f28953 Kalle Valo 2019-11-23 1743 }
d5c65159f28953 Kalle Valo 2019-11-23 1744 /* TODO ath11k does not support cold boot calibration */
d5c65159f28953 Kalle Valo 2019-11-23 1745 ab->qmi.target_mem[idx].paddr = 0;
5c840013582214 Govind Singh 2020-06-05 1746 ab->qmi.target_mem[idx].vaddr = NULL;
d5c65159f28953 Kalle Valo 2019-11-23 1747 ab->qmi.target_mem[idx].size = ab->qmi.target_mem[i].size;
d5c65159f28953 Kalle Valo 2019-11-23 1748 ab->qmi.target_mem[idx].type = ab->qmi.target_mem[i].type;
d5c65159f28953 Kalle Valo 2019-11-23 1749 idx++;
d5c65159f28953 Kalle Valo 2019-11-23 1750 break;
d5c65159f28953 Kalle Valo 2019-11-23 1751 default:
d5c65159f28953 Kalle Valo 2019-11-23 1752 ath11k_warn(ab, "qmi ignore invalid mem req type %d\n",
d5c65159f28953 Kalle Valo 2019-11-23 1753 ab->qmi.target_mem[i].type);
d5c65159f28953 Kalle Valo 2019-11-23 1754 break;
d5c65159f28953 Kalle Valo 2019-11-23 1755 }
d5c65159f28953 Kalle Valo 2019-11-23 1756 }
d5c65159f28953 Kalle Valo 2019-11-23 1757 ab->qmi.mem_seg_count = idx;
d5c65159f28953 Kalle Valo 2019-11-23 1758
d5c65159f28953 Kalle Valo 2019-11-23 1759 return 0;
d5c65159f28953 Kalle Valo 2019-11-23 1760 }
d5c65159f28953 Kalle Valo 2019-11-23 1761
:::::: The code at line 1734 was first introduced by commit
:::::: 3b94ae4c62db0b158404073a039eb8fd0b00b75f ath11k: Add bdf-addr in hw_params
:::::: TO: Anilkumar Kolli <akolli at codeaurora.org>
:::::: CC: Kalle Valo <kvalo at codeaurora.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 75301 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath10k/attachments/20200624/104580bd/attachment-0001.gz>
More information about the ath10k
mailing list