linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: greearb@candelatech.com, ath11k@lists.infradead.org
Cc: kbuild-all@lists.01.org, linux-wireless@vger.kernel.org,
	Ben Greear <greearb@candelatech.com>
Subject: Re: [PATCH 2/2] ath11k:  Add firmware_info file to debugfs
Date: Fri, 28 Aug 2020 09:42:17 +0800	[thread overview]
Message-ID: <202008280931.QIJ8xqzk%lkp@intel.com> (raw)
In-Reply-To: <20200827233002.21483-2-greearb@candelatech.com>

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

Hi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on ath6kl/ath-next]
[also build test ERROR on next-20200827]
[cannot apply to v5.9-rc2]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/greearb-candelatech-com/ath11k-Support-reading-fwcfg-file-for-driver-options/20200828-073256
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath-next
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

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/ath11k/debug.c: In function 'ath11k_read_fwinfo':
>> drivers/net/wireless/ath/ath11k/debug.c:427:7: error: 'ATH11K_HW_QCA6390_HW11' undeclared (first use in this function); did you mean 'ATH11K_HW_QCA6390_HW20'?
     427 |  case ATH11K_HW_QCA6390_HW11:
         |       ^~~~~~~~~~~~~~~~~~~~~~
         |       ATH11K_HW_QCA6390_HW20
   drivers/net/wireless/ath/ath11k/debug.c:427:7: note: each undeclared identifier is reported only once for each function it appears in

# https://github.com/0day-ci/linux/commit/a7df025ce74fb120141d5c66a46febd63b74cb97
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review greearb-candelatech-com/ath11k-Support-reading-fwcfg-file-for-driver-options/20200828-073256
git checkout a7df025ce74fb120141d5c66a46febd63b74cb97
vim +427 drivers/net/wireless/ath/ath11k/debug.c

   400	
   401	static ssize_t ath11k_read_fwinfo(struct file *file,
   402					  char __user *user_buf,
   403					  size_t count, loff_t *ppos)
   404	{
   405		struct ath11k_base *ab = file->private_data;
   406		char *buf;
   407		unsigned int len = 0, buf_len = 1000;
   408		ssize_t ret_cnt;
   409	
   410		buf = kzalloc(buf_len, GFP_KERNEL);
   411		if (!buf)
   412			return -ENOMEM;
   413	
   414		/* TODO:  Locking? */
   415	
   416		len = snprintf(buf, buf_len, "directory: %s\nfwcfg:     fwcfg-%s-%s.txt\nbus:       %s",
   417			       ab->hw_params.fw.dir,
   418			       ath11k_bus_str(ab->hif.bus), dev_name(ab->dev), dev_name(ab->dev));
   419	
   420		/* Just to be safe */
   421		buf[buf_len - 1] = 0;
   422		len = strlen(buf);
   423	
   424		len += snprintf(buf + len, buf_len - len, "\nversion:   0x%0x\nhw_rev:    ",
   425				ab->qmi.target.fw_version);
   426		switch (ab->hw_rev) {
 > 427		case ATH11K_HW_QCA6390_HW11:
   428			len += snprintf(buf + len, buf_len - len, "6390-hw1\n");
   429			break;
   430		case ATH11K_HW_QCA6390_HW20:
   431			len += snprintf(buf + len, buf_len - len, "6390-hw2\n");
   432			break;
   433		case ATH11K_HW_IPQ8074:
   434			len += snprintf(buf + len, buf_len - len, "8074\n");
   435			break;
   436		}
   437	
   438		len += snprintf(buf + len, buf_len - len, "board:     %s\n",
   439				ab->fw_board_name);
   440	
   441		ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len);
   442	
   443		kfree(buf);
   444		return ret_cnt;
   445	}
   446	

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

      reply	other threads:[~2020-08-28  1:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-27 23:30 [PATCH 1/2] ath11k: Support reading fwcfg file for driver options greearb
2020-08-27 23:30 ` [PATCH 2/2] ath11k: Add firmware_info file to debugfs greearb
2020-08-28  1:42   ` kernel test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202008280931.QIJ8xqzk%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ath11k@lists.infradead.org \
    --cc=greearb@candelatech.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).