[openeuler:OLK-6.6 2866/2866] drivers/i2c/busses/i2c-zhaoxin-smbus.c:78:23: error: implicit declaration of function 'inb'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 53c5dc90847a172693399fff690813a8c90f5044 commit: 08d91e70564c8af05a673fef3dbae0b2278529fd [2866/2866] i2c: smbus: Add support for Zhaoxin SMBUS controller config: x86_64-buildonly-randconfig-003-20250909 (https://download.01.org/0day-ci/archive/20250908/202509081522.jhCd5FtY-lkp@i...) compiler: gcc-13 (Debian 13.3.0-16) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250908/202509081522.jhCd5FtY-lkp@i...) 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 <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202509081522.jhCd5FtY-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/i2c/busses/i2c-zhaoxin-smbus.c: In function 'zxsmb_irq_handle':
drivers/i2c/busses/i2c-zhaoxin-smbus.c:78:23: error: implicit declaration of function 'inb' [-Werror=implicit-function-declaration] 78 | smb->status = inb(smb->base + ZXSMB_STS); | ^~~ drivers/i2c/busses/i2c-zhaoxin-smbus.c:83:9: error: implicit declaration of function 'outb' [-Werror=implicit-function-declaration] 83 | outb(smb->status, smb->base + ZXSMB_STS); | ^~~~ drivers/i2c/busses/i2c-zhaoxin-smbus.c: At top level: drivers/i2c/busses/i2c-zhaoxin-smbus.c:367:36: warning: 'zxsmb_acpi_match' defined but not used [-Wunused-const-variable=] 367 | static const struct acpi_device_id zxsmb_acpi_match[] = { | ^~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
vim +/inb +78 drivers/i2c/busses/i2c-zhaoxin-smbus.c 73 74 static irqreturn_t zxsmb_irq_handle(int irq, void *dev_id) 75 { 76 struct zxsmb *smb = (struct zxsmb *)dev_id; 77
78 smb->status = inb(smb->base + ZXSMB_STS); 79 if ((smb->status & ZXSMB_STS_MASK) == 0) 80 return IRQ_NONE; 81 82 /* clear status */ 83 outb(smb->status, smb->base + ZXSMB_STS); 84 complete(&smb->complete); 85 86 return IRQ_HANDLED; 87 } 88
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot