All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: samirweng1979 <samirweng1979@163.com>,
	imitsyanko@quantenna.com, geomatsi@gmail.com,
	kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org,
	colin.king@canonical.com
Cc: kbuild-all@lists.01.org, linux-wireless@vger.kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	wengjianfeng <wengjianfeng@yulong.com>
Subject: Re: [PATCH] qtnfmac: remove meaningless goto statement and labels
Date: Thu, 25 Feb 2021 17:07:21 +0800	[thread overview]
Message-ID: <202102251648.iefQDRV3-lkp@intel.com> (raw)
In-Reply-To: <20210225064842.36952-1-samirweng1979@163.com>

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

Hi samirweng1979,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on wireless-drivers-next/master]
[also build test ERROR on wireless-drivers/master sparc-next/master v5.11 next-20210225]
[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/samirweng1979/qtnfmac-remove-meaningless-goto-statement-and-labels/20210225-145714
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master
config: sparc-randconfig-s031-20210225 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-229-g60c1f270-dirty
        # https://github.com/0day-ci/linux/commit/d18bea1fd25dee219ae56343ff9caf9cb6eb1519
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review samirweng1979/qtnfmac-remove-meaningless-goto-statement-and-labels/20210225-145714
        git checkout d18bea1fd25dee219ae56343ff9caf9cb6eb1519
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc 

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/quantenna/qtnfmac/commands.c: In function 'qtnf_cmd_send_change_sta':
>> drivers/net/wireless/quantenna/qtnfmac/commands.c:1901:3: error: label 'out' used but not defined
    1901 |   goto out;
         |   ^~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for FRAME_POINTER
   Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS || MCOUNT
   Selected by
   - LOCKDEP && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && !MIPS && !PPC && !ARM && !S390 && !MICROBLAZE && !ARC && !X86
   - FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86


vim +/out +1901 drivers/net/wireless/quantenna/qtnfmac/commands.c

98f44cb0655cbe Igor Mitsyanko     2017-05-11  1867  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1868  int qtnf_cmd_send_change_sta(struct qtnf_vif *vif, const u8 *mac,
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1869  			     struct station_parameters *params)
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1870  {
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1871  	struct sk_buff *cmd_skb;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1872  	struct qlink_cmd_change_sta *cmd;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1873  	int ret = 0;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1874  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1875  	cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid,
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1876  					    QLINK_CMD_CHANGE_STA,
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1877  					    sizeof(*cmd));
c93fe71c91d0ae Sergey Matyukevich 2018-01-22  1878  	if (!cmd_skb)
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1879  		return -ENOMEM;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1880  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1881  	qtnf_bus_lock(vif->mac->bus);
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1882  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1883  	cmd = (struct qlink_cmd_change_sta *)cmd_skb->data;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1884  	ether_addr_copy(cmd->sta_addr, mac);
4d2a7a1cfa68e3 Igor Mitsyanko     2017-12-19  1885  	cmd->flag_update.mask =
4d2a7a1cfa68e3 Igor Mitsyanko     2017-12-19  1886  		cpu_to_le32(qtnf_encode_sta_flags(params->sta_flags_mask));
4d2a7a1cfa68e3 Igor Mitsyanko     2017-12-19  1887  	cmd->flag_update.value =
4d2a7a1cfa68e3 Igor Mitsyanko     2017-12-19  1888  		cpu_to_le32(qtnf_encode_sta_flags(params->sta_flags_set));
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1889  
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1890  	switch (vif->wdev.iftype) {
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1891  	case NL80211_IFTYPE_AP:
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1892  		cmd->if_type = cpu_to_le16(QLINK_IFTYPE_AP);
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1893  		break;
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1894  	case NL80211_IFTYPE_STATION:
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1895  		cmd->if_type = cpu_to_le16(QLINK_IFTYPE_STATION);
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1896  		break;
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1897  	default:
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1898  		pr_err("unsupported iftype %d\n", vif->wdev.iftype);
63f6982075d890 Colin Ian King     2020-09-25  1899  		dev_kfree_skb(cmd_skb);
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1900  		ret = -EINVAL;
805b28c05c8e04 Sergey Matyukevich 2017-07-28 @1901  		goto out;
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1902  	}
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1903  
c6ed298ffe09fb Sergey Matyukevich 2018-10-05  1904  	ret = qtnf_cmd_send(vif->mac->bus, cmd_skb);
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1905  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1906  	qtnf_bus_unlock(vif->mac->bus);
c6ed298ffe09fb Sergey Matyukevich 2018-10-05  1907  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1908  	return ret;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1909  }
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1910  

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] qtnfmac: remove meaningless goto statement and labels
Date: Thu, 25 Feb 2021 17:07:21 +0800	[thread overview]
Message-ID: <202102251648.iefQDRV3-lkp@intel.com> (raw)
In-Reply-To: <20210225064842.36952-1-samirweng1979@163.com>

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

Hi samirweng1979,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on wireless-drivers-next/master]
[also build test ERROR on wireless-drivers/master sparc-next/master v5.11 next-20210225]
[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/samirweng1979/qtnfmac-remove-meaningless-goto-statement-and-labels/20210225-145714
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master
config: sparc-randconfig-s031-20210225 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-229-g60c1f270-dirty
        # https://github.com/0day-ci/linux/commit/d18bea1fd25dee219ae56343ff9caf9cb6eb1519
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review samirweng1979/qtnfmac-remove-meaningless-goto-statement-and-labels/20210225-145714
        git checkout d18bea1fd25dee219ae56343ff9caf9cb6eb1519
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc 

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/quantenna/qtnfmac/commands.c: In function 'qtnf_cmd_send_change_sta':
>> drivers/net/wireless/quantenna/qtnfmac/commands.c:1901:3: error: label 'out' used but not defined
    1901 |   goto out;
         |   ^~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for FRAME_POINTER
   Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS || MCOUNT
   Selected by
   - LOCKDEP && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && !MIPS && !PPC && !ARM && !S390 && !MICROBLAZE && !ARC && !X86
   - FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86


vim +/out +1901 drivers/net/wireless/quantenna/qtnfmac/commands.c

98f44cb0655cbe Igor Mitsyanko     2017-05-11  1867  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1868  int qtnf_cmd_send_change_sta(struct qtnf_vif *vif, const u8 *mac,
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1869  			     struct station_parameters *params)
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1870  {
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1871  	struct sk_buff *cmd_skb;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1872  	struct qlink_cmd_change_sta *cmd;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1873  	int ret = 0;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1874  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1875  	cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid,
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1876  					    QLINK_CMD_CHANGE_STA,
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1877  					    sizeof(*cmd));
c93fe71c91d0ae Sergey Matyukevich 2018-01-22  1878  	if (!cmd_skb)
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1879  		return -ENOMEM;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1880  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1881  	qtnf_bus_lock(vif->mac->bus);
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1882  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1883  	cmd = (struct qlink_cmd_change_sta *)cmd_skb->data;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1884  	ether_addr_copy(cmd->sta_addr, mac);
4d2a7a1cfa68e3 Igor Mitsyanko     2017-12-19  1885  	cmd->flag_update.mask =
4d2a7a1cfa68e3 Igor Mitsyanko     2017-12-19  1886  		cpu_to_le32(qtnf_encode_sta_flags(params->sta_flags_mask));
4d2a7a1cfa68e3 Igor Mitsyanko     2017-12-19  1887  	cmd->flag_update.value =
4d2a7a1cfa68e3 Igor Mitsyanko     2017-12-19  1888  		cpu_to_le32(qtnf_encode_sta_flags(params->sta_flags_set));
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1889  
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1890  	switch (vif->wdev.iftype) {
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1891  	case NL80211_IFTYPE_AP:
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1892  		cmd->if_type = cpu_to_le16(QLINK_IFTYPE_AP);
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1893  		break;
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1894  	case NL80211_IFTYPE_STATION:
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1895  		cmd->if_type = cpu_to_le16(QLINK_IFTYPE_STATION);
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1896  		break;
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1897  	default:
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1898  		pr_err("unsupported iftype %d\n", vif->wdev.iftype);
63f6982075d890 Colin Ian King     2020-09-25  1899  		dev_kfree_skb(cmd_skb);
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1900  		ret = -EINVAL;
805b28c05c8e04 Sergey Matyukevich 2017-07-28 @1901  		goto out;
805b28c05c8e04 Sergey Matyukevich 2017-07-28  1902  	}
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1903  
c6ed298ffe09fb Sergey Matyukevich 2018-10-05  1904  	ret = qtnf_cmd_send(vif->mac->bus, cmd_skb);
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1905  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1906  	qtnf_bus_unlock(vif->mac->bus);
c6ed298ffe09fb Sergey Matyukevich 2018-10-05  1907  
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1908  	return ret;
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1909  }
98f44cb0655cbe Igor Mitsyanko     2017-05-11  1910  

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

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

  reply	other threads:[~2021-02-25  9:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25  6:48 [PATCH] qtnfmac: remove meaningless goto statement and labels samirweng1979
2021-02-25  9:07 ` kernel test robot [this message]
2021-02-25  9:07   ` kernel test robot
2021-02-25 10:04 ` kernel test robot
2021-02-25 10:04   ` kernel test robot
2021-02-25 10:22   ` Kalle Valo
2021-02-25 10:22     ` Kalle Valo
2021-02-25 10:26     ` wengjianfeng

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=202102251648.iefQDRV3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=colin.king@canonical.com \
    --cc=davem@davemloft.net \
    --cc=geomatsi@gmail.com \
    --cc=imitsyanko@quantenna.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kuba@kernel.org \
    --cc=kvalo@codeaurora.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=samirweng1979@163.com \
    --cc=wengjianfeng@yulong.com \
    /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 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.