mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/net/ethernet/amazon/ena/ena_netdev.c:160:3: note: in expansion of macro 'xchg'
@ 2020-06-24 16:47 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-24 16:47 UTC (permalink / raw)
  To: Sameeh Jubran; +Cc: kbuild-all, linux-kernel

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

Hi Sameeh,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3e08a95294a4fb3702bb3d35ed08028433c37fe6
commit: 838c93dc5449e5d6378bae117b0a65a122cf7361 net: ena: implement XDP drop support
date:   7 months ago
config: ia64-randconfig-r013-20200624 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
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
        git checkout 838c93dc5449e5d6378bae117b0a65a122cf7361
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/amazon/ena/ena_netdev.c:150:6: warning: no previous prototype for 'ena_xdp_exchange_program_rx_in_range' [-Wmissing-prototypes]
     150 | void ena_xdp_exchange_program_rx_in_range(struct ena_adapter *adapter,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/uapi/asm/intrinsics.h:22,
                    from arch/ia64/include/asm/intrinsics.h:11,
                    from arch/ia64/include/asm/bitops.h:19,
                    from include/linux/bitops.h:26,
                    from include/linux/bitmap.h:8,
                    from include/linux/ethtool.h:16,
                    from drivers/net/ethernet/amazon/ena/ena_netdev.c:38:
   drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_xdp_exchange_program_rx_in_range':
   arch/ia64/include/uapi/asm/cmpxchg.h:57:2: warning: value computed is not used [-Wunused-value]
      57 | ((__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr))))
         | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:160:3: note: in expansion of macro 'xchg'
     160 |   xchg(&rx_ring->xdp_bpf_prog, prog);
         |   ^~~~
   drivers/net/ethernet/amazon/ena/ena_netdev.c: At top level:
   drivers/net/ethernet/amazon/ena/ena_netdev.c:168:6: warning: no previous prototype for 'ena_xdp_exchange_program' [-Wmissing-prototypes]
     168 | void ena_xdp_exchange_program(struct ena_adapter *adapter,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/amazon/ena/ena_netdev.c:1154:5: warning: no previous prototype for 'ena_xdp_handle_buff' [-Wmissing-prototypes]
    1154 | int ena_xdp_handle_buff(struct ena_ring *rx_ring, struct xdp_buff *xdp)
         |     ^~~~~~~~~~~~~~~~~~~

vim +/xchg +160 drivers/net/ethernet/amazon/ena/ena_netdev.c

   149	
   150	void ena_xdp_exchange_program_rx_in_range(struct ena_adapter *adapter,
   151						  struct bpf_prog *prog,
   152						  int first,
   153						  int count)
   154	{
   155		struct ena_ring *rx_ring;
   156		int i = 0;
   157	
   158		for (i = first; i < count; i++) {
   159			rx_ring = &adapter->rx_ring[i];
 > 160			xchg(&rx_ring->xdp_bpf_prog, prog);
   161			if (prog)
   162				rx_ring->rx_headroom = XDP_PACKET_HEADROOM;
   163			else
   164				rx_ring->rx_headroom = 0;
   165		}
   166	}
   167	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33869 bytes --]

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

only message in thread, other threads:[~2020-06-24 16:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24 16:47 drivers/net/ethernet/amazon/ena/ena_netdev.c:160:3: note: in expansion of macro 'xchg' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®