All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [jkirsher-next-queue:dev-queue 28/29] drivers/net//ethernet/intel/ice/ice_xsk.c:487:18: warning: cast to pointer from integer of different size
@ 2019-06-27  1:02 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-06-27  1:02 UTC (permalink / raw)
  To: intel-wired-lan

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git dev-queue
head:   ea7a085c3fea4c5148137baec495e9fdb338956a
commit: 6e8caf6b69ca1fe58b6a8e415d82c4c192759dc3 [28/29] ice: Add support for AF_XDP
config: parisc-allmodconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 6e8caf6b69ca1fe58b6a8e415d82c4c192759dc3
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=parisc 

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

All warnings (new ones prefixed by >>):

   drivers/net//ethernet/intel/ice/ice_xsk.c: In function 'ice_reuse_rx_buf_zc':
>> drivers/net//ethernet/intel/ice/ice_xsk.c:487:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     new_buf->addr = (void *)(((unsigned long)old_buf->addr & mask) + hr);
                     ^

vim +487 drivers/net//ethernet/intel/ice/ice_xsk.c

   465	
   466	/**
   467	 * ice_reuse_rx_buf_zc - reuse an Rx buffer
   468	 * @rx_ring: Rx ring
   469	 * @old_buf: The buffer to recycle
   470	 *
   471	 * This function recycles a finished Rx buffer, and places it on the recycle
   472	 * queue (next_to_alloc).
   473	 */
   474	static void
   475	ice_reuse_rx_buf_zc(struct ice_ring *rx_ring, struct ice_rx_buf *old_buf)
   476	{
   477		unsigned long mask = (unsigned long)rx_ring->xsk_umem->chunk_mask;
   478		u64 hr = rx_ring->xsk_umem->headroom + XDP_PACKET_HEADROOM;
   479		u16 nta = rx_ring->next_to_alloc;
   480		struct ice_rx_buf *new_buf;
   481	
   482		new_buf = &rx_ring->rx_buf[rx_ring->next_to_alloc];
   483		nta++;
   484		rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0;
   485	
   486		new_buf->dma = (old_buf->dma & mask) + hr;
 > 487		new_buf->addr = (void *)(((unsigned long)old_buf->addr & mask) + hr);
   488		new_buf->handle = (old_buf->handle & mask);
   489		new_buf->handle += rx_ring->xsk_umem->headroom;
   490	
   491		old_buf->addr = NULL;
   492	}
   493	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 57337 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20190627/caf3b028/attachment-0001.bin>

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

only message in thread, other threads:[~2019-06-27  1:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-27  1:02 [Intel-wired-lan] [jkirsher-next-queue:dev-queue 28/29] drivers/net//ethernet/intel/ice/ice_xsk.c:487:18: warning: cast to pointer from integer of different size kbuild 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.