From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 F0A77226CFE; Wed, 26 Aug 2026 00:51:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787705504; cv=none; b=mtpQqhUdzGAgpWrfE4BVASph3xyXiQSmQDxxzo8506QRLQAjBXfy/CzIn3TozrDj/AYlCVuVHhWVEGfPEw+yX7tG5WhYMCjycf8N/SMnB2UTj6n5xg+Oim7niHCq4bK1noU3h3f3ZzrBUOXbSnCad9nG3Znj5RKHOcTHceSA4rg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787705504; c=relaxed/simple; bh=Lnvcwtt4VL/PjF+tdZJ2KyFOjf5LxlXZSg66H9OeyqU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=trjPGCDuIbJhO3UFCIJ6QNTprVjTVyO2kuH68PhnuflRR+JhUdHeXUIobkgwfvn6q5GP8Fg/yDygxiyaL23zZFKSbxiJXirFG5BXxiSt1epLttckCalJlL3NQ/T0ULN/CXM1CzuSBJbhUVQyQ7YccyW5cEawoI6CzOvi3hRxgIY= 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=G09unpLR; arc=none smtp.client-ip=198.175.65.17 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="G09unpLR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1787705501; x=1819241501; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Lnvcwtt4VL/PjF+tdZJ2KyFOjf5LxlXZSg66H9OeyqU=; b=G09unpLR1SfeAj4coa7MtH5/kZhNCRN7dUvMkzJDkk4i3gAClVnlLlEm cvAuiiKTbiOkfSLvYVapjLmhX28RRb92jsdPFbrRqK+qYXfnugehz3pw3 wZARBWQlVzu4kZXgj0156ZGdLC1y+KAi3W/1BfvPC4Mqjk0OybKcqcLek NV8x9mXISWkw5EOwsifzYVu/05njYiMiiuTdsRzXd+fqonoolPAuFYboA h2fhXmRROvpvqNPUH5ATNFwWU1Jxsacuu7YQqJgYutegF3TZtT2tiBTHQ PUcIf/0Z5DgynEVUe7vN7POeApMeEUggrc3Ddp2z77r1rP2r74Et6xXhR w==; X-CSE-ConnectionGUID: +Egx0/DbSgW0gqscaniGdw== X-CSE-MsgGUID: 4b8P6QUpRFykkXZKpNE1kg== X-IronPort-AV: E=McAfee;i="6800,10657,11886"; a="88208533" X-IronPort-AV: E=Sophos;i="6.25,243,1779174000"; d="scan'208";a="88208533" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2026 17:51:41 -0700 X-CSE-ConnectionGUID: hdyhc5/ZSrCCHkeiCu3oSw== X-CSE-MsgGUID: wv4mrPrNQP2GWRxTINRgew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,243,1779174000"; d="scan'208";a="263685980" Received: from lkp-server01.sh.intel.com (HELO 3532383e6126) ([10.239.97.150]) by fmviesa010.fm.intel.com with ESMTP; 25 Aug 2026 17:51:38 -0700 Received: from kbuild by 3532383e6126 with local (Exim 4.98.2) (envelope-from ) id 1wz1rb-000000006fT-25Po; Wed, 26 Aug 2026 00:51:35 +0000 Date: Wed, 26 Aug 2026 08:51:16 +0800 From: kernel test robot To: Bowen Yu , linuxarm@huawei.com, liudingyuan@h-partners.com, andi.shyti@kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, zhanjie9@hisilicon.com, prime.zeng@hisilicon.com, wanghuiqiang@huawei.com, xuwei5@huawei.com, yubowen8@huawei.com Subject: Re: [PATCH] i2c: hisi: Add I2C bus recovery support Message-ID: <202608260844.RKBd2Emp-lkp@intel.com> References: <20260825033125.1893253-1-yubowen8@huawei.com> 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: <20260825033125.1893253-1-yubowen8@huawei.com> Hi Bowen, kernel test robot noticed the following build warnings: [auto build test WARNING on andi-shyti/i2c/i2c-host] [also build test WARNING on linus/master v7.2 next-20260824] [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/Bowen-Yu/i2c-hisi-Add-I2C-bus-recovery-support/20260825-113125 base: https://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git i2c/i2c-host patch link: https://lore.kernel.org/r/20260825033125.1893253-1-yubowen8%40huawei.com patch subject: [PATCH] i2c: hisi: Add I2C bus recovery support config: sparc64-randconfig-001-20260826 (https://download.01.org/0day-ci/archive/20260826/202608260844.RKBd2Emp-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 13.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260826/202608260844.RKBd2Emp-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/202608260844.RKBd2Emp-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/i2c/busses/i2c-hisi.c: In function 'hisi_i2c_unprepare_recovery': drivers/i2c/busses/i2c-hisi.c:236:34: error: implicit declaration of function 'acpi_has_method'; did you mean 'acpi_has_watchdog'? [-Werror=implicit-function-declaration] 236 | if (ctlr->acpi_handle && acpi_has_method(ctlr->acpi_handle, "_RST")) { | ^~~~~~~~~~~~~~~ | acpi_has_watchdog In file included from include/linux/device.h:15, from include/linux/acpi.h:15, from drivers/i2c/busses/i2c-hisi.c:8: >> drivers/i2c/busses/i2c-hisi.c:241:44: warning: '%s' directive argument is null [-Wformat-overflow=] 241 | dev_err(ctlr->dev, "_RST method failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:154:56: note: in expansion of macro 'dev_fmt' 154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/i2c/busses/i2c-hisi.c:241:25: note: in expansion of macro 'dev_err' 241 | dev_err(ctlr->dev, "_RST method failed: %s\n", | ^~~~~~~ drivers/i2c/busses/i2c-hisi.c:241:65: note: format string is defined here 241 | dev_err(ctlr->dev, "_RST method failed: %s\n", | ^~ cc1: some warnings being treated as errors vim +241 drivers/i2c/busses/i2c-hisi.c 221 222 static void hisi_i2c_unprepare_recovery(struct i2c_adapter *adap) 223 { 224 struct hisi_i2c_controller *ctlr = i2c_get_adapdata(adap); 225 u32 reg; 226 227 reg = readl(ctlr->sctrl_addr); 228 reg &= ~(HISI_I2C_CTRL_SCL_CFG_EN | HISI_I2C_CTRL_DAT_CFG_EN); 229 writel(reg, ctlr->sctrl_addr); 230 231 /* 232 * Invokes the specific ACPI method "_RST" for trigger a soft 233 * reset of I2C controller in order to help on I2C controller recover from 234 * the abnormal state after bus recovery process. 235 */ 236 if (ctlr->acpi_handle && acpi_has_method(ctlr->acpi_handle, "_RST")) { 237 acpi_status status; 238 239 status = acpi_evaluate_object(ctlr->acpi_handle, "_RST", NULL, NULL); 240 if (ACPI_FAILURE(status)) > 241 dev_err(ctlr->dev, "_RST method failed: %s\n", 242 acpi_format_exception(status)); 243 } 244 245 hisi_i2c_configure_bus(ctlr); 246 } 247 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki