All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:dd-drm-fix 57/60] drivers/accel/rocket/rocket_gem.c:137:3: error: call to undeclared function '_dynamic_func_call_cls'; ISO C99 and later do not support implicit function declarations
@ 2026-02-10 16:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-10 16:06 UTC (permalink / raw)
  To: Jim Cromie,  Łukasz Bartosik; +Cc: oe-kbuild-all

tree:   https://github.com/jimc/linux.git dd-drm-fix
head:   a6b2d8088b8b36fe673974611b90c1a1d9d5c18e
commit: 680ca28c4c0b565db3d9f8263a97fad8214ffdfe [57/60] drm: restore CONFIG_DRM_USE_DYNAMIC_DEBUG un-BROKEN
config: powerpc64-randconfig-r063-20260210 (https://download.01.org/0day-ci/archive/20260210/202602102353.C3RmcWLH-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260210/202602102353.C3RmcWLH-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602102353.C3RmcWLH-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/accel/rocket/rocket_gem.c:137:3: error: call to undeclared function '_dynamic_func_call_cls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     137 |                 drm_dbg(dev, "Reserved field in drm_rocket_prep_bo struct should be 0.\n");
         |                 ^
   include/drm/drm_print.h:683:32: note: expanded from macro 'drm_dbg'
     683 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^
   include/drm/drm_print.h:665:2: note: expanded from macro 'drm_dbg_driver'
     665 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^
   include/drm/drm_print.h:580:2: note: expanded from macro 'drm_dev_dbg'
     580 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^
   drivers/accel/rocket/rocket_gem.c:166:3: error: call to undeclared function '_dynamic_func_call_cls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     166 |                 drm_dbg(dev, "Reserved field in drm_rocket_fini_bo struct should be 0.\n");
         |                 ^
   include/drm/drm_print.h:683:32: note: expanded from macro 'drm_dbg'
     683 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^
   include/drm/drm_print.h:665:2: note: expanded from macro 'drm_dbg_driver'
     665 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^
   include/drm/drm_print.h:580:2: note: expanded from macro 'drm_dev_dbg'
     580 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^
   2 errors generated.
--
>> drivers/accel/rocket/rocket_job.c:76:3: error: call to undeclared function '_dynamic_func_call_cls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      76 |                 drm_dbg(dev, "Failed to allocate task array\n");
         |                 ^
   include/drm/drm_print.h:683:32: note: expanded from macro 'drm_dbg'
     683 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^
   include/drm/drm_print.h:665:2: note: expanded from macro 'drm_dbg_driver'
     665 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^
   include/drm/drm_print.h:580:2: note: expanded from macro 'drm_dev_dbg'
     580 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^
   drivers/accel/rocket/rocket_job.c:86:4: error: call to undeclared function '_dynamic_func_call_cls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      86 |                         drm_dbg(dev, "Failed to copy incoming tasks\n");
         |                         ^
   include/drm/drm_print.h:683:32: note: expanded from macro 'drm_dbg'
     683 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^
   include/drm/drm_print.h:665:2: note: expanded from macro 'drm_dbg_driver'
     665 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^
   include/drm/drm_print.h:580:2: note: expanded from macro 'drm_dev_dbg'
     580 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^
   drivers/accel/rocket/rocket_job.c:92:4: error: call to undeclared function '_dynamic_func_call_cls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      92 |                         drm_dbg(dev, "regcmd_count field in drm_rocket_task should be > 0.\n");
         |                         ^
   include/drm/drm_print.h:683:32: note: expanded from macro 'drm_dbg'
     683 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^
   include/drm/drm_print.h:665:2: note: expanded from macro 'drm_dbg_driver'
     665 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^
   include/drm/drm_print.h:580:2: note: expanded from macro 'drm_dev_dbg'
     580 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^
   drivers/accel/rocket/rocket_job.c:604:3: error: call to undeclared function '_dynamic_func_call_cls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     604 |                 drm_dbg(dev, "job_struct_size field in drm_rocket_submit struct is too small.\n");
         |                 ^
   include/drm/drm_print.h:683:32: note: expanded from macro 'drm_dbg'
     683 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^
   include/drm/drm_print.h:665:2: note: expanded from macro 'drm_dbg_driver'
     665 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^
   include/drm/drm_print.h:580:2: note: expanded from macro 'drm_dev_dbg'
     580 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^
   drivers/accel/rocket/rocket_job.c:609:3: error: call to undeclared function '_dynamic_func_call_cls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     609 |                 drm_dbg(dev, "Reserved field in drm_rocket_submit struct should be 0.\n");
         |                 ^
   include/drm/drm_print.h:683:32: note: expanded from macro 'drm_dbg'
     683 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^
   include/drm/drm_print.h:665:2: note: expanded from macro 'drm_dbg_driver'
     665 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^
   include/drm/drm_print.h:580:2: note: expanded from macro 'drm_dev_dbg'
     580 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^
   drivers/accel/rocket/rocket_job.c:615:3: error: call to undeclared function '_dynamic_func_call_cls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     615 |                 drm_dbg(dev, "Failed to allocate incoming job array\n");
         |                 ^
   include/drm/drm_print.h:683:32: note: expanded from macro 'drm_dbg'
     683 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^
   include/drm/drm_print.h:665:2: note: expanded from macro 'drm_dbg_driver'
     665 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^
   include/drm/drm_print.h:580:2: note: expanded from macro 'drm_dev_dbg'
     580 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^
   drivers/accel/rocket/rocket_job.c:624:4: error: call to undeclared function '_dynamic_func_call_cls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     624 |                         drm_dbg(dev, "Failed to copy incoming job array\n");
         |                         ^
   include/drm/drm_print.h:683:32: note: expanded from macro 'drm_dbg'
     683 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^
   include/drm/drm_print.h:665:2: note: expanded from macro 'drm_dbg_driver'
     665 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^
   include/drm/drm_print.h:580:2: note: expanded from macro 'drm_dev_dbg'
     580 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^
   7 errors generated.


vim +/_dynamic_func_call_cls +137 drivers/accel/rocket/rocket_gem.c

525ad89dd90434 Tomeu Vizoso 2025-07-21  127  
525ad89dd90434 Tomeu Vizoso 2025-07-21  128  int rocket_ioctl_prep_bo(struct drm_device *dev, void *data, struct drm_file *file)
525ad89dd90434 Tomeu Vizoso 2025-07-21  129  {
525ad89dd90434 Tomeu Vizoso 2025-07-21  130  	struct drm_rocket_prep_bo *args = data;
525ad89dd90434 Tomeu Vizoso 2025-07-21  131  	unsigned long timeout = drm_timeout_abs_to_jiffies(args->timeout_ns);
525ad89dd90434 Tomeu Vizoso 2025-07-21  132  	struct drm_gem_object *gem_obj;
525ad89dd90434 Tomeu Vizoso 2025-07-21  133  	struct drm_gem_shmem_object *shmem_obj;
525ad89dd90434 Tomeu Vizoso 2025-07-21  134  	long ret = 0;
525ad89dd90434 Tomeu Vizoso 2025-07-21  135  
525ad89dd90434 Tomeu Vizoso 2025-07-21  136  	if (args->reserved != 0) {
525ad89dd90434 Tomeu Vizoso 2025-07-21 @137  		drm_dbg(dev, "Reserved field in drm_rocket_prep_bo struct should be 0.\n");
525ad89dd90434 Tomeu Vizoso 2025-07-21  138  		return -EINVAL;
525ad89dd90434 Tomeu Vizoso 2025-07-21  139  	}
525ad89dd90434 Tomeu Vizoso 2025-07-21  140  
525ad89dd90434 Tomeu Vizoso 2025-07-21  141  	gem_obj = drm_gem_object_lookup(file, args->handle);
525ad89dd90434 Tomeu Vizoso 2025-07-21  142  	if (!gem_obj)
525ad89dd90434 Tomeu Vizoso 2025-07-21  143  		return -ENOENT;
525ad89dd90434 Tomeu Vizoso 2025-07-21  144  
525ad89dd90434 Tomeu Vizoso 2025-07-21  145  	ret = dma_resv_wait_timeout(gem_obj->resv, DMA_RESV_USAGE_WRITE, true, timeout);
525ad89dd90434 Tomeu Vizoso 2025-07-21  146  	if (!ret)
525ad89dd90434 Tomeu Vizoso 2025-07-21  147  		ret = timeout ? -ETIMEDOUT : -EBUSY;
525ad89dd90434 Tomeu Vizoso 2025-07-21  148  
525ad89dd90434 Tomeu Vizoso 2025-07-21  149  	shmem_obj = &to_rocket_bo(gem_obj)->base;
525ad89dd90434 Tomeu Vizoso 2025-07-21  150  
525ad89dd90434 Tomeu Vizoso 2025-07-21  151  	dma_sync_sgtable_for_cpu(dev->dev, shmem_obj->sgt, DMA_BIDIRECTIONAL);
525ad89dd90434 Tomeu Vizoso 2025-07-21  152  
525ad89dd90434 Tomeu Vizoso 2025-07-21  153  	drm_gem_object_put(gem_obj);
525ad89dd90434 Tomeu Vizoso 2025-07-21  154  
525ad89dd90434 Tomeu Vizoso 2025-07-21  155  	return ret;
525ad89dd90434 Tomeu Vizoso 2025-07-21  156  }
525ad89dd90434 Tomeu Vizoso 2025-07-21  157  

:::::: The code at line 137 was first introduced by commit
:::::: 525ad89dd90434d529b76a87b1c653a69fedc416 accel/rocket: Add IOCTLs for synchronizing memory accesses

:::::: TO: Tomeu Vizoso <tomeu@tomeuvizoso.net>
:::::: CC: Jeff Hugo <jeff.hugo@oss.qualcomm.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-10 16:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-10 16:06 [jimc:dd-drm-fix 57/60] drivers/accel/rocket/rocket_gem.c:137:3: error: call to undeclared function '_dynamic_func_call_cls'; ISO C99 and later do not support implicit function declarations kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.