CC: [email protected]
CC: [email protected]
TO: Wen Gong <[email protected]>
CC: Kalle Valo <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   1746f4db513563bb22e0ba0c419d0c90912dfae1
commit: 3c45f21af84eb05a355919abc80cf70a3a681cee ath10k: sdio: add firmware 
coredump support
date:   12 months ago
:::::: branch date: 9 hours ago
:::::: commit date: 12 months ago
config: openrisc-randconfig-m031-20210812 (attached as .config)
compiler: or1k-linux-gcc (GCC) 10.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
drivers/net/wireless/ath/ath10k/sdio.c:2223 ath10k_sdio_read_mem() error: 
uninitialized symbol 'ret'.

vim +/ret +2223 drivers/net/wireless/ath/ath10k/sdio.c

3c45f21af84eb0 Wen Gong 2020-08-18  2207  
3c45f21af84eb0 Wen Gong 2020-08-18  2208  static int 
ath10k_sdio_read_mem(struct ath10k *ar, u32 address, void *buf,
3c45f21af84eb0 Wen Gong 2020-08-18  2209                                u32 
buf_len)
3c45f21af84eb0 Wen Gong 2020-08-18  2210  {
3c45f21af84eb0 Wen Gong 2020-08-18  2211        u32 val;
3c45f21af84eb0 Wen Gong 2020-08-18  2212        int i, ret;
3c45f21af84eb0 Wen Gong 2020-08-18  2213  
3c45f21af84eb0 Wen Gong 2020-08-18  2214        for (i = 0; i < buf_len; i += 
4) {
3c45f21af84eb0 Wen Gong 2020-08-18  2215                ret = 
ath10k_sdio_diag_read32(ar, address + i, &val);
3c45f21af84eb0 Wen Gong 2020-08-18  2216                if (ret) {
3c45f21af84eb0 Wen Gong 2020-08-18  2217                        ath10k_warn(ar, 
"unable to read mem %d value\n", address + i);
3c45f21af84eb0 Wen Gong 2020-08-18  2218                        break;
3c45f21af84eb0 Wen Gong 2020-08-18  2219                }
3c45f21af84eb0 Wen Gong 2020-08-18  2220                memcpy(buf + i, &val, 
4);
3c45f21af84eb0 Wen Gong 2020-08-18  2221        }
3c45f21af84eb0 Wen Gong 2020-08-18  2222  
3c45f21af84eb0 Wen Gong 2020-08-18 @2223        return ret;
3c45f21af84eb0 Wen Gong 2020-08-18  2224  }
3c45f21af84eb0 Wen Gong 2020-08-18  2225  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to