public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild@lists.01.org, Tamizh Chelvam <tamizhr@codeaurora.org>
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>,
	kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Kalle Valo <kvalo@codeaurora.org>
Subject: drivers/net/wireless/ath/ath10k/mac.c:9125 ath10k_mac_op_set_tid_config() error: uninitialized symbol 'ret'.
Date: Tue, 3 Nov 2020 13:00:37 +0300	[thread overview]
Message-ID: <20201103100037.GE12347@kadam> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3cea11cd5e3b00d91caf0b4730194039b45c5891
commit: 7b2531d93bac6bea67e9c7f49901e9e8796d6d57 ath10k: Add new api to support TID specific configuration
config: x86_64-randconfig-m031-20201102 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

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

smatch warnings:
drivers/net/wireless/ath/ath10k/mac.c:9125 ath10k_mac_op_set_tid_config() error: uninitialized symbol 'ret'.

vim +/ret +9125 drivers/net/wireless/ath/ath10k/mac.c

7b2531d93bac6be Tamizh Chelvam  2020-08-19  9089  static int ath10k_mac_op_set_tid_config(struct ieee80211_hw *hw,
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9090  					struct ieee80211_vif *vif,
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9091  					struct ieee80211_sta *sta,
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9092  					struct cfg80211_tid_config *tid_config)
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9093  {
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9094  	struct ath10k *ar = hw->priv;
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9095  	struct ath10k_vif *arvif = (void *)vif->drv_priv;
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9096  	struct ath10k_mac_iter_tid_conf_data data = {};
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9097  	struct wmi_per_peer_per_tid_cfg_arg arg = {};
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9098  	int ret, i;
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9099  
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9100  	mutex_lock(&ar->conf_mutex);
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9101  	arg.vdev_id = arvif->vdev_id;
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9102  
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9103  	memset(arvif->tid_conf_changed, 0, sizeof(arvif->tid_conf_changed));
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9104  
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9105  	for (i = 0; i < tid_config->n_tid_conf; i++) {
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9106  		ret = ath10k_mac_parse_tid_config(ar, sta, vif,
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9107  						  &tid_config->tid_conf[i],
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9108  						  &arg);
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9109  		if (ret)
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9110  			goto exit;
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9111  	}
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9112  
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9113  	if (sta)
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9114  		goto exit;
                                                                ^^^^^^^^^^

7b2531d93bac6be Tamizh Chelvam  2020-08-19  9115  
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9116  	ret = 0;
                                                        ^^^^^^^^
Probably just move this to the "int ret = 0;" start of the function?

7b2531d93bac6be Tamizh Chelvam  2020-08-19  9117  	data.curr_vif = vif;
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9118  	data.ar = ar;
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9119  
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9120  	ieee80211_iterate_stations_atomic(hw, ath10k_mac_vif_stations_tid_conf,
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9121  					  &data);
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9122  
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9123  exit:
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9124  	mutex_unlock(&ar->conf_mutex);
7b2531d93bac6be Tamizh Chelvam  2020-08-19 @9125  	return ret;
7b2531d93bac6be Tamizh Chelvam  2020-08-19  9126  }

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

             reply	other threads:[~2020-11-03 10:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-03 10:00 Dan Carpenter [this message]
2020-11-03 10:09 ` drivers/net/wireless/ath/ath10k/mac.c:9125 ath10k_mac_op_set_tid_config() error: uninitialized symbol 'ret' Kalle Valo

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=20201103100037.GE12347@kadam \
    --to=dan.carpenter@oracle.com \
    --cc=error27@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kbuild@lists.01.org \
    --cc=kvalo@codeaurora.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=tamizhr@codeaurora.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