mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Srishti Sharma <srishtishar@gmail.com>
Cc: kbuild-all@01.org, gregkh@linuxfoundation.org,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
	outreachy-kernel@googlegroups.com,
	Srishti Sharma <srishtishar@gmail.com>
Subject: Re: [PATCH v2] Staging: rtl8188eu: core: rtw_mlme_ext: Use list_for_each_entry_safe
Date: Fri, 20 Oct 2017 08:09:01 +0800	[thread overview]
Message-ID: <201710200828.YJGmksO1%fengguang.wu@intel.com> (raw)
In-Reply-To: <1507137416-3855-1-git-send-email-srishtishar@gmail.com>

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

Hi Srishti,

[auto build test WARNING on staging/staging-testing]
[also build test WARNING on v4.14-rc5 next-20171018]
[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/Srishti-Sharma/Staging-rtl8188eu-core-rtw_mlme_ext-Use-list_for_each_entry_safe/20171007-080024
config: x86_64-randconfig-v0-10200632 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/staging//rtl8188eu/core/rtw_mlme_ext.c: In function 'tx_beacon_hdl':
>> drivers/staging//rtl8188eu/core/rtw_mlme_ext.c:5449: warning: unused variable 'tmp'

vim +/tmp +5449 drivers/staging//rtl8188eu/core/rtw_mlme_ext.c

  5446	
  5447	u8 tx_beacon_hdl(struct adapter *padapter, unsigned char *pbuf)
  5448	{
> 5449		struct xmit_frame *tmp;
  5450		if (send_beacon(padapter) == _FAIL) {
  5451			DBG_88E("issue_beacon, fail!\n");
  5452			return H2C_PARAMETERS_ERROR;
  5453		}
  5454	#ifdef CONFIG_88EU_AP_MODE
  5455		else { /* tx bc/mc frames after update TIM */
  5456			struct sta_info *psta_bmc;
  5457			struct list_head *xmitframe_plist, *xmitframe_phead;
  5458			struct xmit_frame *pxmitframe = NULL;
  5459			struct sta_priv  *pstapriv = &padapter->stapriv;
  5460	
  5461			/* for BC/MC Frames */
  5462			psta_bmc = rtw_get_bcmc_stainfo(padapter);
  5463			if (!psta_bmc)
  5464				return H2C_SUCCESS;
  5465	
  5466			if ((pstapriv->tim_bitmap&BIT(0)) && (psta_bmc->sleepq_len > 0)) {
  5467				msleep(10);/*  10ms, ATIM(HIQ) Windows */
  5468				spin_lock_bh(&psta_bmc->sleep_q.lock);
  5469	
  5470				xmitframe_phead = get_list_head(&psta_bmc->sleep_q);
  5471				xmitframe_plist = xmitframe_phead->next;
  5472	
  5473				list_for_each_entry_safe(pxmitframe, tmp,
  5474							 xmitframe_plist, list) {
  5475					list_del_init(&pxmitframe->list);
  5476	
  5477					psta_bmc->sleepq_len--;
  5478					if (psta_bmc->sleepq_len > 0)
  5479						pxmitframe->attrib.mdata = 1;
  5480					else
  5481						pxmitframe->attrib.mdata = 0;
  5482	
  5483					pxmitframe->attrib.triggered = 1;
  5484	
  5485					pxmitframe->attrib.qsel = 0x11;/* HIQ */
  5486	
  5487					spin_unlock_bh(&psta_bmc->sleep_q.lock);
  5488					if (rtw_hal_xmit(padapter, pxmitframe))
  5489						rtw_os_xmit_complete(padapter, pxmitframe);
  5490					spin_lock_bh(&psta_bmc->sleep_q.lock);
  5491				}
  5492				spin_unlock_bh(&psta_bmc->sleep_q.lock);
  5493			}
  5494		}
  5495	#endif
  5496		return H2C_SUCCESS;
  5497	}
  5498	

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

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

      parent reply	other threads:[~2017-10-20  0:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-04 17:16 Srishti Sharma
2017-10-05 12:34 ` Dan Carpenter
2017-10-20  0:09 ` 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=201710200828.YJGmksO1%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=srishtishar@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®