All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Clément Léger" <clement.leger@bootlin.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>,
	Vladimir Oltean <vladimir.oltean@nxp.com>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>
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'
Date: Mon, 13 Dec 2021 10:03:12 +0800	[thread overview]
Message-ID: <202112130911.uKvnwPy0-lkp@intel.com> (raw)

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
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'
Date: Mon, 13 Dec 2021 10:03:12 +0800	[thread overview]
Message-ID: <202112130911.uKvnwPy0-lkp@intel.com> (raw)

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

             reply	other threads:[~2021-12-13  2:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-13  2:03 kernel test robot [this message]
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

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=202112130911.uKvnwPy0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=clement.leger@bootlin.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=vladimir.oltean@nxp.com \
    /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 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.