From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 2B8701C5F10; Sun, 28 Sep 2025 05:34:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759037665; cv=none; b=IMHZrjuaGkN6Lo+qRgqjjZV6OtbdRoGlJq+eyGhgqiozEUt5dFVK7sfBmCzchbwsKEo6/uXBwYwgTbcnv2qCTaBQw8JhR5ejuW/kXaS0IYHZ2escLKFJy+WJHwg4rd6FVc2uVgiqQNQ6RO1WomkcM2hbg17LbEEsMq4LDr1cNLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759037665; c=relaxed/simple; bh=xakyuO/1hDdekWWshDWBVaa367ilvRNGjQcMO4Ul1w4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fFrDIhYR7OTSkJO4GIvumcC8YWDek6CtVfEgmXbQkqKi7qtrr41TGkB6FocIPazhdO/HUSMDQIdgzG7AcBab4VD7GgLDtkpc8WN492lts0hRPMM3sGal3VaWtFZGsPntPQfFU8RyWhseQMWWBAlp0NETY5sXuZgoAUA4bdpRdgw= 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=eyCOHFjT; arc=none smtp.client-ip=198.175.65.11 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="eyCOHFjT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1759037664; x=1790573664; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xakyuO/1hDdekWWshDWBVaa367ilvRNGjQcMO4Ul1w4=; b=eyCOHFjTgQZszUxf+5Zp/BWXDekvvNwkd1/iqtfz9yvuqbpbbkcyfFbr qHPs6Ib0IaLNf83sDDtr1O94pkQf2JfLEHEXuX3IAnJwlSfuou5QUkGzE ArSUmajt3ypYScxW77gXUZCy1pQK2+b9H8lH/SLdCjof0JAQiTfgzFLg3 O6bAVk01qSZxzjhCjmNmICB5OO0mV0G6pKwxyht8C4TN3FTWAf+2rwKho nQ+iYh0Xlw28C8je2zChD3+ioHRh+/M/Ki+BqlVBr9gSgV8ANdUzfo+68 xXrpq1Gyz7t41eif1TOR632fNgnrOGVDg9NpzsdDaWLkftswxOXa5dShs A==; X-CSE-ConnectionGUID: UNr7sfgQRlOCWE2Tk7TGBw== X-CSE-MsgGUID: 5ouhAP31TUKvG5mXZAVvPw== X-IronPort-AV: E=McAfee;i="6800,10657,11566"; a="71561433" X-IronPort-AV: E=Sophos;i="6.18,298,1751266800"; d="scan'208";a="71561433" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2025 22:34:23 -0700 X-CSE-ConnectionGUID: PVChTyzrSFauydPISQQPkA== X-CSE-MsgGUID: v9k4s4GlTayhLAk+KsPTXA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,298,1751266800"; d="scan'208";a="215083808" Received: from lkp-server02.sh.intel.com (HELO 84c55410ccf6) ([10.239.97.151]) by orviesa001.jf.intel.com with ESMTP; 27 Sep 2025 22:34:21 -0700 Received: from kbuild by 84c55410ccf6 with local (Exim 4.96) (envelope-from ) id 1v2k37-0007a7-1O; Sun, 28 Sep 2025 05:34:17 +0000 Date: Sun, 28 Sep 2025 13:34:11 +0800 From: kernel test robot To: Ma Ke , syniurge@gmail.com, shyam-sundar.s-k@amd.com, andi.shyti@kernel.org, wsa@kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Ma Ke , stable@vger.kernel.org Subject: Re: [PATCH] i2c: fix reference leak in MP2 PCI device Message-ID: <202509281317.3OLDoUnB-lkp@intel.com> References: <20250927105729.19164-1-make24@iscas.ac.cn> Precedence: bulk X-Mailing-List: linux-kernel@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: <20250927105729.19164-1-make24@iscas.ac.cn> Hi Ma, kernel test robot noticed the following build errors: [auto build test ERROR on andi-shyti/i2c/i2c-host] [also build test ERROR on linus/master v6.17-rc7 next-20250926] [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/Ma-Ke/i2c-fix-reference-leak-in-MP2-PCI-device/20250927-190047 base: https://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git i2c/i2c-host patch link: https://lore.kernel.org/r/20250927105729.19164-1-make24%40iscas.ac.cn patch subject: [PATCH] i2c: fix reference leak in MP2 PCI device config: i386-randconfig-011-20250928 (https://download.01.org/0day-ci/archive/20250928/202509281317.3OLDoUnB-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250928/202509281317.3OLDoUnB-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/202509281317.3OLDoUnB-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/i2c/busses/i2c-amd-mp2-pci.c:467:2: error: use of undeclared identifier 'mp2_dev' 467 | mp2_dev = (struct amd_mp2_dev *)pci_get_drvdata(pci_dev); | ^ drivers/i2c/busses/i2c-amd-mp2-pci.c:469:9: error: use of undeclared identifier 'mp2_dev'; did you mean 'pci_dev'? 469 | return mp2_dev; | ^~~~~~~ | pci_dev drivers/i2c/busses/i2c-amd-mp2-pci.c:460:18: note: 'pci_dev' declared here 460 | struct pci_dev *pci_dev; | ^ >> drivers/i2c/busses/i2c-amd-mp2-pci.c:469:9: error: incompatible pointer types returning 'struct pci_dev *' from a function with result type 'struct amd_mp2_dev *' [-Werror,-Wincompatible-pointer-types] 469 | return mp2_dev; | ^~~~~~~ 3 errors generated. vim +/mp2_dev +467 drivers/i2c/busses/i2c-amd-mp2-pci.c 456 457 struct amd_mp2_dev *amd_mp2_find_device(void) 458 { 459 struct device *dev; 460 struct pci_dev *pci_dev; 461 462 dev = driver_find_next_device(&amd_mp2_pci_driver.driver, NULL); 463 if (!dev) 464 return NULL; 465 466 pci_dev = to_pci_dev(dev); > 467 mp2_dev = (struct amd_mp2_dev *)pci_get_drvdata(pci_dev); 468 put_device(dev); > 469 return mp2_dev; 470 } 471 EXPORT_SYMBOL_GPL(amd_mp2_find_device); 472 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki