Netdev List
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org
Subject: [net-next:master 428/478] include/linux/soc/ti/knav_dma.h:129:30: error: field 'direction' has incomplete type
Date: Sun, 3 Sep 2017 08:23:22 +0800	[thread overview]
Message-ID: <201709030818.QYu34r2Y%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4312 bytes --]

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-keystone_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/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;
                         ^~~~~~~~~~~~~~
--
   In file included from drivers/net/ethernet/ti/netcp.h:25:0,
                    from drivers/net/ethernet/ti/netcp_ethss.c:31:
>> include/linux/soc/ti/knav_dma.h:129:30: error: field 'direction' has incomplete type
     enum dma_transfer_direction direction;
                                 ^~~~~~~~~
--
   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 +/direction +129 include/linux/soc/ti/knav_dma.h

88139ed0 Santosh Shilimkar 2014-03-30  121  
88139ed0 Santosh Shilimkar 2014-03-30  122  /**
88139ed0 Santosh Shilimkar 2014-03-30  123   * struct knav_dma_cfg:	Pktdma channel configuration
88139ed0 Santosh Shilimkar 2014-03-30  124   * @sl_cfg:			Slave configuration
88139ed0 Santosh Shilimkar 2014-03-30  125   * @tx:				Tx channel configuration
88139ed0 Santosh Shilimkar 2014-03-30  126   * @rx:				Rx flow configuration
88139ed0 Santosh Shilimkar 2014-03-30  127   */
88139ed0 Santosh Shilimkar 2014-03-30  128  struct knav_dma_cfg {
88139ed0 Santosh Shilimkar 2014-03-30 @129  	enum dma_transfer_direction direction;
88139ed0 Santosh Shilimkar 2014-03-30  130  	union {
88139ed0 Santosh Shilimkar 2014-03-30  131  		struct knav_dma_tx_cfg	tx;
88139ed0 Santosh Shilimkar 2014-03-30  132  		struct knav_dma_rx_cfg	rx;
88139ed0 Santosh Shilimkar 2014-03-30  133  	} u;
88139ed0 Santosh Shilimkar 2014-03-30  134  };
88139ed0 Santosh Shilimkar 2014-03-30  135  

:::::: The code at line 129 was first introduced by commit
:::::: 88139ed030583557751e279968e13e892ae10825 soc: ti: add Keystone Navigator DMA support

:::::: TO: Santosh Shilimkar <santosh.shilimkar@ti.com>
:::::: CC: Santosh Shilimkar <santosh.shilimkar@ti.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 20668 bytes --]

                 reply	other threads:[~2017-09-03  0:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201709030818.QYu34r2Y%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=kbuild-all@01.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox