[drm-exynos:exynos-drm-misc-next 1284/1301] drivers/accel/rocket/rocket_drv.c:235:31: error: 'rocket_pm_ops' undeclared here (not in a function); did you mean 'rocket_probe'?

kernel test robot lkp at intel.com
Tue Jul 29 20:51:09 UTC 2025


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git exynos-drm-misc-next
head:   01ac6e4e53b6351df42c97d217b0d2dbeef5c917
commit: ed98261b41687323ffa02ca20fef1e60b38fd1aa [1284/1301] accel/rocket: Add a new driver for Rockchip's NPU
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20250730/202507300402.elg6gqoj-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250730/202507300402.elg6gqoj-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/202507300402.elg6gqoj-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/kernel.h:36,
                    from include/linux/cpumask.h:11,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:63,
                    from include/linux/swait.h:7,
                    from include/linux/completion.h:12,
                    from include/drm/drm_file.h:34,
                    from include/drm/drm_accel.h:11,
                    from drivers/accel/rocket/rocket_drv.c:4:
>> drivers/accel/rocket/rocket_drv.c:235:31: error: 'rocket_pm_ops' undeclared here (not in a function); did you mean 'rocket_probe'?
     235 |                 .pm = pm_ptr(&rocket_pm_ops),
         |                               ^~~~~~~~~~~~~
   include/linux/util_macros.h:136:44: note: in definition of macro 'PTR_IF'
     136 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   drivers/accel/rocket/rocket_drv.c:235:23: note: in expansion of macro 'pm_ptr'
     235 |                 .pm = pm_ptr(&rocket_pm_ops),
         |                       ^~~~~~


vim +235 drivers/accel/rocket/rocket_drv.c

   229	
   230	static struct platform_driver rocket_driver = {
   231		.probe = rocket_probe,
   232		.remove = rocket_remove,
   233		.driver	 = {
   234			.name = "rocket",
 > 235			.pm = pm_ptr(&rocket_pm_ops),
   236			.of_match_table = dt_match,
   237		},
   238	};
   239	

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


More information about the dri-devel mailing list