Hi Antonio,

[auto build test WARNING on mac80211-next/master]
[also build test WARNING on v4.3 next-20151113]

url:    
https://github.com/0day-ci/linux/commits/Antonio-Quartulli/nl80211-add-flag-to-force-passive-scan-on-DFS-channels/20151114-025331
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git 
master
config: x86_64-randconfig-s4-11140343 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/linkage.h:4:0,
                    from include/linux/kernel.h:6,
                    from include/linux/skbuff.h:17,
                    from include/linux/if_arp.h:26,
                    from net/mac80211/scan.c:16:
   net/mac80211/scan.c: In function '__ieee80211_start_scan':
   net/mac80211/scan.c:603:9: error: 'chan' undeclared (first use in this 
function)
          ((chan->flags & IEEE80211_CHAN_RADAR) &&
            ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
>> net/mac80211/scan.c:600:3: note: in expansion of macro 'if'
      if ((req->channels[0]->flags &
      ^
   net/mac80211/scan.c:603:9: note: each undeclared identifier is reported only 
once for each function it appears in
          ((chan->flags & IEEE80211_CHAN_RADAR) &&
            ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
>> net/mac80211/scan.c:600:3: note: in expansion of macro 'if'
      if ((req->channels[0]->flags &
      ^
   net/mac80211/scan.c:604:9: error: 'scan_req' undeclared (first use in this 
function)
           (scan_req->flags & NL80211_SCAN_FLAG_PASSIVE_RADAR))) {
            ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
>> net/mac80211/scan.c:600:3: note: in expansion of macro 'if'
      if ((req->channels[0]->flags &
      ^
   net/mac80211/scan.c: In function 'ieee80211_scan_get_channel_time':
   net/mac80211/scan.c:652:8: error: 'scan_req' undeclared (first use in this 
function)
          (scan_req->flags & NL80211_SCAN_FLAG_PASSIVE_RADAR)))
           ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
   net/mac80211/scan.c:650:2: note: in expansion of macro 'if'
     if ((chan->flags & IEEE80211_CHAN_NO_IR) ||
     ^

vim +/if +600 net/mac80211/scan.c

8a690674 Ben Greear        2012-04-17  584               */
8a690674 Ben Greear        2012-04-17  585              unsigned long 
next_delay;
8a690674 Ben Greear        2012-04-17  586  
8a690674 Ben Greear        2012-04-17  587              
__set_bit(SCAN_ONCHANNEL_SCANNING, &local->scanning);
8a690674 Ben Greear        2012-04-17  588  
8a690674 Ben Greear        2012-04-17  589              
ieee80211_recalc_idle(local);
8a690674 Ben Greear        2012-04-17  590  
8a690674 Ben Greear        2012-04-17  591              /* Notify driver scan 
is starting, keep order of operations
8a690674 Ben Greear        2012-04-17  592               * same as normal 
software scan, in case that matters. */
a344d677 Johannes Berg     2014-06-12  593              
drv_sw_scan_start(local, sdata, local->scan_addr);
8a690674 Ben Greear        2012-04-17  594  
8a690674 Ben Greear        2012-04-17  595              
ieee80211_configure_filter(local); /* accept probe-responses */
8a690674 Ben Greear        2012-04-17  596  
8a690674 Ben Greear        2012-04-17  597              /* We need to ensure 
power level is at max for scanning. */
8a690674 Ben Greear        2012-04-17  598              
ieee80211_hw_config(local, 0);
8a690674 Ben Greear        2012-04-17  599  
8a690674 Ben Greear        2012-04-17 @600              if 
((req->channels[0]->flags &
8fe02e16 Luis R. Rodriguez 2013-10-21  601                   
IEEE80211_CHAN_NO_IR) ||
a55b8b39 Antonio Quartulli 2015-11-14  602                  !req->n_ssids ||
a55b8b39 Antonio Quartulli 2015-11-14  603                  ((chan->flags & 
IEEE80211_CHAN_RADAR) &&
a55b8b39 Antonio Quartulli 2015-11-14  604                   (scan_req->flags & 
NL80211_SCAN_FLAG_PASSIVE_RADAR))) {
8a690674 Ben Greear        2012-04-17  605                      next_delay = 
IEEE80211_PASSIVE_CHANNEL_TIME;
8a690674 Ben Greear        2012-04-17  606              } else {
8a690674 Ben Greear        2012-04-17  607                      
ieee80211_scan_state_send_probe(local, &next_delay);
8a690674 Ben Greear        2012-04-17  608                      next_delay = 
IEEE80211_CHANNEL_TIME;

:::::: The code at line 600 was first introduced by commit
:::::: 8a690674e0601efbe9a7b16a5826fc522645cca3 mac80211: Support on-channel 
scan option.

:::::: TO: Ben Greear <[email protected]>
:::::: CC: John W. Linville <[email protected]>

---
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