From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============2686254725320576267==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [jimc:v5 15/15] drivers/gpu/drm/drm_auth.c:109:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' Date: Wed, 29 Dec 2021 20:54:13 +0800 Message-ID: <202112292020.ktMeDXpg-lkp@intel.com> List-Id: --===============2686254725320576267== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/jimc/linux.git v5 head: b0de9c0c9ce698511bb73989aa36bf2eab2dbdbe commit: b0de9c0c9ce698511bb73989aa36bf2eab2dbdbe [15/15] drm_print: use _dy= namic_func_call_no_desc_cls config: x86_64-randconfig-a002-20211229 (https://download.01.org/0day-ci/ar= chive/20211229/202112292020.ktMeDXpg-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cd284b= 7ac0615afc6e0f1a30da2777e361de27a3) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/jimc/linux/commit/b0de9c0c9ce698511bb73989aa36= bf2eab2dbdbe git remote add jimc https://github.com/jimc/linux.git git fetch --no-tags jimc v5 git checkout b0de9c0c9ce698511bb73989aa36bf2eab2dbdbe # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash drivers/gpu/drm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/gpu/drm/drm_auth.c:109:2: error: implicit declaration of functio= n '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG("%u\n", auth->magic); ^ include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG' __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ drivers/gpu/drm/drm_auth.c:120:2: error: implicit declaration of functio= n '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG("%u\n", auth->magic); ^ include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG' __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ drivers/gpu/drm/drm_auth.c:277:3: error: implicit declaration of functio= n '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG_LEASE("Attempt to set lessee %d as master\n", = file_priv->master->lessee_id); ^ include/drm/drm_print.h:593:2: note: expanded from macro 'DRM_DEBUG_LEAS= E' __drm_dbg(DRM_UT_LEASE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ drivers/gpu/drm/drm_auth.c:318:3: error: implicit declaration of functio= n '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG_LEASE("Attempt to drop lessee %d as master\n",= file_priv->master->lessee_id); ^ include/drm/drm_print.h:593:2: note: expanded from macro 'DRM_DEBUG_LEAS= E' __drm_dbg(DRM_UT_LEASE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ 4 errors generated. -- >> drivers/gpu/drm/drm_gem.c:714:3: error: implicit declaration of function= '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG("Failed to copy in GEM handles\n"); ^ include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG' __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ drivers/gpu/drm/drm_gem.c:769:3: error: implicit declaration of function= '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG("Failed to look up GEM BO %d\n", handle); ^ include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG' __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ 2 errors generated. -- >> drivers/gpu/drm/drm_displayid.c:18:2: error: implicit declaration of fun= ction '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declara= tion] DRM_DEBUG_KMS("base revision 0x%x, length %d, %d %d\n", ^ include/drm/drm_print.h:577:2: note: expanded from macro 'DRM_DEBUG_KMS' __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ 1 error generated. -- >> drivers/gpu/drm/drm_rect.c:231:3: error: implicit declaration of functio= n '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG_KMS("%s" DRM_RECT_FP_FMT "\n", prefix, DRM_REC= T_FP_ARG(r)); ^ include/drm/drm_print.h:577:2: note: expanded from macro 'DRM_DEBUG_KMS' __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ 1 error generated. -- >> drivers/gpu/drm/drm_syncobj.c:300:3: error: implicit declaration of func= tion '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declarat= ion] DRM_DEBUG("You are adding an unorder point to timeline!\= n"); ^ include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG' __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ 1 error generated. -- >> drivers/gpu/drm/drm_hdcp.c:28:2: error: implicit declaration of function= '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG("\t%#02x, %#02x, %#02x, %#02x, %#02x\n", ^ include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG' __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ drivers/gpu/drm/drm_hdcp.c:67:3: error: implicit declaration of function= '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG("vrl: %d, Revoked KSVs: %d\n", vrl_idx++, ^ include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG' __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ drivers/gpu/drm/drm_hdcp.c:99:2: error: implicit declaration of function= '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG("SRM ID: 0x%x, SRM Ver: 0x%x, SRM Gen No: 0x%x\n", ^ include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG' __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ drivers/gpu/drm/drm_hdcp.c:160:2: error: implicit declaration of functio= n '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG("SRM ID: 0x%x, SRM Ver: 0x%x, SRM Gen No: 0x%x\n", ^ include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG' __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ drivers/gpu/drm/drm_hdcp.c:303:5: error: implicit declaration of functio= n '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration] DRM_DEBUG("Revoked KSV is "); ^ include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG' __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ 5 errors generated. -- >> drivers/gpu/drm/drm_managed.c:67:2: error: implicit declaration of funct= ion '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declarati= on] drm_dbg_drmres(dev, "drmres release begin\n"); ^ include/drm/drm_print.h:512:2: note: expanded from macro 'drm_dbg_drmres' drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__V= A_ARGS__) ^ include/drm/drm_print.h:417:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg, \ ^ drivers/gpu/drm/drm_managed.c:112:2: error: implicit declaration of func= tion '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declarat= ion] drm_dbg_drmres(dev, "DEL %p %s (%lu bytes)\n", ^ include/drm/drm_print.h:512:2: note: expanded from macro 'drm_dbg_drmres' drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__V= A_ARGS__) ^ include/drm/drm_print.h:417:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg, \ ^ drivers/gpu/drm/drm_managed.c:124:2: error: implicit declaration of func= tion '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declarat= ion] drm_dbg_drmres(dev, "ADD %p %s (%lu bytes)\n", ^ include/drm/drm_print.h:512:2: note: expanded from macro 'drm_dbg_drmres' drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__V= A_ARGS__) ^ include/drm/drm_print.h:417:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg, \ ^ drivers/gpu/drm/drm_managed.c:147:3: error: implicit declaration of func= tion '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declarat= ion] drm_dbg_drmres(dev, "failed to add action %s for %p\n", ^ include/drm/drm_print.h:512:2: note: expanded from macro 'drm_dbg_drmres' drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__V= A_ARGS__) ^ include/drm/drm_print.h:417:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg, \ ^ drivers/gpu/drm/drm_managed.c:194:3: error: implicit declaration of func= tion '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declarat= ion] drm_dbg_drmres(dev, "failed to allocate %zu bytes, %u fl= ags\n", ^ include/drm/drm_print.h:512:2: note: expanded from macro 'drm_dbg_drmres' drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__V= A_ARGS__) ^ include/drm/drm_print.h:417:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg, \ ^ 5 errors generated. -- >> drivers/gpu/drm/drm_ioc32.c:989:2: error: implicit declaration of functi= on '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaratio= n] DRM_DEBUG("comm=3D\"%s\", pid=3D%d, dev=3D0x%lx, auth=3D%d, %s\n= ", ^ include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG' __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ 1 error generated. -- >> drivers/gpu/drm/drm_gem_cma_helper.c:135:3: error: implicit declaration = of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-d= eclaration] drm_dbg(drm, "failed to allocate buffer with size %zu\n", ^ include/drm/drm_print.h:496:2: note: expanded from macro 'drm_dbg' drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__V= A_ARGS__) ^ include/drm/drm_print.h:417:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg, \ ^ drivers/gpu/drm/drm_gem_cma_helper.c:461:2: error: implicit declaration = of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-d= eclaration] DRM_DEBUG_PRIME("dma_addr =3D %pad, size =3D %zu\n", &cma_obj->p= addr, attach->dmabuf->size); ^ include/drm/drm_print.h:581:2: note: expanded from macro 'DRM_DEBUG_PRIM= E' __drm_dbg(DRM_UT_PRIME, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ 2 errors generated. -- >> drivers/gpu/drm/drm_gem_shmem_helper.c:167:3: error: implicit declaratio= n of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function= -declaration] DRM_DEBUG_KMS("Failed to get pages (%ld)\n", PTR_ERR(pag= es)); ^ include/drm/drm_print.h:577:2: note: expanded from macro 'DRM_DEBUG_KMS' __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ drivers/gpu/drm/drm_gem_shmem_helper.c:323:3: error: implicit declaratio= n of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function= -declaration] DRM_DEBUG_KMS("Failed to vmap pages, error %d\n", ret); ^ include/drm/drm_print.h:577:2: note: expanded from macro 'DRM_DEBUG_KMS' __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ drivers/gpu/drm/drm_gem_shmem_helper.c:775:2: error: implicit declaratio= n of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function= -declaration] DRM_DEBUG_PRIME("size =3D %zu\n", size); ^ include/drm/drm_print.h:581:2: note: expanded from macro 'DRM_DEBUG_PRIM= E' __drm_dbg(DRM_UT_PRIME, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg' _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg, \ ^ 3 errors generated. vim +/_dynamic_func_call_no_desc_cls +109 drivers/gpu/drm/drm_auth.c 1f7ef07cfa14fb drivers/gpu/drm/drm_auth.c Desmond Cheong Zhi Xi 2021-07-12= 93 = c153f45f9b7e30 drivers/char/drm/drm_auth.c Eric Anholt 2007-09-03= 94 int drm_getmagic(struct drm_device *dev, void *data, struct drm_file= *file_priv) ^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds 2005-04-16= 95 { c153f45f9b7e30 drivers/char/drm/drm_auth.c Eric Anholt 2007-09-03= 96 struct drm_auth *auth =3D data; 32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c David Herrmann 2015-05-04= 97 int ret =3D 0; ^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds 2005-04-16= 98 = d2b34ee62b409a drivers/gpu/drm/drm_auth.c Daniel Vetter 2016-06-17= 99 mutex_lock(&dev->master_mutex); 32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c David Herrmann 2015-05-04= 100 if (!file_priv->magic) { 32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c David Herrmann 2015-05-04= 101 ret =3D idr_alloc(&file_priv->master->magic_map, file_priv, 32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c David Herrmann 2015-05-04= 102 1, 0, GFP_KERNEL); 32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c David Herrmann 2015-05-04= 103 if (ret >=3D 0) 32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c David Herrmann 2015-05-04= 104 file_priv->magic =3D ret; ^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds 2005-04-16= 105 } 32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c David Herrmann 2015-05-04= 106 auth->magic =3D file_priv->magic; d2b34ee62b409a drivers/gpu/drm/drm_auth.c Daniel Vetter 2016-06-17= 107 mutex_unlock(&dev->master_mutex); ^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds 2005-04-16= 108 = c153f45f9b7e30 drivers/char/drm/drm_auth.c Eric Anholt 2007-09-03= @109 DRM_DEBUG("%u\n", auth->magic); c153f45f9b7e30 drivers/char/drm/drm_auth.c Eric Anholt 2007-09-03= 110 = 32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c David Herrmann 2015-05-04= 111 return ret < 0 ? ret : 0; ^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds 2005-04-16= 112 } ^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds 2005-04-16= 113 = :::::: The code@line 109 was first introduced by commit :::::: c153f45f9b7e30289157bba3ff5682291df16caa drm: Replace DRM_IOCTL_ARGS= with (dev, data, file_priv) and remove DRM_DEVICE. :::::: TO: Eric Anholt :::::: CC: Dave Airlie --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============2686254725320576267==--