All of lore.kernel.org
 help / color / mirror / Atom feed
* [jpirko-mlxsw:combined_queue 1009/1044] drivers/net/ethernet/mscc/ocelot_fdma.c:737:38: error: no member named 'dma_addr' in 'struct ocelot_fdma_tx_buf'
@ 2021-12-13  2:03 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-13  2:03 UTC (permalink / raw)
  To: Clément Léger
  Cc: llvm, kbuild-all, linux-kernel, Jakub Kicinski, Vladimir Oltean,
	Alexandre Belloni

tree:   https://github.com/jpirko/linux_mlxsw combined_queue
head:   69ba5a4da9c5d6bbf903d21503643ca69492e34c
commit: 753a026cfec1429c9e32e004ae4d4c2727cc0111 [1009/1044] net: ocelot: add FDMA support
config: i386-randconfig-r013-20211212 (https://download.01.org/0day-ci/archive/20211213/202112130911.uKvnwPy0-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/jpirko/linux_mlxsw/commit/753a026cfec1429c9e32e004ae4d4c2727cc0111
        git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
        git fetch --no-tags jpirko-mlxsw combined_queue
        git checkout 753a026cfec1429c9e32e004ae4d4c2727cc0111
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/amd/display/dc/dce/ drivers/gpu/drm/amd/display/dc/dcn201/ drivers/gpu/drm/amd/display/dc/dcn21/ drivers/gpu/drm/amd/display/dc/dcn30/ drivers/net/ethernet/mscc/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/mscc/ocelot_fdma.c:737:38: error: no member named 'dma_addr' in 'struct ocelot_fdma_tx_buf'
                   dma_unmap_single(ocelot->dev, txb->dma_addr, skb->len,
                                                 ~~~  ^
   include/linux/dma-mapping.h:407:64: note: expanded from macro 'dma_unmap_single'
   #define dma_unmap_single(d, a, s, r) dma_unmap_single_attrs(d, a, s, r, 0)
                                                                  ^
   1 error generated.


vim +737 drivers/net/ethernet/mscc/ocelot_fdma.c

   722	
   723	static void ocelot_fdma_free_tx_ring(struct ocelot *ocelot)
   724	{
   725		struct ocelot_fdma *fdma = ocelot->fdma;
   726		struct ocelot_fdma_tx_ring *tx_ring;
   727		struct ocelot_fdma_tx_buf *txb;
   728		struct sk_buff *skb;
   729		u16 idx;
   730	
   731		tx_ring = &fdma->tx_ring;
   732		idx = tx_ring->next_to_clean;
   733	
   734		while (idx != tx_ring->next_to_use) {
   735			txb = &tx_ring->bufs[idx];
   736			skb = txb->skb;
 > 737			dma_unmap_single(ocelot->dev, txb->dma_addr, skb->len,
   738					 DMA_TO_DEVICE);
   739			dev_kfree_skb_any(skb);
   740			idx = ocelot_fdma_idx_next(idx, OCELOT_FDMA_TX_RING_SIZE);
   741		}
   742	}
   743	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [jpirko-mlxsw:combined_queue 1009/1044] drivers/net/ethernet/mscc/ocelot_fdma.c:737:38: error: no member named 'dma_addr' in 'struct ocelot_fdma_tx_buf'
@ 2021-12-13  2:03 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-13  2:03 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/jpirko/linux_mlxsw combined_queue
head:   69ba5a4da9c5d6bbf903d21503643ca69492e34c
commit: 753a026cfec1429c9e32e004ae4d4c2727cc0111 [1009/1044] net: ocelot: add FDMA support
config: i386-randconfig-r013-20211212 (https://download.01.org/0day-ci/archive/20211213/202112130911.uKvnwPy0-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/jpirko/linux_mlxsw/commit/753a026cfec1429c9e32e004ae4d4c2727cc0111
        git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
        git fetch --no-tags jpirko-mlxsw combined_queue
        git checkout 753a026cfec1429c9e32e004ae4d4c2727cc0111
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/amd/display/dc/dce/ drivers/gpu/drm/amd/display/dc/dcn201/ drivers/gpu/drm/amd/display/dc/dcn21/ drivers/gpu/drm/amd/display/dc/dcn30/ drivers/net/ethernet/mscc/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/mscc/ocelot_fdma.c:737:38: error: no member named 'dma_addr' in 'struct ocelot_fdma_tx_buf'
                   dma_unmap_single(ocelot->dev, txb->dma_addr, skb->len,
                                                 ~~~  ^
   include/linux/dma-mapping.h:407:64: note: expanded from macro 'dma_unmap_single'
   #define dma_unmap_single(d, a, s, r) dma_unmap_single_attrs(d, a, s, r, 0)
                                                                  ^
   1 error generated.


vim +737 drivers/net/ethernet/mscc/ocelot_fdma.c

   722	
   723	static void ocelot_fdma_free_tx_ring(struct ocelot *ocelot)
   724	{
   725		struct ocelot_fdma *fdma = ocelot->fdma;
   726		struct ocelot_fdma_tx_ring *tx_ring;
   727		struct ocelot_fdma_tx_buf *txb;
   728		struct sk_buff *skb;
   729		u16 idx;
   730	
   731		tx_ring = &fdma->tx_ring;
   732		idx = tx_ring->next_to_clean;
   733	
   734		while (idx != tx_ring->next_to_use) {
   735			txb = &tx_ring->bufs[idx];
   736			skb = txb->skb;
 > 737			dma_unmap_single(ocelot->dev, txb->dma_addr, skb->len,
   738					 DMA_TO_DEVICE);
   739			dev_kfree_skb_any(skb);
   740			idx = ocelot_fdma_idx_next(idx, OCELOT_FDMA_TX_RING_SIZE);
   741		}
   742	}
   743	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-13  2:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13  2:03 [jpirko-mlxsw:combined_queue 1009/1044] drivers/net/ethernet/mscc/ocelot_fdma.c:737:38: error: no member named 'dma_addr' in 'struct ocelot_fdma_tx_buf' kernel test robot
2021-12-13  2:03 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.