[iwlwifi:master 67/70] drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:732:42: sparse: invalid assignment: |=

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

 



Hi Hante,

FYI, there are new sparse warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi.git master
head:   99f314c04ff5f4cfd969f5fbe82d6d0c0a7d8336
commit: e756af5b30b008f6ffcfebf8ad0b477f6f225b62 [67/70] brcmfmac: add e-scan support.

All sparse warnings:

+ drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:732:42: sparse: invalid assignment: |=
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:732:42:    left side has type restricted __le16
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:732:42:    right side has type int
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:734:42: sparse: invalid assignment: |=
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:734:42:    left side has type restricted __le16
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:734:42:    right side has type int
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:737:42: sparse: invalid assignment: |=
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:737:42:    left side has type restricted __le16
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:737:42:    right side has type int
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:738:42: sparse: invalid assignment: |=
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:738:42:    left side has type restricted __le16
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:738:42:    right side has type int
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:740:42: sparse: invalid assignment: |=
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:740:42:    left side has type restricted __le16
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:740:42:    right side has type int
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:743:50: sparse: invalid assignment: |=
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:743:50:    left side has type restricted __le16
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:743:50:    right side has type int
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:745:50: sparse: invalid assignment: |=
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:745:50:    left side has type restricted __le16
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:745:50:    right side has type int
+ drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:750:33: sparse: restricted __le16 degrades to integer
+ drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:748:52: sparse: incorrect type in assignment (different base types)
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:748:52:    expected restricted __le16 <noident>
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:748:52:    got int
+ drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:754:33: sparse: cast from restricted __le16
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:768:39: sparse: incorrect type in assignment (different base types)
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:768:39:    expected unsigned int [unsigned] [addressable] [usertype] SSID_len
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:768:39:    got restricted __le32 [usertype] <noident>
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:2846:40: sparse: restricted __le16 degrades to integer
  drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:2846:52: sparse: restricted __le16 degrades to integer

vim +732 drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
   722		n_channels = request->n_channels;
   723		/* Copy channel array if applicable */
   724		WL_SCAN("### List of channelspecs to scan ### %d\n", n_channels);
   725		if (n_channels > 0) {
   726			for (i = 0; i < n_channels; i++) {
   727				chanspec = 0;
   728				req_channel = request->channels[i];
   729				channel = ieee80211_frequency_to_channel(
   730						req_channel->center_freq);
   731				if (req_channel->band == IEEE80211_BAND_2GHZ)
 > 732					chanspec |= WL_CHANSPEC_BAND_2G;
   733				else
   734					chanspec |= WL_CHANSPEC_BAND_5G;
   735	
   736				if (req_channel->flags & IEEE80211_CHAN_NO_HT40) {
   737					chanspec |= WL_CHANSPEC_BW_20;
   738					chanspec |= WL_CHANSPEC_CTL_SB_NONE;
   739				} else {
   740					chanspec |= WL_CHANSPEC_BW_40;
   741					if (req_channel->flags &
   742							IEEE80211_CHAN_NO_HT40PLUS)

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu, Yuanhan Liu                              Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux