From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DF1C39734B; Wed, 13 May 2026 03:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778644727; cv=none; b=HzBHgfTdcpnH6ntXFqf9QE7GUCJ5Vup9x30Ety5hX1+AIarSQSUxuZTYEDnWDWEV1HLrv4Dsg3ef17Yav7eyRQHoMZkmZbCdL724xnRNFnboqAD43BS3f+17ZqgpWdpWOshHOit+2hZRI0YmmqW0M+fcY3aLg7sUmSA2lptj1F4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778644727; c=relaxed/simple; bh=Sg1TFdXwRIEWTY6N6UuksjFgzho6T51tj2JYtw4tSy4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h3S81uSV/+gwWwSWeDILiChGaNdIiGpXW0PZTdbH1rWNdDS740zzq2cMjSM1jLZEhoKod2PJYxeceMeg+uV6lTYNTptyQWu1eOtPyTk7YqHlkycp0+Cw4zkVVM36oPw2QZc8arPRPBTJeKQOojw5gV+xRTysh8xYJ8a3slaAt+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=QyGGDJRc; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QyGGDJRc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778644725; x=1810180725; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Sg1TFdXwRIEWTY6N6UuksjFgzho6T51tj2JYtw4tSy4=; b=QyGGDJRcKJ0CPl3o/+xbM9vt4c7c5D6/PXRj30Zm98OpDDg8tlcIGFDr HrdGzVpBx6pKw8R5XvXuZfsv/CrqZ0+FxHwWvyT9x5KsUMzbN+N/hyO0Z DM939zKHc7zhA6n1GR5jz1jX7g2/dLQYGyd6+L09PvJoYzB3JQzagAZ3d pVi3snil8I4kVjtQMCiqegnKRHdpXj8VeHX/ozoui59PSVmuH7L7YRyPG z+3MVm9tNzR+qFO64/755c6ZBbanZtfs+jyUiDt7c/ZDqhomWMUavfPtu 7w/pGUcdSLwWHSg4PxlkyQWHBVEoSlGkB8anYbnWVMJr2oAQiVwBCvoSm Q==; X-CSE-ConnectionGUID: iNzj+emFSPKVx4kokF46Ew== X-CSE-MsgGUID: ZQwcgLUuRpSP8Oqz7klLZg== X-IronPort-AV: E=McAfee;i="6800,10657,11784"; a="90664886" X-IronPort-AV: E=Sophos;i="6.23,232,1770624000"; d="scan'208";a="90664886" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2026 20:58:44 -0700 X-CSE-ConnectionGUID: 9F+8rHa4TJaLsM39ZtJX2w== X-CSE-MsgGUID: 6LCMDD50SsuxC21y8dISpw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,232,1770624000"; d="scan'208";a="276085245" Received: from lkp-server01.sh.intel.com (HELO dca79079c3eb) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 12 May 2026 20:58:41 -0700 Received: from kbuild by dca79079c3eb with local (Exim 4.98.2) (envelope-from ) id 1wN0k1-000000003O7-3JQ0; Wed, 13 May 2026 03:58:37 +0000 Date: Wed, 13 May 2026 11:58:27 +0800 From: kernel test robot To: faicker.mo@gmail.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, kuba@kernel.org, Sridhar Samudrala , Andrew Lunn , Eric Dumazet , Paolo Abeni , Simon Horman , Stanislav Fomichev , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] net: net_failover: Fix the deadlock in slave register Message-ID: <202605131116.TbbaiahQ-lkp@intel.com> References: <20260507074332.2543229-1-faicker.mo@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260507074332.2543229-1-faicker.mo@gmail.com> Hi, 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 v7.1-rc3 next-20260508] [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/faicker-mo-gmail-com/net-net_failover-Fix-the-deadlock-in-slave-register/20260513-045805 base: net-next/main patch link: https://lore.kernel.org/r/20260507074332.2543229-1-faicker.mo%40gmail.com patch subject: [PATCH v3] net: net_failover: Fix the deadlock in slave register config: riscv-defconfig (https://download.01.org/0day-ci/archive/20260513/202605131116.TbbaiahQ-lkp@intel.com/config) compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260513/202605131116.TbbaiahQ-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/202605131116.TbbaiahQ-lkp@intel.com/ All errors (new ones prefixed by >>): >> net/core/failover.c:225:4: error: call to undeclared function 'netdev_lock_ops'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 225 | netdev_lock_ops(dev); | ^ net/core/failover.c:225:4: note: did you mean 'netdev_lock'? include/linux/netdevice.h:2822:20: note: 'netdev_lock' declared here 2822 | static inline void netdev_lock(struct net_device *dev) | ^ >> net/core/failover.c:227:4: error: call to undeclared function 'netdev_unlock_ops'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 227 | netdev_unlock_ops(dev); | ^ 2 errors generated. vim +/netdev_lock_ops +225 net/core/failover.c 213 214 static void 215 failover_existing_slave_register(struct net_device *failover_dev) 216 { 217 struct net *net = dev_net(failover_dev); 218 struct net_device *dev; 219 220 rtnl_lock(); 221 for_each_netdev(net, dev) { 222 if (netif_is_failover(dev)) 223 continue; 224 if (ether_addr_equal(failover_dev->perm_addr, dev->perm_addr)) { > 225 netdev_lock_ops(dev); 226 failover_slave_register(dev); > 227 netdev_unlock_ops(dev); 228 } 229 } 230 rtnl_unlock(); 231 } 232 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki