ath10k.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [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 &
@ 2020-06-23 17:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-23 17:58 UTC (permalink / raw)
  To: Govind Singh; +Cc: clang-built-linux, kbuild-all, ath10k, Kalle Valo

[-- Attachment #1: Type: text/plain, Size: 4840 bytes --]

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@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@codeaurora.org>
:::::: CC: Kalle Valo <kvalo@codeaurora.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 75301 bytes --]

[-- Attachment #3: Type: text/plain, Size: 146 bytes --]

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-23 17:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-23 17:58 [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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).