[openeuler:OLK-6.6 2695/2695] drivers/i2c/busses/i2c-zhaoxin.c:526:12: warning: 'zxi2c_resume' defined but not used

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 41dcfa1c2607635577b73ad0317ad80729e58c1e commit: 7d6424d8bc9f404652b44c12a5c0b6f52521d514 [2695/2695] Add support for Zhaoxin I2C controller config: x86_64-randconfig-2003-20250819 (https://download.01.org/0day-ci/archive/20250820/202508200026.Fmho995C-lkp@i...) compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250820/202508200026.Fmho995C-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/202508200026.Fmho995C-lkp@intel.com/ All warnings (new ones prefixed by >>):
drivers/i2c/busses/i2c-zhaoxin.c:526:12: warning: 'zxi2c_resume' defined but not used [-Wunused-function] 526 | static int zxi2c_resume(struct device *dev) | ^~~~~~~~~~~~
vim +/zxi2c_resume +526 drivers/i2c/busses/i2c-zhaoxin.c 525
526 static int zxi2c_resume(struct device *dev) 527 { 528 struct zxi2c *i2c = dev_get_drvdata(dev); 529 530 iowrite8(ZXI2C_CR_MST_RST, i2c->base + ZXI2C_REG_CR); 531 zxi2c_set_bus_speed(i2c); 532 533 return 0; 534 } 535
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot