All of lore.kernel.org
 help / color / mirror / Atom feed
* [xilinx-xlnx:lkp_test 3/3] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:764:62: warning: implicit conversion from 'enum dma_transfer_direction' to 'enum dma_data_direction'
@ 2023-06-12 19:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-06-12 19:41 UTC (permalink / raw)
  To: Sarath Babu Naidu Gaddam; +Cc: oe-kbuild-all, git, Radhey Shyam Pandey

tree:   https://github.com/Xilinx/linux-xlnx lkp_test
head:   008dab8f0109b0f762a72a01e3ffa8a334ec447b
commit: 008dab8f0109b0f762a72a01e3ffa8a334ec447b [3/3] net: axienet: Introduce dmaengine support
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230613/202306130308.SCnGodxn-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/Xilinx/linux-xlnx/commit/008dab8f0109b0f762a72a01e3ffa8a334ec447b
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx lkp_test
        git checkout 008dab8f0109b0f762a72a01e3ffa8a334ec447b
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=alpha olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/net/

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306130308.SCnGodxn-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/skbuff.h:28,
                    from include/linux/if_ether.h:19,
                    from include/linux/etherdevice.h:20,
                    from drivers/net/ethernet/xilinx/xilinx_axienet_main.c:27:
   drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_dma_tx_cb':
>> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:764:62: warning: implicit conversion from 'enum dma_transfer_direction' to 'enum dma_data_direction' [-Wenum-conversion]
     764 |         dma_unmap_sg(lp->dev, axi_skb->sgl, axi_skb->sg_len, DMA_MEM_TO_DEV);
         |                                                              ^~~~~~~~~~~~~~
   include/linux/dma-mapping.h:414:62: note: in definition of macro 'dma_unmap_sg'
     414 | #define dma_unmap_sg(d, s, n, r) dma_unmap_sg_attrs(d, s, n, r, 0)
         |                                                              ^


vim +764 drivers/net/ethernet/xilinx/xilinx_axienet_main.c

   744	
   745	/**
   746	 * axienet_dma_tx_cb - DMA engine callback for TX channel.
   747	 * @data:       Pointer to the axi_skbuff structure
   748	 * @result:     error reporting through dmaengine_result.
   749	 * This function is called by dmaengine driver for TX channel to notify
   750	 * that the transmit is done.
   751	 */
   752	static void axienet_dma_tx_cb(void *data, const struct dmaengine_result *result)
   753	{
   754		struct axi_skbuff *axi_skb = data;
   755	
   756		struct net_device *netdev = axi_skb->skb->dev;
   757		struct axienet_local *lp = netdev_priv(netdev);
   758	
   759		u64_stats_update_begin(&lp->tx_stat_sync);
   760		u64_stats_add(&lp->tx_bytes, axi_skb->skb->len);
   761		u64_stats_add(&lp->tx_packets, 1);
   762		u64_stats_update_end(&lp->tx_stat_sync);
   763	
 > 764		dma_unmap_sg(lp->dev, axi_skb->sgl, axi_skb->sg_len, DMA_MEM_TO_DEV);
   765		dev_kfree_skb_any(axi_skb->skb);
   766		kmem_cache_free(lp->skb_cache, axi_skb);
   767	}
   768	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-12 19:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-12 19:41 [xilinx-xlnx:lkp_test 3/3] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:764:62: warning: implicit conversion from 'enum dma_transfer_direction' to 'enum dma_data_direction' 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.