Hi,

[auto build test WARNING on mac80211/master]
[also build test WARNING on v4.7-rc7]
[cannot apply to mac80211-next/master next-20160715]
[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/Alex-Briskin/New-function-ieee80211_is_skb_handled_by_pkt_type/20160715-195540
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211.git 
master
config: x86_64-randconfig-i0-201628 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   net/mac80211/iface.c:1249:11: warning: 'struct ieee80211_sub_if_datai' 
declared inside parameter list will not be visible outside of this definition 
or declaration
       struct ieee80211_sub_if_datai *sdata)
              ^~~~~~~~~~~~~~~~~~~~~~
   net/mac80211/iface.c: In function 'mac80211_is_skb_handled_by_frame_control':
   net/mac80211/iface.c:1251:39: error: dereferencing pointer to incomplete 
type 'struct ieee80211_sub_if_datai'
     struct ieee80211_local *local = sdata->local;
                                          ^~
   net/mac80211/iface.c:1260:26: error: passing argument 1 of 
'sta_info_get_bss' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
      sta = sta_info_get_bss(sdata, mgmt->sa);
                             ^~~~~
   In file included from net/mac80211/ieee80211_i.h:34:0,
                    from net/mac80211/iface.c:21:
   net/mac80211/sta_info.h:644:18: note: expected 'struct ieee80211_sub_if_data 
*' but argument is of type 'struct ieee80211_sub_if_datai *'
    struct sta_info *sta_info_get_bss(struct ieee80211_sub_if_data *sdata,
                     ^~~~~~~~~~~~~~~~
   net/mac80211/iface.c:1272:29: error: passing argument 1 of 
'ieee80211_process_delba' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
        ieee80211_process_delba(sdata, sta, mgmt, len);
                                ^~~~~
   In file included from net/mac80211/iface.c:21:0:
   net/mac80211/ieee80211_i.h:1700:6: note: expected 'struct 
ieee80211_sub_if_data *' but argument is of type 'struct ieee80211_sub_if_datai 
*'
    void ieee80211_process_delba(struct ieee80211_sub_if_data *sdata,
         ^~~~~~~~~~~~~~~~~~~~~~~
   net/mac80211/iface.c:1284:32: error: passing argument 1 of 
'ieee80211_process_mu_groups' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
       ieee80211_process_mu_groups(sdata, mgmt);
                                   ^~~~~
   In file included from net/mac80211/iface.c:21:0:
   net/mac80211/ieee80211_i.h:1737:6: note: expected 'struct 
ieee80211_sub_if_data *' but argument is of type 'struct ieee80211_sub_if_datai 
*'
    void ieee80211_process_mu_groups(struct ieee80211_sub_if_data *sdata,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/mac80211/iface.c:1309:26: error: passing argument 1 of 
'sta_info_get_bss' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
      sta = sta_info_get_bss(sdata, mgmt->sa);
                             ^~~~~
   In file included from net/mac80211/ieee80211_i.h:34:0,
                    from net/mac80211/iface.c:21:
   net/mac80211/sta_info.h:644:18: note: expected 'struct ieee80211_sub_if_data 
*' but argument is of type 'struct ieee80211_sub_if_datai *'
    struct sta_info *sta_info_get_bss(struct ieee80211_sub_if_data *sdata,
                     ^~~~~~~~~~~~~~~~
   In file included from include/asm-generic/bug.h:4:0,
                    from arch/x86/include/asm/bug.h:35,
                    from include/linux/bug.h:4,
                    from include/linux/mmdebug.h:4,
                    from include/linux/gfp.h:4,
                    from include/linux/slab.h:14,
                    from net/mac80211/iface.c:14:
   net/mac80211/iface.c: In function 'ieee80211_iface_work':
   net/mac80211/iface.c:1366:54: error: passing argument 2 of 
'mac80211_is_skb_handled_by_frame_control' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
          !mac80211_is_skb_handled_by_frame_control(skb, sdata)) {
                                                         ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> net/mac80211/iface.c:1365:3: note: in expansion of macro 'if'
      if (!mac80211_is_skb_handled_by_pkt_type(skb, sdata) &&
      ^~
   net/mac80211/iface.c:1248:13: note: expected 'struct ieee80211_sub_if_datai 
*' but argument is of type 'struct ieee80211_sub_if_data *'
    static bool mac80211_is_skb_handled_by_frame_control(struct sk_buff *skb,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/bug.h:4:0,
                    from arch/x86/include/asm/bug.h:35,
                    from include/linux/bug.h:4,
                    from include/linux/mmdebug.h:4,
                    from include/linux/gfp.h:4,
                    from include/linux/slab.h:14,
                    from net/mac80211/iface.c:14:
   net/mac80211/iface.c:1366:54: error: passing argument 2 of 
'mac80211_is_skb_handled_by_frame_control' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
          !mac80211_is_skb_handled_by_frame_control(skb, sdata)) {
                                                         ^
   include/linux/compiler.h:151:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> net/mac80211/iface.c:1365:3: note: in expansion of macro 'if'
      if (!mac80211_is_skb_handled_by_pkt_type(skb, sdata) &&
      ^~
   net/mac80211/iface.c:1248:13: note: expected 'struct ieee80211_sub_if_datai 
*' but argument is of type 'struct ieee80211_sub_if_data *'
    static bool mac80211_is_skb_handled_by_frame_control(struct sk_buff *skb,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/bug.h:4:0,
                    from arch/x86/include/asm/bug.h:35,
                    from include/linux/bug.h:4,
                    from include/linux/mmdebug.h:4,
                    from include/linux/gfp.h:4,
                    from include/linux/slab.h:14,
                    from net/mac80211/iface.c:14:
   net/mac80211/iface.c:1366:54: error: passing argument 2 of 
'mac80211_is_skb_handled_by_frame_control' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
          !mac80211_is_skb_handled_by_frame_control(skb, sdata)) {
                                                         ^
   include/linux/compiler.h:162:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> net/mac80211/iface.c:1365:3: note: in expansion of macro 'if'
      if (!mac80211_is_skb_handled_by_pkt_type(skb, sdata) &&
      ^~
   net/mac80211/iface.c:1248:13: note: expected 'struct ieee80211_sub_if_datai 
*' but argument is of type 'struct ieee80211_sub_if_data *'
    static bool mac80211_is_skb_handled_by_frame_control(struct sk_buff *skb,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/if +1365 net/mac80211/iface.c

  1349          struct ieee80211_sub_if_data *sdata =
  1350                  container_of(work, struct ieee80211_sub_if_data, work);
  1351          struct ieee80211_local *local = sdata->local;
  1352          struct sk_buff *skb;
  1353  
  1354          if (!ieee80211_sdata_running(sdata))
  1355                  return;
  1356  
  1357          if (test_bit(SCAN_SW_SCANNING, &local->scanning))
  1358                  return;
  1359  
  1360          if (!ieee80211_can_run_worker(local))
  1361                  return;
  1362  
  1363          /* first process frames */
  1364          while ((skb = skb_dequeue(&sdata->skb_queue))) {
> 1365                  if (!mac80211_is_skb_handled_by_pkt_type(skb, sdata) &&
  1366                      !mac80211_is_skb_handled_by_frame_control(skb, 
sdata)) {
  1367                          mac80211_skb_handle_by_vif_type(skb, sdata);
  1368                  }
  1369  
  1370                  kfree_skb(skb);
  1371          }
  1372  
  1373          /* then other type-dependent work */

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