[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202312051637.EOZ86jSh-lkp@intel.com>
Date: Tue, 5 Dec 2023 16:23:13 +0800
From: kernel test robot <lkp@...el.com>
To: YangXin <yx.0xffff@...il.com>, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com
Cc: oe-kbuild-all@...ts.linux.dev, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: ___neigh_lookup_noref(): remove redundant parameters
Hi YangXin,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
[also build test WARNING on net/main linus/master v6.7-rc4 next-20231205]
[cannot apply to horms-ipvs/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/YangXin/net-___neigh_lookup_noref-remove-redundant-parameters/20231205-030205
base: net-next/main
patch link: https://lore.kernel.org/r/20231204185943.68-1-yx.0xffff%40gmail.com
patch subject: [PATCH] net: ___neigh_lookup_noref(): remove redundant parameters
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20231205/202312051637.EOZ86jSh-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231205/202312051637.EOZ86jSh-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312051637.EOZ86jSh-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/net/route.h:28,
from include/net/ip.h:30,
from include/net/busy_poll.h:18,
from drivers/net/ethernet/sfc/falcon/net_driver.h:29,
from drivers/net/ethernet/sfc/falcon/efx.c:21:
include/net/arp.h: In function '__ipv4_neigh_lookup_noref':
include/net/arp.h:27:64: error: passing argument 3 of '___neigh_lookup_noref' from incompatible pointer type [-Werror=incompatible-pointer-types]
27 | return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, &key, dev);
| ^~~~
| |
| u32 * {aka unsigned int *}
In file included from include/net/dst.h:20,
from include/net/sock.h:66,
from include/linux/tcp.h:19,
from drivers/net/ethernet/sfc/falcon/efx.c:15:
include/net/neighbour.h:296:28: note: expected 'struct net_device *' but argument is of type 'u32 *' {aka 'unsigned int *'}
296 | struct net_device *dev)
| ~~~~~~~~~~~~~~~~~~~^~~
include/net/arp.h:27:16: error: too many arguments to function '___neigh_lookup_noref'
27 | return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, &key, dev);
| ^~~~~~~~~~~~~~~~~~~~~
include/net/neighbour.h:293:33: note: declared here
293 | static inline struct neighbour *___neigh_lookup_noref(
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/net/route.h:29:
include/net/ndisc.h: In function '__ipv6_neigh_lookup_noref':
>> include/net/ndisc.h:383:64: warning: passing argument 3 of '___neigh_lookup_noref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
383 | return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, pkey, dev);
| ^~~~
include/net/neighbour.h:296:28: note: expected 'struct net_device *' but argument is of type 'const void *'
296 | struct net_device *dev)
| ~~~~~~~~~~~~~~~~~~~^~~
include/net/ndisc.h:383:16: error: too many arguments to function '___neigh_lookup_noref'
383 | return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, pkey, dev);
| ^~~~~~~~~~~~~~~~~~~~~
include/net/neighbour.h:293:33: note: declared here
293 | static inline struct neighbour *___neigh_lookup_noref(
| ^~~~~~~~~~~~~~~~~~~~~
include/net/ndisc.h: In function '__ipv6_neigh_lookup_noref_stub':
include/net/ndisc.h:390:74: warning: passing argument 3 of '___neigh_lookup_noref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
390 | return ___neigh_lookup_noref(ipv6_stub->nd_tbl, neigh_key_eq128, pkey, dev);
| ^~~~
include/net/neighbour.h:296:28: note: expected 'struct net_device *' but argument is of type 'const void *'
296 | struct net_device *dev)
| ~~~~~~~~~~~~~~~~~~~^~~
include/net/ndisc.h:390:16: error: too many arguments to function '___neigh_lookup_noref'
390 | return ___neigh_lookup_noref(ipv6_stub->nd_tbl, neigh_key_eq128, pkey, dev);
| ^~~~~~~~~~~~~~~~~~~~~
include/net/neighbour.h:293:33: note: declared here
293 | static inline struct neighbour *___neigh_lookup_noref(
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +383 include/net/ndisc.h
380
381 static inline struct neighbour *__ipv6_neigh_lookup_noref(struct net_device *dev, const void *pkey)
382 {
> 383 return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, pkey, dev);
384 }
385
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists