Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp251885rdb; Tue, 5 Dec 2023 04:41:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmeO1JE8645I8aiv3OSXmU3SD/TMU01XI0Dt1wFeXQA522cQx3GG0H8vf4K4P3xitApvgH X-Received: by 2002:a05:6e02:118f:b0:35d:59a2:bd3 with SMTP id y15-20020a056e02118f00b0035d59a20bd3mr3481496ili.105.1701780108339; Tue, 05 Dec 2023 04:41:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701780108; cv=none; d=google.com; s=arc-20160816; b=YWO9bd++tPqvYIcQt1uvfHvXZLOyt8APDUZ+MeDk0fJqtP7S80lNwLOAZTIbBB8BU6 psFctJPQN7HhBMhU1ciJqpEqoLsrl4fp24ziZx0N3jKP/KTMdNiLo2Hr3i4MqxShH9gb zItY5MRBQSYPHOUNxJKnPkzVWgr+PnL1Iqv/e7QVeM0oXa9Oj0tNmUZ61b07Oa8hd/+H wnjLELSP6ZC+wpkBjPRd/M1XWG1g7T3onAKWwwfILDSRFUYsvP+X/GbeAxVKTIZxivJ9 sMg5U6IbhsQmlha231aTPauOnHbukLQreX7dXt9L4C08QFGHL7qmk/nDAGyhKgztqooz 3p1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+Mj1Qk23ha2w+WaXQGonMKBSuHYlaAyuw8wybEkyK7g=; fh=bC6nsAWHsxrjjL5xF0zlKpZOx/qzei1qn8OWdgcoAcQ=; b=SyxwjeZRLfYQn9POvAxxwR2/X6jaK5liWqUiYqJg1wJiTydqVQYPruXWX51Jmh14lT BQJIBeKp6ACxRB+isMMhW3p7trnDqhIIrQ8QFYh0bMt0VXON1VznOP8GAmZBApoL4xMQ vDCEYF3KLqFQJcuWDo2u4nSQmmwKvI8eMNDSW7k/8h02v/RfrojO6js8apbmx8Ac4tcp ggOBF+ljg4/8jU5Y24ZiiSI+9XNmm1EZ/pQsqXlvrDk+zmuzD4ruCov1qA0+iEn5AbRU G7vqLFYey06a8EilLu0GvFgZ80+34OLUu21GnkzkWy2A3Ghx+WMIAy4D8OxqpK1Z+94z E8wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SwvQCpZ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id r9-20020a632b09000000b005b92ab9ce80si5334968pgr.460.2023.12.05.04.41.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 04:41:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SwvQCpZ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B408F80B2D66; Tue, 5 Dec 2023 04:41:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235133AbjLEMlU (ORCPT + 99 others); Tue, 5 Dec 2023 07:41:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345149AbjLEMlP (ORCPT ); Tue, 5 Dec 2023 07:41:15 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D46D7184; Tue, 5 Dec 2023 04:41:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701780081; x=1733316081; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=gI7x2ikpkdZ7RpK/7GfN3p+KmRH/Pqha6bn7RpAGAVA=; b=SwvQCpZ9sgx7ryNURrE87vsbeLKiuyX9ZnI/jtAbbrZCkDKwpbYvMBxE JSasRD4ag/6Puq7LyistTy8Bt/G3MsZtFQc9X2z8efZjCZGPAD7XnFMlm PsX/lZ+3BGRkyEqbgU7MeOK/RSY84W+ZXwusAzxD0QAzDNm1Q/ppVTDzU FfAf3SXk3Y3F3UVH6utrwTNNnh/Cq+fLy6mM8m1nlSa2lhBkaajiX3FcV 2NUkOtBfmN6wBLS45sRZRDS2RM/xRVjxLDJkLxUFnA5GqAJaN8n3Vp/ou IsdrSc8NOlIcfCXCJajEeKBjiDRKGe7Or5AFk86hVFbNLeO+5e6u7M1VY g==; X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="942067" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="942067" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2023 04:41:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="1018209996" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="1018209996" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 05 Dec 2023 04:41:17 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rAUjb-0008ya-1o; Tue, 05 Dec 2023 12:41:09 +0000 Date: Tue, 5 Dec 2023 20:40:54 +0800 From: kernel test robot To: YangXin , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: ___neigh_lookup_noref(): remove redundant parameters Message-ID: <202312052000.xiZkoBI4-lkp@intel.com> References: <20231204185943.68-1-yx.0xffff@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231204185943.68-1-yx.0xffff@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 04:41:44 -0800 (PST) Hi YangXin, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] [also build test ERROR 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: arm-defconfig (https://download.01.org/0day-ci/archive/20231205/202312052000.xiZkoBI4-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231205/202312052000.xiZkoBI4-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202312052000.xiZkoBI4-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from net/socket.c:108: In file included from include/net/busy_poll.h:18: In file included from include/net/ip.h:30: In file included from include/net/route.h:28: >> include/net/arp.h:27:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, &key, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ In file included from net/socket.c:108: In file included from include/net/busy_poll.h:18: In file included from include/net/ip.h:30: In file included from include/net/route.h:29: >> include/net/ndisc.h:383:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ In file included from net/socket.c:108: In file included from include/net/busy_poll.h:18: In file included from include/net/ip.h:30: In file included from include/net/route.h:29: include/net/ndisc.h:390:73: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(ipv6_stub->nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ 3 errors generated. -- In file included from net/core/neighbour.c:30: >> include/net/arp.h:27:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, &key, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ 1 error generated. -- In file included from net/ipv4/route.c:86: In file included from include/net/dst_metadata.h:6: In file included from include/net/ip_tunnels.h:18: In file included from include/net/lwtunnel.h:9: In file included from include/net/route.h:28: >> include/net/arp.h:27:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, &key, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ In file included from net/ipv4/route.c:86: In file included from include/net/dst_metadata.h:6: In file included from include/net/ip_tunnels.h:18: In file included from include/net/lwtunnel.h:9: In file included from include/net/route.h:29: >> include/net/ndisc.h:383:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ In file included from net/ipv4/route.c:86: In file included from include/net/dst_metadata.h:6: In file included from include/net/ip_tunnels.h:18: In file included from include/net/lwtunnel.h:9: In file included from include/net/route.h:29: include/net/ndisc.h:390:73: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(ipv6_stub->nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ net/ipv4/route.c:880:6: warning: variable 'log_martians' set but not used [-Wunused-but-set-variable] int log_martians; ^ 1 warning and 3 errors generated. -- In file included from net/ipv4/igmp.c:91: >> include/net/arp.h:27:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, &key, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ In file included from net/ipv4/igmp.c:92: In file included from include/net/ip.h:30: In file included from include/net/route.h:29: >> include/net/ndisc.h:383:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ In file included from net/ipv4/igmp.c:92: In file included from include/net/ip.h:30: In file included from include/net/route.h:29: include/net/ndisc.h:390:73: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(ipv6_stub->nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ net/ipv4/igmp.c:1915:6: warning: variable 'changerec' set but not used [-Wunused-but-set-variable] int changerec = 0; ^ 1 warning and 3 errors generated. -- In file included from net/ipv6/anycast.c:37: >> include/net/ndisc.h:383:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ In file included from net/ipv6/anycast.c:37: include/net/ndisc.h:390:73: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(ipv6_stub->nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ In file included from net/ipv6/anycast.c:39: In file included from include/net/ip6_route.h:9: In file included from include/net/lwtunnel.h:9: In file included from include/net/route.h:28: >> include/net/arp.h:27:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, &key, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ 3 errors generated. -- In file included from net/ipv6/ip6_fib.c:29: In file included from include/net/ip.h:30: In file included from include/net/route.h:28: >> include/net/arp.h:27:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, &key, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ In file included from net/ipv6/ip6_fib.c:29: In file included from include/net/ip.h:30: In file included from include/net/route.h:29: >> include/net/ndisc.h:383:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ In file included from net/ipv6/ip6_fib.c:29: In file included from include/net/ip.h:30: In file included from include/net/route.h:29: include/net/ndisc.h:390:73: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(ipv6_stub->nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ net/ipv6/ip6_fib.c:1384:25: warning: variable 'pn' set but not used [-Wunused-but-set-variable] struct fib6_node *fn, *pn = NULL; ^ 1 warning and 3 errors generated. -- In file included from net/ipv6/sysctl_net_ipv6.c:15: >> include/net/ndisc.h:383:63: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ In file included from net/ipv6/sysctl_net_ipv6.c:15: include/net/ndisc.h:390:73: error: too many arguments to function call, expected 3, have 4 return ___neigh_lookup_noref(ipv6_stub->nd_tbl, neigh_key_eq128, pkey, dev); ~~~~~~~~~~~~~~~~~~~~~ ^~~ include/net/neighbour.h:293:33: note: '___neigh_lookup_noref' declared here static inline struct neighbour *___neigh_lookup_noref( ^ 2 errors generated. vim +27 include/net/arp.h 20 21 #ifdef CONFIG_INET 22 static inline struct neighbour *__ipv4_neigh_lookup_noref(struct net_device *dev, u32 key) 23 { 24 if (dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) 25 key = INADDR_ANY; 26 > 27 return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, &key, dev); 28 } 29 #else 30 static inline 31 struct neighbour *__ipv4_neigh_lookup_noref(struct net_device *dev, u32 key) 32 { 33 return NULL; 34 } 35 #endif 36 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki