tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 
master
head:   32d9b70a053a835b4dfb33158fc03795ea103e44
commit: 0dd5759dbb1c9a862e7d90c09d6cf398c45f1100 [428/478] net: remove 
dmaengine.h inclusion from netdevice.h
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 0dd5759dbb1c9a862e7d90c09d6cf398c45f1100
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   In file included from drivers/net//ethernet/ti/netcp_core.c:30:0:
   include/linux/soc/ti/knav_dma.h:129:30: error: field 'direction' has 
incomplete type
     enum dma_transfer_direction direction;
                                 ^~~~~~~~~
   drivers/net//ethernet/ti/netcp_core.c: In function 'netcp_txpipe_open':
>> drivers/net//ethernet/ti/netcp_core.c:1349:21: error: 'DMA_MEM_TO_DEV' 
>> undeclared (first use in this function)
     config.direction = DMA_MEM_TO_DEV;
                        ^~~~~~~~~~~~~~
   drivers/net//ethernet/ti/netcp_core.c:1349:21: note: each undeclared 
identifier is reported only once for each function it appears in
   drivers/net//ethernet/ti/netcp_core.c: In function 
'netcp_setup_navigator_resources':
   drivers/net//ethernet/ti/netcp_core.c:1659:22: error: 'DMA_DEV_TO_MEM' 
undeclared (first use in this function)
     config.direction  = DMA_DEV_TO_MEM;
                         ^~~~~~~~~~~~~~

vim +/DMA_MEM_TO_DEV +1349 drivers/net//ethernet/ti/netcp_core.c

84640e27f Karicheri, Muralidharan 2015-01-15  1340  
84640e27f Karicheri, Muralidharan 2015-01-15  1341  int 
netcp_txpipe_open(struct netcp_tx_pipe *tx_pipe)
84640e27f Karicheri, Muralidharan 2015-01-15  1342  {
84640e27f Karicheri, Muralidharan 2015-01-15  1343      struct device *dev = 
tx_pipe->netcp_device->device;
84640e27f Karicheri, Muralidharan 2015-01-15  1344      struct knav_dma_cfg 
config;
84640e27f Karicheri, Muralidharan 2015-01-15  1345      int ret = 0;
84640e27f Karicheri, Muralidharan 2015-01-15  1346      u8 name[16];
84640e27f Karicheri, Muralidharan 2015-01-15  1347  
84640e27f Karicheri, Muralidharan 2015-01-15  1348      memset(&config, 0, 
sizeof(config));
84640e27f Karicheri, Muralidharan 2015-01-15 @1349      config.direction = 
DMA_MEM_TO_DEV;
84640e27f Karicheri, Muralidharan 2015-01-15  1350      config.u.tx.filt_einfo 
= false;
84640e27f Karicheri, Muralidharan 2015-01-15  1351      
config.u.tx.filt_pswords = false;
84640e27f Karicheri, Muralidharan 2015-01-15  1352      config.u.tx.priority = 
DMA_PRIO_MED_L;
84640e27f Karicheri, Muralidharan 2015-01-15  1353  
84640e27f Karicheri, Muralidharan 2015-01-15  1354      tx_pipe->dma_channel = 
knav_dma_open_channel(dev,
84640e27f Karicheri, Muralidharan 2015-01-15  1355                              
tx_pipe->dma_chan_name, &config);
5b6cb43b4 Ivan Khoronzhuk         2017-05-10  1356      if 
(IS_ERR(tx_pipe->dma_channel)) {
84640e27f Karicheri, Muralidharan 2015-01-15  1357              dev_err(dev, 
"failed opening tx chan(%s)\n",
84640e27f Karicheri, Muralidharan 2015-01-15  1358                      
tx_pipe->dma_chan_name);
5b6cb43b4 Ivan Khoronzhuk         2017-05-10  1359              ret = 
PTR_ERR(tx_pipe->dma_channel);
84640e27f Karicheri, Muralidharan 2015-01-15  1360              goto err;
84640e27f Karicheri, Muralidharan 2015-01-15  1361      }
84640e27f Karicheri, Muralidharan 2015-01-15  1362  
84640e27f Karicheri, Muralidharan 2015-01-15  1363      snprintf(name, 
sizeof(name), "tx-pipe-%s", dev_name(dev));
84640e27f Karicheri, Muralidharan 2015-01-15  1364      tx_pipe->dma_queue = 
knav_queue_open(name, tx_pipe->dma_queue_id,
84640e27f Karicheri, Muralidharan 2015-01-15  1365                              
             KNAV_QUEUE_SHARED);
84640e27f Karicheri, Muralidharan 2015-01-15  1366      if 
(IS_ERR(tx_pipe->dma_queue)) {
84640e27f Karicheri, Muralidharan 2015-01-15  1367              dev_err(dev, 
"Could not open DMA queue for channel \"%s\": %d\n",
84640e27f Karicheri, Muralidharan 2015-01-15  1368                      name, 
ret);
84640e27f Karicheri, Muralidharan 2015-01-15  1369              ret = 
PTR_ERR(tx_pipe->dma_queue);
84640e27f Karicheri, Muralidharan 2015-01-15  1370              goto err;
84640e27f Karicheri, Muralidharan 2015-01-15  1371      }
84640e27f Karicheri, Muralidharan 2015-01-15  1372  
84640e27f Karicheri, Muralidharan 2015-01-15  1373      dev_dbg(dev, "opened tx 
pipe %s\n", name);
84640e27f Karicheri, Muralidharan 2015-01-15  1374      return 0;
84640e27f Karicheri, Muralidharan 2015-01-15  1375  
84640e27f Karicheri, Muralidharan 2015-01-15  1376  err:
84640e27f Karicheri, Muralidharan 2015-01-15  1377      if 
(!IS_ERR_OR_NULL(tx_pipe->dma_channel))
84640e27f Karicheri, Muralidharan 2015-01-15  1378              
knav_dma_close_channel(tx_pipe->dma_channel);
84640e27f Karicheri, Muralidharan 2015-01-15  1379      tx_pipe->dma_channel = 
NULL;
84640e27f Karicheri, Muralidharan 2015-01-15  1380      return ret;
84640e27f Karicheri, Muralidharan 2015-01-15  1381  }
58c11b5fa Karicheri, Muralidharan 2015-01-29  1382  
EXPORT_SYMBOL_GPL(netcp_txpipe_open);
84640e27f Karicheri, Muralidharan 2015-01-15  1383  

:::::: The code at line 1349 was first introduced by commit
:::::: 84640e27f23041d474c31d3362c3e2185ad68ec2 net: netcp: Add Keystone NetCP 
core ethernet driver

:::::: TO: Karicheri, Muralidharan <m-kariche...@ti.com>
:::::: CC: David S. Miller <da...@davemloft.net>

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

Attachment: .config.gz
Description: application/gzip

Reply via email to