Hi,

[auto build test ERROR on wireless-drivers-next/master]
[also build test ERROR on v4.7-rc7 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/Amitkumar-Karwar/mwifiex-add-manufacturing-mode-support/20160713-221253
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git 
master
config: x86_64-randconfig-r0-07162143 (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 errors (new ones prefixed by >>):

   drivers/net/wireless/marvell/mwifiex/main.c:1287:2: error: unknown field 
'num_private_args' specified in initializer
     .num_private_args = ARRAY_SIZE(mwifiex_iwpriv_args),
     ^
   In file included from drivers/net/wireless/marvell/mwifiex/main.h:23:0,
                    from drivers/net/wireless/marvell/mwifiex/main.c:20:
   include/linux/kernel.h:54:25: warning: initialization makes pointer from 
integer without a cast [-Wint-conversion]
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + 
__must_be_array(arr))
                            ^
   drivers/net/wireless/marvell/mwifiex/main.c:1287:22: note: in expansion of 
macro 'ARRAY_SIZE'
     .num_private_args = ARRAY_SIZE(mwifiex_iwpriv_args),
                         ^~~~~~~~~~
   include/linux/kernel.h:54:25: note: (near initialization for 
'mwifiex_iwpriv_handler_def.standard')
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + 
__must_be_array(arr))
                            ^
   drivers/net/wireless/marvell/mwifiex/main.c:1287:22: note: in expansion of 
macro 'ARRAY_SIZE'
     .num_private_args = ARRAY_SIZE(mwifiex_iwpriv_args),
                         ^~~~~~~~~~
   drivers/net/wireless/marvell/mwifiex/main.c:1288:2: error: unknown field 
'private_args' specified in initializer
     .private_args = (struct iw_priv_args *)mwifiex_iwpriv_args,
     ^
   drivers/net/wireless/marvell/mwifiex/main.c:1288:18: warning: initialization 
makes integer from pointer without a cast [-Wint-conversion]
     .private_args = (struct iw_priv_args *)mwifiex_iwpriv_args,
                     ^
   drivers/net/wireless/marvell/mwifiex/main.c:1288:18: note: (near 
initialization for 'mwifiex_iwpriv_handler_def.num_standard')
   drivers/net/wireless/marvell/mwifiex/main.c:1288:18: error: initializer 
element is not computable at load time
   drivers/net/wireless/marvell/mwifiex/main.c:1288:18: note: (near 
initialization for 'mwifiex_iwpriv_handler_def.num_standard')
   drivers/net/wireless/marvell/mwifiex/main.c: In function 
'mwifiex_init_priv_params':
>> drivers/net/wireless/marvell/mwifiex/main.c:1316:5: error: 'struct 
>> net_device' has no member named 'wireless_handlers'; did you mean 
>> 'rx_handler'?
     dev->wireless_handlers = &mwifiex_iwpriv_handler_def;
        ^~

vim +1316 drivers/net/wireless/marvell/mwifiex/main.c

  1282                  "hostcmd"
  1283          },
  1284  };
  1285  
  1286  static struct iw_handler_def mwifiex_iwpriv_handler_def = {
  1287          .num_private_args = ARRAY_SIZE(mwifiex_iwpriv_args),
> 1288          .private_args = (struct iw_priv_args *)mwifiex_iwpriv_args,
  1289  };
  1290  
  1291  /*
  1292   * This function initializes the private structure parameters.
  1293   *
  1294   * The following wait queues are initialized -
  1295   *      - IOCTL wait queue
  1296   *      - Command wait queue
  1297   *      - Statistics wait queue
  1298   *
  1299   * ...and the following default parameters are set -
  1300   *      - Current key index     : Set to 0
  1301   *      - Rate index            : Set to auto
  1302   *      - Media connected       : Set to disconnected
  1303   *      - Adhoc link sensed     : Set to false
  1304   *      - Nick name             : Set to null
  1305   *      - Number of Tx timeout  : Set to 0
  1306   *      - Device address        : Set to current address
  1307   *      - Rx histogram statistc : Set to 0
  1308   *
  1309   * In addition, the CFG80211 work queue is also created.
  1310   */
  1311  void mwifiex_init_priv_params(struct mwifiex_private *priv,
  1312                                struct net_device *dev)
  1313  {
  1314          dev->netdev_ops = &mwifiex_netdev_ops;
  1315          dev->destructor = free_netdev;
> 1316          dev->wireless_handlers = &mwifiex_iwpriv_handler_def;
  1317          /* Initialize private structure */
  1318          priv->current_key_index = 0;
  1319          priv->media_connected = false;

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