[anolis-intel-cloud:devel-6.6 254/254] drivers/net/ethernet/linkdata/sxe2/sxe2pf/sxe2_main.c:1533:27: error: 'sxe2_pm_resume' declared 'static' but never defined

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://gitee.com/anolis/intel-cloud-kernel.git devel-6.6
head:   1cb14b8ebd706a55e3cb0251941355687e595e1d
commit: e0244015478adde7baee3a127e43091668d91289 [254/254] anolis: net: update linkdata ethernet driver features.
config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260827/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260827/[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/net/ethernet/linkdata/sxe2/sxe2pf/sxe2_main.c:1533:27: error: 'sxe2_pm_resume' declared 'static' but never defined [-Werror=unused-function]
    1533 | static int __maybe_unused sxe2_pm_resume(struct device *dev);
         |                           ^~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe2/sxe2pf/sxe2_main.c:1534:27: error: 'sxe2_pm_suspend' declared 'static' but never defined [-Werror=unused-function]
    1534 | static int __maybe_unused sxe2_pm_suspend(struct device *dev);
         |                           ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> drivers/net/ethernet/linkdata/sxe2vf/sxe2vf/sxe2vf_main.c:1864:27: error: 'sxe2vf_pm_resume' declared 'static' but never defined [-Werror=unused-function]
    1864 | static int __maybe_unused sxe2vf_pm_resume(struct device *dev);
         |                           ^~~~~~~~~~~~~~~~
>> drivers/net/ethernet/linkdata/sxe2vf/sxe2vf/sxe2vf_main.c:1865:27: error: 'sxe2vf_pm_suspend' declared 'static' but never defined [-Werror=unused-function]
    1865 | static int __maybe_unused sxe2vf_pm_suspend(struct device *dev);
         |                           ^~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +1533 drivers/net/ethernet/linkdata/sxe2/sxe2pf/sxe2_main.c

  1532	
> 1533	static int __maybe_unused sxe2_pm_resume(struct device *dev);
> 1534	static int __maybe_unused sxe2_pm_suspend(struct device *dev);
  1535	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.