Re: [PATCH] i2c: hisi: Add I2C bus recovery support
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all,dev.linux.lists.llvm,org.kernel.vger.linux-i2c,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi Bowen, 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 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: arm-randconfig-003-20260826 (https://download.01.org/0day-ci/archive/20260826/[email protected]/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 771bdfdab2d66a4eb85b8ea7673cfa30152718b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260826/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): >> drivers/i2c/busses/i2c-hisi.c:236:27: error: call to undeclared function 'acpi_has_method'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 236 | if (ctlr->acpi_handle && acpi_has_method(ctlr->acpi_handle, "_RST")) { | ^ drivers/i2c/busses/i2c-hisi.c:236:27: note: did you mean 'acpi_has_watchdog'? include/linux/acpi.h:1528:20: note: 'acpi_has_watchdog' declared here 1528 | static inline bool acpi_has_watchdog(void) { return false; } | ^ 1 error generated. vim +/acpi_has_method +236 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