Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* include/net/route.h:176:63: warning: omitting the parameter name in a function definition is a C2x extension
@ 2026-10-01 16:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-01 16:58 UTC (permalink / raw)
  To: Fernando Fernandez Mancera; +Cc: llvm, oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Fernando-Fernandez-Mancera/ipv4-introduce-CONFIG_IPV4-to-decouple-the-IPv4-stack/20260928-212957
head:   9699ec4e92ef081fbb0e1a4247538ba53e5b17bf
commit: 809c9f483b87854f5b7ede3ce9ac6e372855169c net: core: add IPv4 fallback stubs and guards for CONFIG_IPV4=n
date:   3 days ago
config: um-randconfig-2000-20261001 (https://download.01.org/0day-ci/archive/20261001/202610011836.LY2TSmkY-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261001/202610011836.LY2TSmkY-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/202610011836.LY2TSmkY-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from fs/eventpoll.c:23:
   In file included from include/linux/syscalls.h:95:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:24:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
    1209 |         return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                                   ~~~~~~~~~~ ^
   In file included from fs/eventpoll.c:42:
   In file included from include/net/busy_poll.h:18:
   In file included from include/net/ip.h:30:
>> include/net/route.h:176:63: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
     176 | static inline struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp,
         |                                                               ^
   2 warnings generated.


vim +176 include/net/route.h

   171	
   172	#if IS_ENABLED(CONFIG_IPV4)
   173	struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp,
   174					    const struct sock *sk);
   175	#else
 > 176	static inline struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp,
   177							  const struct sock *sk)
   178	{
   179		return ERR_PTR(-EAFNOSUPPORT);
   180	}
   181	#endif
   182	struct dst_entry *ipv4_blackhole_route(struct net *net,
   183					       struct dst_entry *dst_orig);
   184	

--
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:[~2026-10-01 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-01 16:58 include/net/route.h:176:63: warning: omitting the parameter name in a function definition is a C2x extension 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