Re: [PATCH] staging: nvec: disable i2c slave on remove

From: kernel test robot

Date: Thu Jul 02 2026 - 17:15:32 EST


Hi Balakrishnan,

kernel test robot noticed the following build errors:

[auto build test ERROR on be5c93fa674f0fc3c8f359c2143abce6bbb422e6]

url: https://github.com/intel-lab-lkp/linux/commits/Balakrishnan-Sambath/staging-nvec-disable-i2c-slave-on-remove/20260702-185025
base: be5c93fa674f0fc3c8f359c2143abce6bbb422e6
patch link: https://lore.kernel.org/r/20260702-contrib-nvec-clk-leak-v1-1-659bcbe74e56%40microchip.com
patch subject: [PATCH] staging: nvec: disable i2c slave on remove
config: arm64-randconfig-002-20260702 (https://download.01.org/0day-ci/archive/20260703/202607030502.TdzG5XDE-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260703/202607030502.TdzG5XDE-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607030502.TdzG5XDE-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

drivers/staging/nvec/nvec.c: In function 'tegra_nvec_remove':
>> drivers/staging/nvec/nvec.c:911:2: error: implicit declaration of function 'nvec_disable_i2c_slave'; did you mean 'disable_irq_wake'? [-Werror=implicit-function-declaration]
nvec_disable_i2c_slave(nvec);
^~~~~~~~~~~~~~~~~~~~~~
disable_irq_wake
cc1: some warnings being treated as errors


vim +911 drivers/staging/nvec/nvec.c

899
900 static void tegra_nvec_remove(struct platform_device *pdev)
901 {
902 struct nvec_chip *nvec = platform_get_drvdata(pdev);
903
904 nvec_toggle_global_events(nvec, false);
905 mfd_remove_devices(nvec->dev);
906 nvec_unregister_notifier(nvec, &nvec->nvec_status_notifier);
907 cancel_work_sync(&nvec->rx_work);
908 cancel_work_sync(&nvec->tx_work);
909 if (pm_power_off == nvec_power_off)
910 pm_power_off = NULL;
> 911 nvec_disable_i2c_slave(nvec);
912 }
913

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki