[stefandoesinger-zx297520:dlink 60/130] drivers/rpmsg/zx29_smd.c:130:13: warning: 'zx29_smd_release_device' defined but not used

kernel test robot <[email protected]> Tue, 28 Jul 2026 13:48:38 +0800
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://gitlab.com/stefandoesinger/zx297520-kernel dlink
head:   3d8eb1c72ad9937912307a2d4f3de812b572b9b3
commit: 486c263f0e7ecd325e530c4fe8d876755f8f8988 [60/130] rpmsg v1
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20260728/[email protected]/config)
compiler: arc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260728/[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 warnings (new ones prefixed by >>):

   drivers/rpmsg/zx29_smd.c: In function 'zx29_smd_trysend':
   drivers/rpmsg/zx29_smd.c:98:31: warning: unused variable 'zx29_ept' [-Wunused-variable]
      98 |         struct zx29_endpoint *zx29_ept = to_zx29_rpmsg_endpoint(ept);
         |                               ^~~~~~~~
   drivers/rpmsg/zx29_smd.c: In function 'zx29_smd_probe':
   drivers/rpmsg/zx29_smd.c:147:22: warning: unused variable 'i' [-Wunused-variable]
     147 |         unsigned int i;
         |                      ^
   drivers/rpmsg/zx29_smd.c: At top level:
>> drivers/rpmsg/zx29_smd.c:130:13: warning: 'zx29_smd_release_device' defined but not used [-Wunused-function]
     130 | static void zx29_smd_release_device(struct device *dev)
         |             ^~~~~~~~~~~~~~~~~~~~~~~


vim +/zx29_smd_release_device +130 drivers/rpmsg/zx29_smd.c

   129	
 > 130	static void zx29_smd_release_device(struct device *dev)
   131	{
   132		dev_info(dev, "zx29_smd_release_device\n");
   133	}
   134	

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