Search Linux Wireless

Re: [PATCH] qtnfmac: remove meaningless goto statement and labels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux