Hi,

[auto build test ERROR on wireless-drivers-next/master]
[also build test ERROR on v4.7-rc5 next-20160630]
[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-hostcmd-wext-ioctl-support/20160630-231444
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git 
master
config: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
        wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All error/warnings (new ones prefixed by >>):

   drivers/net/wireless/marvell/mwifiex/main.c: In function 'mwifiex_do_ioctl':
   drivers/net/wireless/marvell/mwifiex/main.c:1220:20: error: 'struct 
mwifiex_adapter' has no member named 'mfg_mode'
     if (!priv->adapter->mfg_mode)
                       ^
   drivers/net/wireless/marvell/mwifiex/main.c: At top level:
>> drivers/net/wireless/marvell/mwifiex/main.c:1260: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:1260: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:1260:22: note: in expansion of 
>> macro 'ARRAY_SIZE'
     .num_private_args = ARRAY_SIZE(mwifiex_iwpriv_args),
                         ^
>> drivers/net/wireless/marvell/mwifiex/main.c:1261: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:1261: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:1261:18: note: (near 
initialization for 'mwifiex_iwpriv_handler_def.num_standard')
>> drivers/net/wireless/marvell/mwifiex/main.c:1261:18: error: initializer 
>> element is not computable at load time
   drivers/net/wireless/marvell/mwifiex/main.c:1261:18: note: (near 
initialization for 'mwifiex_iwpriv_handler_def.num_standard')

vim +/num_private_args +1260 drivers/net/wireless/marvell/mwifiex/main.c

  1214  static int mwifiex_do_ioctl(struct net_device *dev, struct ifreq *req, 
int cmd)
  1215  {
  1216          struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
  1217          struct iwreq *wrq = (struct iwreq *)req;
  1218          int ret;
  1219  
> 1220          if (!priv->adapter->mfg_mode)
  1221                  return -EINVAL;
  1222  
  1223          dev_dbg(priv->adapter->dev, "ioctl cmd = 0x%x\n", cmd);
  1224  
  1225          switch (cmd) {
  1226          case MWIFIEX_HOSTCMD_IOCTL:
  1227                  ret = mwifiex_process_host_command(priv, wrq);
  1228                  break;
  1229          default:
  1230                  ret = -EINVAL;
  1231                  break;
  1232          }
  1233  
  1234          return ret;
  1235  }
  1236  
  1237  /* Network device handlers */
  1238  static const struct net_device_ops mwifiex_netdev_ops = {
  1239          .ndo_open = mwifiex_open,
  1240          .ndo_stop = mwifiex_close,
  1241          .ndo_start_xmit = mwifiex_hard_start_xmit,
  1242          .ndo_set_mac_address = mwifiex_set_mac_address,
  1243          .ndo_do_ioctl = mwifiex_do_ioctl,
  1244          .ndo_validate_addr = eth_validate_addr,
  1245          .ndo_tx_timeout = mwifiex_tx_timeout,
  1246          .ndo_get_stats = mwifiex_get_stats,
  1247          .ndo_set_rx_mode = mwifiex_set_multicast_list,
  1248          .ndo_select_queue = mwifiex_netdev_select_wmm_queue,
  1249          };
  1250  
  1251  static const struct iw_priv_args mwifiex_iwpriv_args[] = {
  1252          {       MWIFIEX_HOSTCMD_IOCTL,
  1253                  IW_PRIV_TYPE_BYTE | 2047,
  1254                  IW_PRIV_TYPE_BYTE | 2047,
  1255                  "hostcmd"
  1256          },
  1257  };
  1258  
  1259  static struct iw_handler_def mwifiex_iwpriv_handler_def = {
> 1260          .num_private_args = ARRAY_SIZE(mwifiex_iwpriv_args),
> 1261          .private_args = (struct iw_priv_args *)mwifiex_iwpriv_args,
  1262  };
  1263  
  1264  /*

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