linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Srinivasan Raju <srini.raju@purelifi.com>
Cc: kbuild-all@lists.01.org, mostafa.afgani@purelifi.com,
	Srinivasan Raju <srini.raju@purelifi.com>,
	Kalle Valo <kvalo@codeaurora.org>,
	Jakub Kicinski <kuba@kernel.org>,
	open list <linux-kernel@vger.kernel.org>,
	"open list:NETWORKING DRIVERS (WIRELESS)" 
	<linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 2/2] [v19 2/2] wireless: Initial driver submission for pureLiFi STA devices
Date: Mon, 25 Oct 2021 01:58:30 +0800	[thread overview]
Message-ID: <202110250104.QMv2Kvsi-lkp@intel.com> (raw)
In-Reply-To: <20211012125102.138297-3-srini.raju@purelifi.com>

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

Hi Srinivasan,

I love your patch! Yet something to improve:

[auto build test ERROR on kvalo-wireless-drivers-next/master]
[also build test ERROR on kvalo-wireless-drivers/master jberg-mac80211/master v5.15-rc6]
[cannot apply to jberg-mac80211-next/master next-20211022]
[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/Srinivasan-Raju/nl80211-Add-LC-placeholder-band-definition-to-enum-nl80211_band/20211012-215200
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/7a077cc97d6f22264e6c9ac98d9e904ca908ccba
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Srinivasan-Raju/nl80211-Add-LC-placeholder-band-definition-to-enum-nl80211_band/20211012-215200
        git checkout 7a077cc97d6f22264e6c9ac98d9e904ca908ccba
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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/purelifi/plfxlc/mac.c: In function 'purelifi_mac_rx':
>> drivers/net/wireless/purelifi/plfxlc/mac.c:424:28: error: variable 'min_exp_seq_nmb' set but not used [-Werror=unused-but-set-variable]
     424 |  static unsigned short int min_exp_seq_nmb;
         |                            ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/min_exp_seq_nmb +424 drivers/net/wireless/purelifi/plfxlc/mac.c

   412	
   413	int purelifi_mac_rx(struct ieee80211_hw *hw, const u8 *buffer,
   414			    unsigned int length)
   415	{
   416		struct purelifi_mac *mac = purelifi_hw_mac(hw);
   417		struct ieee80211_rx_status stats;
   418		const struct rx_status *status;
   419		struct sk_buff *skb;
   420		int bad_frame = 0;
   421		__le16 fc;
   422		int need_padding;
   423		unsigned int payload_length;
 > 424		static unsigned short int min_exp_seq_nmb;
   425		int sidx;
   426		struct purelifi_usb_tx *tx;
   427		/* Packet blockade during disabled interface. */
   428		if (!mac->vif)
   429			return 0;
   430	
   431		memset(&stats, 0, sizeof(stats));
   432		status = (struct rx_status *)buffer;
   433	
   434		stats.flag     = 0;
   435		stats.freq     = 2412;
   436		stats.band     = NL80211_BAND_LC;
   437		mac->rssi      = -15 * be16_to_cpu(status->rssi) / 10;
   438	
   439		stats.signal   = mac->rssi;
   440	
   441		if (status->rate_idx > 7)
   442			stats.rate_idx = 0;
   443		else
   444			stats.rate_idx = status->rate_idx;
   445	
   446		mac->crc_errors = be64_to_cpu(status->crc_error_count);
   447	
   448		if (!bad_frame &&
   449		    purelifi_filter_ack(hw, (struct ieee80211_hdr *)buffer, &stats) &&
   450		    !mac->pass_ctrl)
   451			return 0;
   452	
   453		buffer += sizeof(struct rx_status);
   454		payload_length = get_unaligned_be32(buffer);
   455	
   456		/* MTU = 1500, MAC header = 36, CRC = 4, sum = 1540 */
   457		if (payload_length > 1560) {
   458			dev_err(purelifi_mac_dev(mac), " > MTU %u\n", payload_length);
   459			return 0;
   460		}
   461		buffer += sizeof(u32);
   462	
   463		fc = get_unaligned((__le16 *)buffer);
   464		need_padding = ieee80211_is_data_qos(fc) ^ ieee80211_has_a4(fc);
   465	
   466		tx = &mac->chip.usb.tx;
   467	
   468		for (sidx = 0; sidx < MAX_STA_NUM - 1; sidx++) {
   469			if (memcmp(&buffer[10], tx->station[sidx].mac, ETH_ALEN))
   470				continue;
   471			if (tx->station[sidx].flag & STATION_CONNECTED_FLAG) {
   472				tx->station[sidx].flag |= STATION_HEARTBEAT_FLAG;
   473				break;
   474			}
   475		}
   476	
   477		if (sidx == MAX_STA_NUM - 1) {
   478			for (sidx = 0; sidx < MAX_STA_NUM - 1; sidx++) {
   479				if (tx->station[sidx].flag & STATION_CONNECTED_FLAG)
   480					continue;
   481				memcpy(tx->station[sidx].mac, &buffer[10], ETH_ALEN);
   482				tx->station[sidx].flag |= STATION_CONNECTED_FLAG;
   483				tx->station[sidx].flag |= STATION_HEARTBEAT_FLAG;
   484				break;
   485			}
   486		}
   487	
   488		switch (buffer[0]) {
   489		case IEEE80211_STYPE_PROBE_REQ:
   490			dev_dbg(purelifi_mac_dev(mac), "Probe request\n");
   491			break;
   492		case IEEE80211_STYPE_ASSOC_REQ:
   493			dev_dbg(purelifi_mac_dev(mac), "Association request\n");
   494			break;
   495		case IEEE80211_STYPE_AUTH:
   496			dev_dbg(purelifi_mac_dev(mac), "Authentication req\n");
   497			min_exp_seq_nmb = 0;
   498			break;
   499		case IEEE80211_FTYPE_DATA:
   500			dev_dbg(purelifi_mac_dev(mac), "802.11 data frame\n");
   501			break;
   502		}
   503	
   504		skb = dev_alloc_skb(payload_length + (need_padding ? 2 : 0));
   505		if (!skb)
   506			return -ENOMEM;
   507	
   508		if (need_padding)
   509			/* Make sure that the payload data is 4 byte aligned. */
   510			skb_reserve(skb, 2);
   511	
   512		skb_put_data(skb, buffer, payload_length);
   513		memcpy(IEEE80211_SKB_RXCB(skb), &stats, sizeof(stats));
   514		ieee80211_rx_irqsafe(hw, skb);
   515		return 0;
   516	}
   517	

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

  parent reply	other threads:[~2021-10-24 17:59 UTC|newest]

Thread overview: 118+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-24 15:18 [PATCH] staging: Initial driver submission for pureLiFi devices Srinivasan Raju
2020-09-24 15:36 ` Greg Kroah-Hartman
2020-09-24 17:24   ` Srinivasan Raju
2020-09-24 17:29     ` Greg Kroah-Hartman
2020-09-28 10:25       ` Srinivasan Raju
2020-09-24 15:37 ` Greg Kroah-Hartman
2020-09-24 18:28 ` Randy Dunlap
2020-09-28 10:27   ` Srinivasan Raju
2020-09-24 19:07 ` Dan Carpenter
2020-09-28 10:26   ` Srinivasan Raju
2020-09-28 10:19 ` [PATCH] [v2] wireless: " Srinivasan Raju
2020-09-28 12:07   ` Joe Perches
2020-09-28 12:53     ` Srinivasan Raju
2020-09-30  5:16   ` Leon Romanovsky
2020-09-30  5:29     ` Srinivasan Raju
2020-09-30  8:01     ` Kalle Valo
2020-09-30  9:55       ` Leon Romanovsky
2020-09-30 10:11         ` Johannes Berg
2020-09-30 10:44           ` Leon Romanovsky
2020-10-16  8:23             ` Kalle Valo
2020-09-30  8:05     ` Kalle Valo
2020-09-30 10:04       ` Leon Romanovsky
2020-10-14  6:19   ` [PATCH] [PATCH] [v3] wireless: Initial driver submission for pureLiFi STA devices Srinivasan Raju
2020-10-14 10:17     ` kernel test robot
2020-10-15 22:35     ` Joe Perches
2020-10-16  6:36       ` Srinivasan Raju
2020-10-16  6:34   ` [PATCH] [v4] " Srinivasan Raju
2020-10-16  8:58     ` Joe Perches
2020-10-16 10:13       ` Srinivasan Raju
2020-10-19  3:17     ` [PATCH] [v5] " Srinivasan Raju
2020-10-19  4:55       ` Joe Perches
2020-10-19  6:05         ` Srinivasan Raju
2020-10-19  8:38       ` [PATCH] [v6] " Srinivasan Raju
2020-10-19 16:07         ` Krishna Chaitanya
2020-10-19 16:40           ` Srinivasan Raju
2020-10-19 16:54             ` Joe Perches
2020-10-19 17:05               ` Srinivasan Raju
2020-11-16  9:22     ` [PATCH] [v7] " Srinivasan Raju
2020-11-16 20:45       ` Joe Perches
2020-11-18  3:24         ` Srinivasan Raju
2020-11-24 14:44       ` Kalle Valo
     [not found]       ` <20201124144448.4E95EC43460@smtp.codeaurora.org>
2020-11-26  5:01         ` Srinivasan Raju
2020-12-03  4:43           ` Srinivasan Raju
2020-12-03 15:58             ` Kalle Valo
2020-12-03 16:50               ` Srinivasan Raju
2020-12-19 13:15                 ` Kalle Valo
2020-12-03  4:38   ` [PATCH] [v8] " Srinivasan Raju
2020-12-03  5:09   ` [PATCH] [v9] " Srinivasan Raju
2020-12-03  7:53     ` Joe Perches
2020-12-08  5:53   ` [PATCH] [v10] " Srinivasan Raju
2020-12-08 11:57   ` [PATCH] [v11] " Srinivasan Raju
2020-12-08 14:37     ` Kalle Valo
2020-12-19 12:51     ` Kalle Valo
2020-12-19 13:06     ` Kalle Valo
2020-12-19 13:14     ` Kalle Valo
2020-12-21  5:52       ` Srinivasan Raju
2020-12-21  5:57         ` Kalle Valo
2021-01-15 12:13           ` Srinivasan Raju
2021-01-05 13:19   ` [PATCH] [PATCH] [v12] " Srinivasan Raju
2021-02-12 11:49   ` [PATCH] [v13] " Srinivasan Raju
2021-02-12 13:44     ` Johannes Berg
2021-02-17 10:05       ` Kalle Valo
2021-02-19  5:15       ` Srinivasan Raju
2021-02-19  8:25         ` Johannes Berg
2021-02-24 10:41           ` Srinivasan Raju
2021-02-12 15:06     ` kernel test robot
2021-02-12 17:57     ` kernel test robot
2021-02-17 10:02     ` Kalle Valo
2021-02-17 10:13       ` Kalle Valo
2021-02-17 10:16         ` Srinivasan Raju
2021-02-17 10:09     ` Kalle Valo
2021-02-17 10:19     ` Kalle Valo
2021-02-24 10:44       ` Srinivasan Raju
2021-02-26 13:07   ` [PATCH] [v14] " Srinivasan Raju
2021-04-19 11:52     ` Srinivasan Raju
2021-08-10 13:02       ` Srinivasan Raju
2021-08-21 13:42         ` Kalle Valo
2021-08-18 14:13     ` [PATCH] [v15] " Srinivasan Raju
2021-09-20 13:05       ` Kalle Valo
     [not found]         ` <CWLP265MB3217BB5AA5F102629A3AD204E0A19@CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM>
2021-09-21 12:30           ` [EXTERNAL] " Kalle Valo
2021-09-22  7:33             ` Johannes Berg
2021-09-24 13:27               ` [EXTERNAL] " Srinivasan Raju
2021-09-20 14:11       ` Kalle Valo
2021-09-24 11:11       ` Kalle Valo
2021-09-24 13:26   ` [PATCH] [v16] wireless: Initial driver submission for pureLiFi LiFi Station Srinivasan Raju
2021-09-24 13:40     ` Kalle Valo
2021-10-05 11:22   ` [PATCH] [v17] wireless: Initial driver submission for pureLiFi STA devices Srinivasan Raju
2021-10-05 11:26     ` Johannes Berg
2021-10-05 12:30   ` [PATCH] [v18 1/2] nl80211: Add LC placeholder band definition to enum nl80211_band Srinivasan Raju
2021-10-05 12:31   ` [PATCH] [v18 2/2] wireless: Initial driver submission for pureLiFi STA devices Srinivasan Raju
2021-10-05 22:09     ` Jeff Johnson
2021-10-06 10:04   ` [PATCH] [v19 " Srinivasan Raju
2021-10-11  6:16     ` Kalle Valo
2021-10-12 12:50   ` [PATCH 0/2] wireless: New Driver " Srinivasan Raju
2021-10-12 12:50     ` [PATCH 1/2] [v19 1/2] nl80211: Add LC placeholder band definition to enum nl80211_band Srinivasan Raju
2021-10-12 12:50     ` [PATCH 2/2] [v19 2/2] wireless: Initial driver submission for pureLiFi STA devices Srinivasan Raju
2021-10-14  6:03       ` kernel test robot
2021-10-24 17:58       ` kernel test robot [this message]
2021-10-18 10:00   ` [PATCH v20 0/2] wireless: New Driver " Srinivasan Raju
2021-10-18 10:00     ` [PATCH v20 1/2] nl80211: Add LC placeholder band definition to nl80211_band Srinivasan Raju
2021-10-18 10:00     ` [PATCH v20 2/2] wireless: Initial driver submission for pureLiFi STA devices Srinivasan Raju
2021-10-25  9:59       ` Kari Argillander
     [not found]         ` <CWLP265MB321780AB502EF147F6AAF197E0839@CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM>
2021-10-25 12:17           ` [EXTERNAL] " Kalle Valo
2021-10-27 11:34       ` kernel test robot
2021-10-27 12:38       ` Kari Argillander
2021-10-28  7:24         ` Kalle Valo
2021-10-31 13:10   ` [PATCH v21 0/2] wireless: New Driver " Srinivasan Raju
2021-10-31 13:10     ` [PATCH 1/2] nl80211: Add LC placeholder band definition to nl80211_band Srinivasan Raju
2021-10-31 13:10     ` [PATCH 2/2] wireless: Initial driver submission for pureLiFi STA devices Srinivasan Raju
2021-12-20 19:13       ` Kalle Valo
2022-02-24 15:35       ` Kalle Valo
2022-02-24 18:20   ` [PATCH v22 0/2] wireless: New Driver " Srinivasan Raju
2022-02-24 18:20     ` [PATCH v22 1/2] nl80211: Add LC placeholder band definition to nl80211_band Srinivasan Raju
2022-02-25  9:52       ` Kalle Valo
2022-02-24 18:20     ` [PATCH v22 1/2] wireless: Initial driver submission for pureLiFi STA devices Srinivasan Raju
2022-04-25 13:06       ` Kalle Valo
     [not found]         ` <CWLP265MB32173F6188304F6B2CB90C79E0F89@CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM>
2022-04-26  4:17           ` [EXTERNAL] " Kalle Valo
2022-04-27  4:55       ` 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=202110250104.QMv2Kvsi-lkp@intel.com \
    --to=lkp@intel.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=mostafa.afgani@purelifi.com \
    --cc=srini.raju@purelifi.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;
as well as URLs for NNTP newsgroup(s).