All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Cc: kbuild-all@01.org, nbd@nbd.name, linux-wireless@vger.kernel.org,
	sgruszka@redhat.com
Subject: Re: [PATCH 12/19] mt76: add mt76x2_tx_common to mt76x2-common module
Date: Mon, 2 Jul 2018 13:32:54 +0800	[thread overview]
Message-ID: <201807021325.70849r2F%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180701141231.25323-13-lorenzo.bianconi@redhat.com>

Hi Lorenzo,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on wireless-drivers-next/master]
[also build test WARNING on v4.18-rc3 next-20180629]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Lorenzo-Bianconi/add-mt76x2u-support-to-mt76-driver/20180701-221609
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master

smatch warnings:
drivers/net/wireless/mediatek/mt76/mt76x2_tx_common.c:35 mt76x2_tx() warn: always true condition '(wcid->hw_key_idx != -1) => (0-255 != (-1))'

vim +35 drivers/net/wireless/mediatek/mt76/mt76x2_tx_common.c

    20	
    21	void mt76x2_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control,
    22		       struct sk_buff *skb)
    23	{
    24		struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
    25		struct mt76x2_dev *dev = hw->priv;
    26		struct ieee80211_vif *vif = info->control.vif;
    27		struct mt76_wcid *wcid = &dev->global_wcid;
    28	
    29		if (control->sta) {
    30			struct mt76x2_sta *msta;
    31	
    32			msta = (struct mt76x2_sta *)control->sta->drv_priv;
    33			wcid = &msta->wcid;
    34			/* sw encrypted frames */
  > 35			if (!info->control.hw_key && wcid->hw_key_idx != -1)
    36				control->sta = NULL;
    37		}
    38	
    39		if (vif && !control->sta) {
    40			struct mt76x2_vif *mvif;
    41	
    42			mvif = (struct mt76x2_vif *)vif->drv_priv;
    43			wcid = &mvif->group_wcid;
    44		}
    45	
    46		mt76_tx(&dev->mt76, control->sta, wcid, skb);
    47	}
    48	EXPORT_SYMBOL_GPL(mt76x2_tx);
    49	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

      reply	other threads:[~2018-07-02  5:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-01 14:12 [PATCH 12/19] mt76: add mt76x2_tx_common to mt76x2-common module Lorenzo Bianconi
2018-07-02  5:32 ` kbuild 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=201807021325.70849r2F%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo.bianconi@redhat.com \
    --cc=nbd@nbd.name \
    --cc=sgruszka@redhat.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.