All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Borkmann <daniel@iogearbox.net>
Cc: oe-kbuild-all@lists.linux.dev,
	Daniel Borkmann <daniel@iogearbox.net>,
	Nikolay Aleksandrov <razor@blackwall.org>
Subject: [cilium:pr/ndo_peer2 4/6] include/linux/stddef.h:8:14: error: called object is not a function or function pointer
Date: Fri, 3 Nov 2023 07:39:37 +0800	[thread overview]
Message-ID: <202311030746.YllMeEVn-lkp@intel.com> (raw)

tree:   https://github.com/cilium/linux.git pr/ndo_peer2
head:   4520680ca55ca7c62b1f520cd43641c93cb4a55a
commit: ff1a15530833e0813ac71476e30905bd5d486667 [4/6] bpf, netkit, veth: Add indirect call wrapper for ndo_get_peer_dev
config: x86_64-randconfig-012-20231103 (https://download.01.org/0day-ci/archive/20231103/202311030746.YllMeEVn-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231103/202311030746.YllMeEVn-lkp@intel.com/reproduce)

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/202311030746.YllMeEVn-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/net/sock.h:62,
                    from include/linux/sock_diag.h:8,
                    from net/core/filter.c:27:
   net/core/filter.c: In function 'netdev_get_peer':
>> include/linux/stddef.h:8:14: error: called object is not a function or function pointer
       8 | #define NULL ((void *)0)
         |              ^
   include/linux/indirect_call_wrapper.h:22:35: note: in definition of macro 'INDIRECT_CALL_2'
      22 |                 likely(f == f2) ? f2(__VA_ARGS__) :                     \
         |                                   ^~
   include/net/netkit.h:43:25: note: in expansion of macro 'NULL'
      43 | # define peer_netkit    NULL
         |                         ^~~~
   net/core/filter.c:2479:40: note: in expansion of macro 'peer_netkit'
    2479 |                                        peer_netkit, peer_veth, dev);
         |                                        ^~~~~~~~~~~
>> include/linux/stddef.h:8:14: error: called object is not a function or function pointer
       8 | #define NULL ((void *)0)
         |              ^
   include/linux/indirect_call_wrapper.h:18:35: note: in definition of macro 'INDIRECT_CALL_1'
      18 |                 likely(f == f1) ? f1(__VA_ARGS__) : f(__VA_ARGS__);     \
         |                                   ^~
   net/core/filter.c:2478:24: note: in expansion of macro 'INDIRECT_CALL_2'
    2478 |                 return INDIRECT_CALL_2(ops->ndo_get_peer_dev,
         |                        ^~~~~~~~~~~~~~~
   include/net/veth.h:12:25: note: in expansion of macro 'NULL'
      12 | #define peer_veth       NULL
         |                         ^~~~
   net/core/filter.c:2479:53: note: in expansion of macro 'peer_veth'
    2479 |                                        peer_netkit, peer_veth, dev);
         |                                                     ^~~~~~~~~


vim +8 include/linux/stddef.h

^1da177e4c3f41 Linus Torvalds   2005-04-16  6  
^1da177e4c3f41 Linus Torvalds   2005-04-16  7  #undef NULL
^1da177e4c3f41 Linus Torvalds   2005-04-16 @8  #define NULL ((void *)0)
6e218287432472 Richard Knutsson 2006-09-30  9  

:::::: The code at line 8 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

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

                 reply	other threads:[~2023-11-02 23:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202311030746.YllMeEVn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel@iogearbox.net \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=razor@blackwall.org \
    /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.