From: kernel test robot <lkp@intel.com>
To: "Jim Cromie" <jim.cromie@gmail.com>,
" Łukasz Bartosik" <ukaszb@chromium.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Wed, 11 Feb 2026 00:06:06 +0800 [thread overview]
Message-ID: <202602102353.C3RmcWLH-lkp@intel.com> (raw)
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
reply other threads:[~2026-02-10 16:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202602102353.C3RmcWLH-lkp@intel.com \
--to=lkp@intel.com \
--cc=jim.cromie@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ukaszb@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.