[Intel-xe] [drm-xe:drm-xe-next-rebase-6.4-v3 254/506] drivers/gpu/drm/xe/xe_pci.c:772:28: error: 'xe_pci_runtime_suspend' undeclared here (not in a function); did you mean 'xe_pm_runtime_suspend'?

kernel test robot lkp at intel.com
Thu Nov 2 10:13:07 UTC 2023


Hi Francois,

FYI, the error/warning still remains.

tree:   https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next-rebase-6.4-v3
head:   cb8c359d816115a3fe2bbd1c22f26c277e6ddcc2
commit: 391248864bb35ef855e275ffba53789cf3ec36d3 [254/506] drm/xe: Fix build without CONFIG_PM_SLEEP
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20231102/202311021848.EjCFjv9n-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231102/202311021848.EjCFjv9n-lkp@intel.com/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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311021848.EjCFjv9n-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/device/driver.h:19,
                    from drivers/gpu/drm/xe/xe_pci.c:8:
>> drivers/gpu/drm/xe/xe_pci.c:772:28: error: 'xe_pci_runtime_suspend' undeclared here (not in a function); did you mean 'xe_pm_runtime_suspend'?
     772 |         SET_RUNTIME_PM_OPS(xe_pci_runtime_suspend, xe_pci_runtime_resume, xe_pci_runtime_idle)
         |                            ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/pm.h:337:28: note: in definition of macro 'RUNTIME_PM_OPS'
     337 |         .runtime_suspend = suspend_fn, \
         |                            ^~~~~~~~~~
   drivers/gpu/drm/xe/xe_pci.c:772:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     772 |         SET_RUNTIME_PM_OPS(xe_pci_runtime_suspend, xe_pci_runtime_resume, xe_pci_runtime_idle)
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/xe/xe_pci.c:772:52: error: 'xe_pci_runtime_resume' undeclared here (not in a function); did you mean 'xe_pm_runtime_resume'?
     772 |         SET_RUNTIME_PM_OPS(xe_pci_runtime_suspend, xe_pci_runtime_resume, xe_pci_runtime_idle)
         |                                                    ^~~~~~~~~~~~~~~~~~~~~
   include/linux/pm.h:338:27: note: in definition of macro 'RUNTIME_PM_OPS'
     338 |         .runtime_resume = resume_fn, \
         |                           ^~~~~~~~~
   drivers/gpu/drm/xe/xe_pci.c:772:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     772 |         SET_RUNTIME_PM_OPS(xe_pci_runtime_suspend, xe_pci_runtime_resume, xe_pci_runtime_idle)
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/xe/xe_pci.c:772:75: error: 'xe_pci_runtime_idle' undeclared here (not in a function); did you mean 'xe_pm_runtime_init'?
     772 |         SET_RUNTIME_PM_OPS(xe_pci_runtime_suspend, xe_pci_runtime_resume, xe_pci_runtime_idle)
         |                                                                           ^~~~~~~~~~~~~~~~~~~
   include/linux/pm.h:339:25: note: in definition of macro 'RUNTIME_PM_OPS'
     339 |         .runtime_idle = idle_fn,
         |                         ^~~~~~~
   drivers/gpu/drm/xe/xe_pci.c:772:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     772 |         SET_RUNTIME_PM_OPS(xe_pci_runtime_suspend, xe_pci_runtime_resume, xe_pci_runtime_idle)
         |         ^~~~~~~~~~~~~~~~~~


vim +772 drivers/gpu/drm/xe/xe_pci.c

f4003219244f3a2 Matthew Brost   2023-03-30  769  
f4003219244f3a2 Matthew Brost   2023-03-30  770  static const struct dev_pm_ops xe_pm_ops = {
778b90c2c975305 Francois Dugast 2023-01-23  771  	SET_SYSTEM_SLEEP_PM_OPS(xe_pci_suspend, xe_pci_resume)
778b90c2c975305 Francois Dugast 2023-01-23 @772  	SET_RUNTIME_PM_OPS(xe_pci_runtime_suspend, xe_pci_runtime_resume, xe_pci_runtime_idle)
f4003219244f3a2 Matthew Brost   2023-03-30  773  };
f4003219244f3a2 Matthew Brost   2023-03-30  774  

:::::: The code at line 772 was first introduced by commit
:::::: 778b90c2c975305230bb9f37512c0a7e480ee79c drm/xe: Use global macros to set PM functions

:::::: TO: Francois Dugast <francois.dugast at intel.com>
:::::: CC: Lucas De Marchi <lucas.demarchi at intel.com>

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


More information about the Intel-xe mailing list