Messages in this thread | | | Date | Mon, 13 Dec 2021 10:03:12 +0800 | From | kernel test robot <> | Subject | [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' |
| |
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
| |