From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 E540B156875; Mon, 19 Aug 2024 21:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724102290; cv=none; b=PT4f8xNFkEDNMSokepD1KYjiblWjQatWDHhswBLiALPcZCyspeSvcxlTEmFNNy17fXNnx4hng5QNCPYFR1R54e/aj5RTQ/I+1VJv2J4rH8RxccEDprMgekRqtQPWPXgX7CsGVF0RuAExPpAptxwU8CC/NM/bssY1so0MCnrIU6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724102290; c=relaxed/simple; bh=x73kZuGeZPO/zMICJM5bFMWIWhQjMQY30f8YDgfQWSc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=o6lN7tOBVNWVYp8aGUs0JARd4K37GEleTcBWlKu44idMJ/yEKdZipSuOQLN0PFfoZDVR4vR1DBX2qjNELVHD3jP80rO7FxZ0q9fgkHsvDh4ROrFjHQRcmSpENJusMMiYQ7oUWhzO4OQfvwiDdw+dPHF73lwEVYU4q0vT/Pn7FkQ= 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=b2Myo36f; arc=none smtp.client-ip=198.175.65.21 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="b2Myo36f" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724102289; x=1755638289; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=x73kZuGeZPO/zMICJM5bFMWIWhQjMQY30f8YDgfQWSc=; b=b2Myo36fZv5MTMu0b3ueoCy4hKCgF/SHhDq8suovOrdZJR12b3R1iPb+ W8gQ7RGA2nfyMUe7Ter39iN3ML3Lg0xvC6eFS1x5FDMf1kwscaADFaM7p KpHMzqDk4RdYXGnrYCFC389SIkUuEZ5zRXSDUhAu1QSIGtLp/Ad6muL7O vdhcRfiXH428O2MNM8+qi26X+9pCX84VI48r405lpIQ9iv1D5E23mhPGl 8jKF2v112XslxNFXqXfApI+xqjL3m4N53NezcktHNz97/cCd4Y0069PPn scWG58HQHxmObCYTSNZ6DFHyACh0Gztuj1/UvFq1Jc6YIQP/s3BhsqT2/ A==; X-CSE-ConnectionGUID: HQTYEgm7SX+0JIA7R5qEQA== X-CSE-MsgGUID: p8NBe1ScQGqkUgto3aWd9w== X-IronPort-AV: E=McAfee;i="6700,10204,11169"; a="22343203" X-IronPort-AV: E=Sophos;i="6.10,160,1719903600"; d="scan'208";a="22343203" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2024 14:18:07 -0700 X-CSE-ConnectionGUID: 1ejfIbMFTVadCQuYlqne2Q== X-CSE-MsgGUID: DBGYolQdTuG4lV4wBH7/+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,160,1719903600"; d="scan'208";a="60463425" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by orviesa009.jf.intel.com with ESMTP; 19 Aug 2024 14:18:04 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1sg9lJ-0009Re-2N; Mon, 19 Aug 2024 21:18:01 +0000 Date: Tue, 20 Aug 2024 05:17:52 +0800 From: kernel test robot To: Hangbin Liu , netdev@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Jay Vosburgh , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet , Nikolay Aleksandrov , Tariq Toukan , Jianbo Liu , Sabrina Dubroca , Hangbin Liu Subject: Re: [PATCHv2 net-next 2/3] bonding: Add ESN support to IPSec HW offload Message-ID: <202408200431.wjjkEZ2m-lkp@intel.com> References: <20240819075334.236334-3-liuhangbin@gmail.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240819075334.236334-3-liuhangbin@gmail.com> Hi Hangbin, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Hangbin-Liu/bonding-add-common-function-to-check-ipsec-device/20240819-195504 base: net-next/main patch link: https://lore.kernel.org/r/20240819075334.236334-3-liuhangbin%40gmail.com patch subject: [PATCHv2 net-next 2/3] bonding: Add ESN support to IPSec HW offload config: x86_64-buildonly-randconfig-001-20240820 (https://download.01.org/0day-ci/archive/20240820/202408200431.wjjkEZ2m-lkp@intel.com/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240820/202408200431.wjjkEZ2m-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/202408200431.wjjkEZ2m-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/net/bonding/bond_main.c:434:10: error: returning 'void *' from a function with incompatible result type 'struct net_device' 434 | return NULL; | ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' 8 | #define NULL ((void *)0) | ^~~~~~~~~~~ drivers/net/bonding/bond_main.c:442:10: error: returning 'void *' from a function with incompatible result type 'struct net_device' 442 | return NULL; | ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' 8 | #define NULL ((void *)0) | ^~~~~~~~~~~ drivers/net/bonding/bond_main.c:446:9: error: returning 'struct net_device *' from a function with incompatible result type 'struct net_device'; dereference with * 446 | return real_dev; | ^~~~~~~~ | * drivers/net/bonding/bond_main.c:630:11: error: assigning to 'struct net_device *' from incompatible type 'struct net_device' 630 | real_dev = bond_ipsec_dev(xs); | ^ ~~~~~~~~~~~~~~~~~~ drivers/net/bonding/bond_main.c:658:11: error: assigning to 'struct net_device *' from incompatible type 'struct net_device' 658 | real_dev = bond_ipsec_dev(xs); | ^ ~~~~~~~~~~~~~~~~~~ >> drivers/net/bonding/bond_main.c:668:2: error: use of undeclared identifier 'rhel_dev'; did you mean 'real_dev'? 668 | rhel_dev->xfrmdev_ops->xdo_dev_state_advance_esn(xs); | ^~~~~~~~ | real_dev drivers/net/bonding/bond_main.c:655:21: note: 'real_dev' declared here 655 | struct net_device *real_dev; | ^ 6 errors generated. vim +668 drivers/net/bonding/bond_main.c 648 649 /** 650 * bond_advance_esn_state - ESN support for IPSec HW offload 651 * @xs: pointer to transformer state struct 652 **/ 653 static void bond_advance_esn_state(struct xfrm_state *xs) 654 { 655 struct net_device *real_dev; 656 657 rcu_read_lock(); 658 real_dev = bond_ipsec_dev(xs); 659 if (!real_dev) 660 goto out; 661 662 if (!real_dev->xfrmdev_ops || 663 !real_dev->xfrmdev_ops->xdo_dev_state_advance_esn) { 664 pr_warn("%s: %s doesn't support xdo_dev_state_advance_esn\n", __func__, real_dev->name); 665 goto out; 666 } 667 > 668 rhel_dev->xfrmdev_ops->xdo_dev_state_advance_esn(xs); 669 out: 670 rcu_read_unlock(); 671 } 672 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki