All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:dd-lookup 53/56] include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls'
@ 2025-08-01 12:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-01 12:55 UTC (permalink / raw)
  To: Jim Cromie, Łukasz Bartosik; +Cc: oe-kbuild-all

tree:   https://github.com/jimc/linux.git dd-lookup
head:   f6006e353294709829a526d40efb1f26185a20cd
commit: 08d5ff8083dc983d4e3975240e382563d2ddf1ef [53/56] drm: restore CONFIG_DRM_USE_DYNAMIC_DEBUG un-BROKEN
config: x86_64-randconfig-r071-20250801 (https://download.01.org/0day-ci/archive/20250801/202508012015.2l89ZOLg-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250801/202508012015.2l89ZOLg-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/202508012015.2l89ZOLg-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/drm/drm_mm.h:51,
                    from include/drm/drm_vma_manager.h:26,
                    from include/drm/drm_gem.h:43,
                    from drivers/accel/amdxdna/aie2_ctx.c:8:
   drivers/accel/amdxdna/aie2_ctx.c: In function 'aie2_hwctx_restart':
>> include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' [-Werror=implicit-function-declaration]
     578 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:663:9: note: in expansion of macro 'drm_dev_dbg'
     663 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~
   include/drm/drm_print.h:681:33: note: in expansion of macro 'drm_dbg_driver'
     681 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~~~~~~
   drivers/accel/amdxdna/amdxdna_pci_drv.h:15:41: note: in expansion of macro 'drm_dbg'
      15 | #define XDNA_DBG(xdna, fmt, args...)    drm_dbg(&(xdna)->ddev, fmt, ##args)
         |                                         ^~~~~~~
   drivers/accel/amdxdna/aie2_ctx.c:76:17: note: in expansion of macro 'XDNA_DBG'
      76 |                 XDNA_DBG(xdna, "hwctx is not ready, status %d", hwctx->status);
         |                 ^~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/accel/amdxdna/aie2_error.c:8:
   drivers/accel/amdxdna/aie2_error.c: In function 'aie2_error_worker':
>> include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' [-Werror=implicit-function-declaration]
     578 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:663:9: note: in expansion of macro 'drm_dev_dbg'
     663 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~
   include/drm/drm_print.h:681:33: note: in expansion of macro 'drm_dbg_driver'
     681 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~~~~~~
   drivers/accel/amdxdna/amdxdna_pci_drv.h:15:41: note: in expansion of macro 'drm_dbg'
      15 | #define XDNA_DBG(xdna, fmt, args...)    drm_dbg(&(xdna)->ddev, fmt, ##args)
         |                                         ^~~~~~~
   drivers/accel/amdxdna/aie2_error.c:253:9: note: in expansion of macro 'XDNA_DBG'
     253 |         XDNA_DBG(xdna, "Error count %d return code %d", info->err_cnt, info->ret_code);
         |         ^~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/drm/drm_mm.h:51,
                    from include/drm/drm_vma_manager.h:26,
                    from include/drm/drm_gem.h:43,
                    from drivers/accel/amdxdna/aie2_message.c:9:
   drivers/accel/amdxdna/aie2_message.c: In function 'aie2_query_aie_version':
>> include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' [-Werror=implicit-function-declaration]
     578 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:663:9: note: in expansion of macro 'drm_dev_dbg'
     663 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~
   include/drm/drm_print.h:681:33: note: in expansion of macro 'drm_dbg_driver'
     681 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~~~~~~
   drivers/accel/amdxdna/amdxdna_pci_drv.h:15:41: note: in expansion of macro 'drm_dbg'
      15 | #define XDNA_DBG(xdna, fmt, args...)    drm_dbg(&(xdna)->ddev, fmt, ##args)
         |                                         ^~~~~~~
   drivers/accel/amdxdna/aie2_message.c:123:9: note: in expansion of macro 'XDNA_DBG'
     123 |         XDNA_DBG(xdna, "Query AIE version - major: %u minor: %u completed",
         |         ^~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/drm/drm_mm.h:51,
                    from include/drm/drm_vma_manager.h:26,
                    from include/drm/drm_gem.h:43,
                    from include/drm/drm_gem_shmem_helper.h:11,
                    from drivers/accel/amdxdna/aie2_pci.c:9:
   drivers/accel/amdxdna/aie2_pci.c: In function 'aie2_dump_chann_info_debug':
>> include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' [-Werror=implicit-function-declaration]
     578 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:663:9: note: in expansion of macro 'drm_dev_dbg'
     663 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~
   include/drm/drm_print.h:681:33: note: in expansion of macro 'drm_dbg_driver'
     681 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~~~~~~
   drivers/accel/amdxdna/amdxdna_pci_drv.h:15:41: note: in expansion of macro 'drm_dbg'
      15 | #define XDNA_DBG(xdna, fmt, args...)    drm_dbg(&(xdna)->ddev, fmt, ##args)
         |                                         ^~~~~~~
   drivers/accel/amdxdna/aie2_pci.c:86:9: note: in expansion of macro 'XDNA_DBG'
      86 |         XDNA_DBG(xdna, "i2x tail    0x%x", ndev->mgmt_i2x.mb_tail_ptr_reg);
         |         ^~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/drm/drm_mm.h:51,
                    from include/drm/drm_vma_manager.h:26,
                    from include/drm/drm_gem.h:43,
                    from include/drm/drm_gem_shmem_helper.h:11,
                    from drivers/accel/amdxdna/aie2_smu.c:7:
   drivers/accel/amdxdna/aie2_smu.c: In function 'npu1_set_dpm':
>> include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' [-Werror=implicit-function-declaration]
     578 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:663:9: note: in expansion of macro 'drm_dev_dbg'
     663 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~
   include/drm/drm_print.h:681:33: note: in expansion of macro 'drm_dbg_driver'
     681 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~~~~~~
   drivers/accel/amdxdna/amdxdna_pci_drv.h:15:41: note: in expansion of macro 'drm_dbg'
      15 | #define XDNA_DBG(xdna, fmt, args...)    drm_dbg(&(xdna)->ddev, fmt, ##args)
         |                                         ^~~~~~~
   drivers/accel/amdxdna/aie2_smu.c:81:9: note: in expansion of macro 'XDNA_DBG'
      81 |         XDNA_DBG(ndev->xdna, "MP-NPU clock %d, H clock %d\n",
         |         ^~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/accel/amdxdna/aie2_solver.c:8:
   drivers/accel/amdxdna/aie2_solver.c: In function 'xrs_allocate_resource':
>> include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' [-Werror=implicit-function-declaration]
     578 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:663:9: note: in expansion of macro 'drm_dev_dbg'
     663 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~
   include/drm/drm_print.h:681:33: note: in expansion of macro 'drm_dbg_driver'
     681 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~~~~~~
   drivers/accel/amdxdna/aie2_solver.c:336:9: note: in expansion of macro 'drm_dbg'
     336 |         drm_dbg(xrs->cfg.ddev, "start col %d ncols %d\n",
         |         ^~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/drm/drm_mm.h:51,
                    from include/drm/drm_vma_manager.h:26,
                    from include/drm/drm_gem.h:43,
                    from drivers/accel/amdxdna/amdxdna_ctx.c:10:
   drivers/accel/amdxdna/amdxdna_ctx.c: In function 'amdxdna_hwctx_remove_all':
>> include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' [-Werror=implicit-function-declaration]
     578 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:663:9: note: in expansion of macro 'drm_dev_dbg'
     663 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~
   include/drm/drm_print.h:681:33: note: in expansion of macro 'drm_dbg_driver'
     681 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~~~~~~
   drivers/accel/amdxdna/amdxdna_pci_drv.h:15:41: note: in expansion of macro 'drm_dbg'
      15 | #define XDNA_DBG(xdna, fmt, args...)    drm_dbg(&(xdna)->ddev, fmt, ##args)
         |                                         ^~~~~~~
   drivers/accel/amdxdna/amdxdna_ctx.c:157:17: note: in expansion of macro 'XDNA_DBG'
     157 |                 XDNA_DBG(client->xdna, "PID %d close HW context %d",
         |                 ^~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/drm/drm_mm.h:51,
                    from include/drm/drm_vma_manager.h:26,
                    from include/drm/drm_gem.h:43,
                    from drivers/accel/amdxdna/amdxdna_gem.c:9:
   drivers/accel/amdxdna/amdxdna_gem.c: In function 'amdxdna_hmm_invalidate':
>> include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' [-Werror=implicit-function-declaration]
     578 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:663:9: note: in expansion of macro 'drm_dev_dbg'
     663 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~
   include/drm/drm_print.h:681:33: note: in expansion of macro 'drm_dbg_driver'
     681 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~~~~~~
   drivers/accel/amdxdna/amdxdna_pci_drv.h:15:41: note: in expansion of macro 'drm_dbg'
      15 | #define XDNA_DBG(xdna, fmt, args...)    drm_dbg(&(xdna)->ddev, fmt, ##args)
         |                                         ^~~~~~~
   drivers/accel/amdxdna/amdxdna_gem.c:72:9: note: in expansion of macro 'XDNA_DBG'
      72 |         XDNA_DBG(xdna, "Invalidating range 0x%lx, 0x%lx, type %d",
         |         ^~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/drm/drm_mm.h:51,
                    from include/drm/drm_vma_manager.h:26,
                    from include/drm/drm_gem.h:43,
                    from drivers/accel/amdxdna/amdxdna_pci_drv.c:9:
   drivers/accel/amdxdna/amdxdna_pci_drv.c: In function 'amdxdna_drm_open':
>> include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' [-Werror=implicit-function-declaration]
     578 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:663:9: note: in expansion of macro 'drm_dev_dbg'
     663 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~
   include/drm/drm_print.h:681:33: note: in expansion of macro 'drm_dbg_driver'
     681 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~~~~~~
   drivers/accel/amdxdna/amdxdna_pci_drv.h:15:41: note: in expansion of macro 'drm_dbg'
      15 | #define XDNA_DBG(xdna, fmt, args...)    drm_dbg(&(xdna)->ddev, fmt, ##args)
         |                                         ^~~~~~~
   drivers/accel/amdxdna/amdxdna_pci_drv.c:96:9: note: in expansion of macro 'XDNA_DBG'
      96 |         XDNA_DBG(xdna, "pid %d opened", client->pid);
         |         ^~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/drm/drm_mm.h:51,
                    from include/drm/drm_vma_manager.h:26,
                    from include/drm/drm_gem.h:43,
                    from aie2_ctx.c:8:
   aie2_ctx.c: In function 'aie2_hwctx_restart':
>> include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' [-Werror=implicit-function-declaration]
     578 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:663:9: note: in expansion of macro 'drm_dev_dbg'
     663 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~
   include/drm/drm_print.h:681:33: note: in expansion of macro 'drm_dbg_driver'
     681 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~~~~~~
   amdxdna_pci_drv.h:15:41: note: in expansion of macro 'drm_dbg'
      15 | #define XDNA_DBG(xdna, fmt, args...)    drm_dbg(&(xdna)->ddev, fmt, ##args)
         |                                         ^~~~~~~
   aie2_ctx.c:76:17: note: in expansion of macro 'XDNA_DBG'
      76 |                 XDNA_DBG(xdna, "hwctx is not ready, status %d", hwctx->status);
         |                 ^~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from aie2_error.c:8:
   aie2_error.c: In function 'aie2_error_worker':
>> include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' [-Werror=implicit-function-declaration]
     578 |         _dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,         \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/drm/drm_print.h:663:9: note: in expansion of macro 'drm_dev_dbg'
     663 |         drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~
   include/drm/drm_print.h:681:33: note: in expansion of macro 'drm_dbg_driver'
     681 | #define drm_dbg(drm, fmt, ...)  drm_dbg_driver(drm, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~~~~~~
   amdxdna_pci_drv.h:15:41: note: in expansion of macro 'drm_dbg'
      15 | #define XDNA_DBG(xdna, fmt, args...)    drm_dbg(&(xdna)->ddev, fmt, ##args)
         |                                         ^~~~~~~
   aie2_error.c:253:9: note: in expansion of macro 'XDNA_DBG'
     253 |         XDNA_DBG(xdna, "Error count %d return code %d", info->err_cnt, info->ret_code);
         |         ^~~~~~~~
   cc1: some warnings being treated as errors
..


vim +/_dynamic_func_call_cls +578 include/drm/drm_print.h

02c9656b2f0d69 Haneen Mohammed 2017-10-17  572  
84ec67288c10fb Jim Cromie      2022-09-11  573  #if !defined(CONFIG_DRM_USE_DYNAMIC_DEBUG)
e820f52577b14c Jim Cromie      2022-09-11  574  #define drm_dev_dbg(dev, cat, fmt, ...)				\
16deeb8e18cafd Jim Cromie      2022-09-11  575  	__drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
84ec67288c10fb Jim Cromie      2022-09-11  576  #else
84ec67288c10fb Jim Cromie      2022-09-11  577  #define drm_dev_dbg(dev, cat, fmt, ...)				\
16deeb8e18cafd Jim Cromie      2022-09-11 @578  	_dynamic_func_call_cls(cat, fmt, __drm_dev_dbg,		\
84ec67288c10fb Jim Cromie      2022-09-11  579  			       dev, cat, fmt, ##__VA_ARGS__)
84ec67288c10fb Jim Cromie      2022-09-11  580  #endif
e820f52577b14c Jim Cromie      2022-09-11  581  

:::::: The code at line 578 was first introduced by commit
:::::: 16deeb8e18cafd30e70d8dc2b12a753b28298d8a drm_print: add _ddebug descriptor to drm_*dbg prototypes

:::::: TO: Jim Cromie <jim.cromie@gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-- 
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:[~2025-08-01 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-01 12:55 [jimc:dd-lookup 53/56] include/drm/drm_print.h:578:9: error: implicit declaration of function '_dynamic_func_call_cls' 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.