All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvalo-ath:pending-deferred 60/60] drivers/net/wireless/ath/ath10k/core.c:2689:18: error: implicit declaration of function 'ath10k_coredump_get_hw_mem_layout'; did you mean 'ath10k_coredump_get_mem_layout'?
@ 2021-10-11 11:25 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-10-11 11:25 UTC (permalink / raw)
  To: Abinaya Kalaiselvan
  Cc: kbuild-all, Kalle Valo, ath10k, linux-kernel, Jouni Malinen

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending-deferred
head:   a48690826c728470cf9af57afc24022b5d7ed448
commit: a48690826c728470cf9af57afc24022b5d7ed448 [60/60] ath10k: Fix device boot error
config: nios2-randconfig-r003-20211011 (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?id=a48690826c728470cf9af57afc24022b5d7ed448
        git remote add kvalo-ath https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
        git fetch --no-tags kvalo-ath pending-deferred
        git checkout a48690826c728470cf9af57afc24022b5d7ed448
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/net/wireless/ath/ath10k/core.c: In function 'ath10k_core_copy_target_iram':
>> drivers/net/wireless/ath/ath10k/core.c:2689:18: error: implicit declaration of function 'ath10k_coredump_get_hw_mem_layout'; did you mean 'ath10k_coredump_get_mem_layout'? [-Werror=implicit-function-declaration]
    2689 |         hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                  ath10k_coredump_get_mem_layout
   drivers/net/wireless/ath/ath10k/core.c:2689:16: warning: assignment to 'const struct ath10k_hw_mem_layout *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2689 |         hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
         |                ^
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SERIAL_CORE_CONSOLE
   Depends on TTY && HAS_IOMEM
   Selected by
   - EARLY_PRINTK


vim +2689 drivers/net/wireless/ath/ath10k/core.c

  2678	
  2679	static int ath10k_core_copy_target_iram(struct ath10k *ar)
  2680	{
  2681		const struct ath10k_hw_mem_layout *hw_mem;
  2682		const struct ath10k_mem_region *tmp, *mem_region = NULL;
  2683		dma_addr_t paddr;
  2684		void *vaddr = NULL;
  2685		u8 num_read_itr;
  2686		int i, ret;
  2687		u32 len, remaining_len;
  2688	
> 2689		hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
  2690		if (!hw_mem)
  2691			return -ENOMEM;
  2692	
  2693		for (i = 0; i < hw_mem->region_table.size; i++) {
  2694			tmp = &hw_mem->region_table.regions[i];
  2695			if (tmp->type == ATH10K_MEM_REGION_TYPE_REG) {
  2696				mem_region = tmp;
  2697				break;
  2698			}
  2699		}
  2700	
  2701		if (!mem_region)
  2702			return -ENOMEM;
  2703	
  2704		for (i = 0; i < ar->wmi.num_mem_chunks; i++) {
  2705			if (ar->wmi.mem_chunks[i].req_id ==
  2706			    WMI_IRAM_RECOVERY_HOST_MEM_REQ_ID) {
  2707				vaddr = ar->wmi.mem_chunks[i].vaddr;
  2708				len = ar->wmi.mem_chunks[i].len;
  2709				break;
  2710			}
  2711		}
  2712	
  2713		if (!vaddr || !len) {
  2714			ath10k_warn(ar, "No allocated memory for IRAM back up");
  2715			return -ENOMEM;
  2716		}
  2717	
  2718		len = (len < mem_region->len) ? len : mem_region->len;
  2719		paddr = mem_region->start;
  2720		num_read_itr = len / TGT_IRAM_READ_PER_ITR;
  2721		remaining_len = len % TGT_IRAM_READ_PER_ITR;
  2722		for (i = 0; i < num_read_itr; i++) {
  2723			ret = ath10k_hif_diag_read(ar, paddr, vaddr,
  2724						   TGT_IRAM_READ_PER_ITR);
  2725			if (ret) {
  2726				ath10k_warn(ar, "failed to copy firmware IRAM contents: %d",
  2727					    ret);
  2728				return ret;
  2729			}
  2730	
  2731			paddr += TGT_IRAM_READ_PER_ITR;
  2732			vaddr += TGT_IRAM_READ_PER_ITR;
  2733		}
  2734	
  2735		if (remaining_len) {
  2736			ret = ath10k_hif_diag_read(ar, paddr, vaddr, remaining_len);
  2737			if (ret) {
  2738				ath10k_warn(ar, "failed to copy firmware IRAM contents: %d",
  2739					    ret);
  2740				return ret;
  2741			}
  2742		}
  2743	
  2744		ath10k_dbg(ar, ATH10K_DBG_BOOT, "target IRAM back up completed\n");
  2745	
  2746		return 0;
  2747	}
  2748	

---
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: 36409 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [kvalo-ath:pending-deferred 60/60] drivers/net/wireless/ath/ath10k/core.c:2689:18: error: implicit declaration of function 'ath10k_coredump_get_hw_mem_layout'; did you mean 'ath10k_coredump_get_mem_layout'?
@ 2021-10-11 11:25 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-10-11 11:25 UTC (permalink / raw)
  To: Abinaya Kalaiselvan
  Cc: kbuild-all, Kalle Valo, ath10k, linux-kernel, Jouni Malinen

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending-deferred
head:   a48690826c728470cf9af57afc24022b5d7ed448
commit: a48690826c728470cf9af57afc24022b5d7ed448 [60/60] ath10k: Fix device boot error
config: nios2-randconfig-r003-20211011 (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?id=a48690826c728470cf9af57afc24022b5d7ed448
        git remote add kvalo-ath https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
        git fetch --no-tags kvalo-ath pending-deferred
        git checkout a48690826c728470cf9af57afc24022b5d7ed448
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/net/wireless/ath/ath10k/core.c: In function 'ath10k_core_copy_target_iram':
>> drivers/net/wireless/ath/ath10k/core.c:2689:18: error: implicit declaration of function 'ath10k_coredump_get_hw_mem_layout'; did you mean 'ath10k_coredump_get_mem_layout'? [-Werror=implicit-function-declaration]
    2689 |         hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                  ath10k_coredump_get_mem_layout
   drivers/net/wireless/ath/ath10k/core.c:2689:16: warning: assignment to 'const struct ath10k_hw_mem_layout *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2689 |         hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
         |                ^
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SERIAL_CORE_CONSOLE
   Depends on TTY && HAS_IOMEM
   Selected by
   - EARLY_PRINTK


vim +2689 drivers/net/wireless/ath/ath10k/core.c

  2678	
  2679	static int ath10k_core_copy_target_iram(struct ath10k *ar)
  2680	{
  2681		const struct ath10k_hw_mem_layout *hw_mem;
  2682		const struct ath10k_mem_region *tmp, *mem_region = NULL;
  2683		dma_addr_t paddr;
  2684		void *vaddr = NULL;
  2685		u8 num_read_itr;
  2686		int i, ret;
  2687		u32 len, remaining_len;
  2688	
> 2689		hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
  2690		if (!hw_mem)
  2691			return -ENOMEM;
  2692	
  2693		for (i = 0; i < hw_mem->region_table.size; i++) {
  2694			tmp = &hw_mem->region_table.regions[i];
  2695			if (tmp->type == ATH10K_MEM_REGION_TYPE_REG) {
  2696				mem_region = tmp;
  2697				break;
  2698			}
  2699		}
  2700	
  2701		if (!mem_region)
  2702			return -ENOMEM;
  2703	
  2704		for (i = 0; i < ar->wmi.num_mem_chunks; i++) {
  2705			if (ar->wmi.mem_chunks[i].req_id ==
  2706			    WMI_IRAM_RECOVERY_HOST_MEM_REQ_ID) {
  2707				vaddr = ar->wmi.mem_chunks[i].vaddr;
  2708				len = ar->wmi.mem_chunks[i].len;
  2709				break;
  2710			}
  2711		}
  2712	
  2713		if (!vaddr || !len) {
  2714			ath10k_warn(ar, "No allocated memory for IRAM back up");
  2715			return -ENOMEM;
  2716		}
  2717	
  2718		len = (len < mem_region->len) ? len : mem_region->len;
  2719		paddr = mem_region->start;
  2720		num_read_itr = len / TGT_IRAM_READ_PER_ITR;
  2721		remaining_len = len % TGT_IRAM_READ_PER_ITR;
  2722		for (i = 0; i < num_read_itr; i++) {
  2723			ret = ath10k_hif_diag_read(ar, paddr, vaddr,
  2724						   TGT_IRAM_READ_PER_ITR);
  2725			if (ret) {
  2726				ath10k_warn(ar, "failed to copy firmware IRAM contents: %d",
  2727					    ret);
  2728				return ret;
  2729			}
  2730	
  2731			paddr += TGT_IRAM_READ_PER_ITR;
  2732			vaddr += TGT_IRAM_READ_PER_ITR;
  2733		}
  2734	
  2735		if (remaining_len) {
  2736			ret = ath10k_hif_diag_read(ar, paddr, vaddr, remaining_len);
  2737			if (ret) {
  2738				ath10k_warn(ar, "failed to copy firmware IRAM contents: %d",
  2739					    ret);
  2740				return ret;
  2741			}
  2742		}
  2743	
  2744		ath10k_dbg(ar, ATH10K_DBG_BOOT, "target IRAM back up completed\n");
  2745	
  2746		return 0;
  2747	}
  2748	

---
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: 36409 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] 3+ messages in thread

* [kvalo-ath:pending-deferred 60/60] drivers/net/wireless/ath/ath10k/core.c:2689:18: error: implicit declaration of function 'ath10k_coredump_get_hw_mem_layout'; did you mean 'ath10k_coredump_get_mem_layout'?
@ 2021-10-11 11:25 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-10-11 11:25 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending-deferred
head:   a48690826c728470cf9af57afc24022b5d7ed448
commit: a48690826c728470cf9af57afc24022b5d7ed448 [60/60] ath10k: Fix device boot error
config: nios2-randconfig-r003-20211011 (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?id=a48690826c728470cf9af57afc24022b5d7ed448
        git remote add kvalo-ath https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
        git fetch --no-tags kvalo-ath pending-deferred
        git checkout a48690826c728470cf9af57afc24022b5d7ed448
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/net/wireless/ath/ath10k/core.c: In function 'ath10k_core_copy_target_iram':
>> drivers/net/wireless/ath/ath10k/core.c:2689:18: error: implicit declaration of function 'ath10k_coredump_get_hw_mem_layout'; did you mean 'ath10k_coredump_get_mem_layout'? [-Werror=implicit-function-declaration]
    2689 |         hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                  ath10k_coredump_get_mem_layout
   drivers/net/wireless/ath/ath10k/core.c:2689:16: warning: assignment to 'const struct ath10k_hw_mem_layout *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2689 |         hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
         |                ^
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SERIAL_CORE_CONSOLE
   Depends on TTY && HAS_IOMEM
   Selected by
   - EARLY_PRINTK


vim +2689 drivers/net/wireless/ath/ath10k/core.c

  2678	
  2679	static int ath10k_core_copy_target_iram(struct ath10k *ar)
  2680	{
  2681		const struct ath10k_hw_mem_layout *hw_mem;
  2682		const struct ath10k_mem_region *tmp, *mem_region = NULL;
  2683		dma_addr_t paddr;
  2684		void *vaddr = NULL;
  2685		u8 num_read_itr;
  2686		int i, ret;
  2687		u32 len, remaining_len;
  2688	
> 2689		hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
  2690		if (!hw_mem)
  2691			return -ENOMEM;
  2692	
  2693		for (i = 0; i < hw_mem->region_table.size; i++) {
  2694			tmp = &hw_mem->region_table.regions[i];
  2695			if (tmp->type == ATH10K_MEM_REGION_TYPE_REG) {
  2696				mem_region = tmp;
  2697				break;
  2698			}
  2699		}
  2700	
  2701		if (!mem_region)
  2702			return -ENOMEM;
  2703	
  2704		for (i = 0; i < ar->wmi.num_mem_chunks; i++) {
  2705			if (ar->wmi.mem_chunks[i].req_id ==
  2706			    WMI_IRAM_RECOVERY_HOST_MEM_REQ_ID) {
  2707				vaddr = ar->wmi.mem_chunks[i].vaddr;
  2708				len = ar->wmi.mem_chunks[i].len;
  2709				break;
  2710			}
  2711		}
  2712	
  2713		if (!vaddr || !len) {
  2714			ath10k_warn(ar, "No allocated memory for IRAM back up");
  2715			return -ENOMEM;
  2716		}
  2717	
  2718		len = (len < mem_region->len) ? len : mem_region->len;
  2719		paddr = mem_region->start;
  2720		num_read_itr = len / TGT_IRAM_READ_PER_ITR;
  2721		remaining_len = len % TGT_IRAM_READ_PER_ITR;
  2722		for (i = 0; i < num_read_itr; i++) {
  2723			ret = ath10k_hif_diag_read(ar, paddr, vaddr,
  2724						   TGT_IRAM_READ_PER_ITR);
  2725			if (ret) {
  2726				ath10k_warn(ar, "failed to copy firmware IRAM contents: %d",
  2727					    ret);
  2728				return ret;
  2729			}
  2730	
  2731			paddr += TGT_IRAM_READ_PER_ITR;
  2732			vaddr += TGT_IRAM_READ_PER_ITR;
  2733		}
  2734	
  2735		if (remaining_len) {
  2736			ret = ath10k_hif_diag_read(ar, paddr, vaddr, remaining_len);
  2737			if (ret) {
  2738				ath10k_warn(ar, "failed to copy firmware IRAM contents: %d",
  2739					    ret);
  2740				return ret;
  2741			}
  2742		}
  2743	
  2744		ath10k_dbg(ar, ATH10K_DBG_BOOT, "target IRAM back up completed\n");
  2745	
  2746		return 0;
  2747	}
  2748	

---
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: 36409 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-11 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-11 11:25 [kvalo-ath:pending-deferred 60/60] drivers/net/wireless/ath/ath10k/core.c:2689:18: error: implicit declaration of function 'ath10k_coredump_get_hw_mem_layout'; did you mean 'ath10k_coredump_get_mem_layout'? kernel test robot
2021-10-11 11:25 ` kernel test robot
2021-10-11 11:25 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.