Hi Arend,

[auto build test WARNING on mac80211-next/master]
[also build test WARNING on next-20160223]
[cannot apply to v4.5-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:    
https://github.com/0day-ci/linux/commits/Arend-van-Spriel/nl80211-add-feature-for-BSS-selection-support/20160224-203113
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git 
master
config: i386-randconfig-x003-201608 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   net/wireless/nl80211.c: In function 'is_band_valid':
>> net/wireless/nl80211.c:5791:11: warning: comparison between 'enum 
>> nl80211_band' and 'enum ieee80211_band' [-Wenum-compare]
     return b < IEEE80211_NUM_BANDS && wiphy->bands[b];
              ^

vim +5791 net/wireless/nl80211.c

  5775                   * and don't require drivers to check that the
  5776                   * channel list they get isn't longer than what
  5777                   * they can scan, as long as they can scan all
  5778                   * the channels they registered at once.
  5779                   */
  5780                  nla_for_each_nested(attr2, freqs, tmp2)
  5781                          if (attr1 != attr2 &&
  5782                              nla_get_u32(attr1) == nla_get_u32(attr2))
  5783                                  return 0;
  5784          }
  5785  
  5786          return n_channels;
  5787  }
  5788  
  5789  static bool is_band_valid(struct wiphy *wiphy, enum nl80211_band b)
  5790  {
> 5791          return b < IEEE80211_NUM_BANDS && wiphy->bands[b];
  5792  }
  5793  
  5794  static int parse_bss_select(struct nlattr *nla, struct wiphy *wiphy,
  5795                              struct cfg80211_bss_selection *bss_select)
  5796  {
  5797          struct nlattr *attr[NL80211_BSS_SELECT_ATTR_MAX + 1];
  5798          struct nlattr *nest;
  5799          int err;

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

Attachment: .config.gz
Description: Binary data

Reply via email to