From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3101627851754924087==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [jimc:v4 9/10] drivers/gpu/drm/gud/gud_drv.c:98:2: error: implicit declaration of function '_dynamic_func_call_no_desc' Date: Tue, 21 Dec 2021 04:36:27 +0800 Message-ID: <202112210423.S0M3cbfH-lkp@intel.com> List-Id: --===============3101627851754924087== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/jimc/linux.git v4 head: cba6e0513279b3f4928f8d2b70c90ff5d3b8d7a1 commit: 40db41a837c5f296c51282d579e4e91642f77646 [9/10] drm_print: add dyna= mic_debug wrapper config: hexagon-randconfig-r021-20211220 (https://download.01.org/0day-ci/a= rchive/20211221/202112210423.S0M3cbfH-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 555eac= f75f21cd1dfc6363d73ad187b730349543) 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/40db41a837c5f296c51282d579e4= e91642f77646 git remote add jimc https://github.com/jimc/linux.git git fetch --no-tags jimc v4 git checkout 40db41a837c5f296c51282d579e4e91642f77646 # 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=3Dhexagon SHELL=3D/bin/bash drivers/gpu/drm/gud/ 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/gud/gud_drv.c:98:2: error: implicit declaration of funct= ion '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration] DRM_DEV_DEBUG_DRIVER(&intf->dev, ^ include/drm/drm_print.h:409:2: note: expanded from macro 'DRM_DEV_DEBUG_= DRIVER' drm_dev_dbg(dev, DRM_UT_DRIVER, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:387:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc(fmt, __drm_dev_dbg, \ ^ drivers/gpu/drm/gud/gud_drv.c:157:2: error: implicit declaration of func= tion '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration] drm_dbg(&gdrm->drm, "%s: request=3D0x%x index=3D%u len=3D%zu\n", ^ include/drm/drm_print.h:465: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:387:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc(fmt, __drm_dev_dbg, \ ^ drivers/gpu/drm/gud/gud_drv.c:295:4: error: implicit declaration of func= tion '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration] drm_dbg(&gdrm->drm, "Ignoring unknown property: = %u\n", prop); ^ include/drm/drm_print.h:465: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:387:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc(fmt, __drm_dev_dbg, \ ^ drivers/gpu/drm/gud/gud_drv.c:455:3: error: implicit declaration of func= tion '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration] DRM_DEV_DEBUG_DRIVER(dev, "Not a display interface: ret= =3D%d\n", ret); ^ include/drm/drm_print.h:409:2: note: expanded from macro 'DRM_DEV_DEBUG_= DRIVER' drm_dev_dbg(dev, DRM_UT_DRIVER, fmt, ##__VA_ARGS__) ^ include/drm/drm_print.h:387:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc(fmt, __drm_dev_dbg, \ ^ drivers/gpu/drm/gud/gud_drv.c:512:4: error: implicit declaration of func= tion '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration] drm_dbg(drm, "Unsupported format: 0x%02x\n", for= mats_dev[i]); ^ include/drm/drm_print.h:465: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:387:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc(fmt, __drm_dev_dbg, \ ^ drivers/gpu/drm/gud/gud_drv.c:642:2: error: implicit declaration of func= tion '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration] drm_dbg(drm, "%s:\n", __func__); ^ include/drm/drm_print.h:465: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:387:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc(fmt, __drm_dev_dbg, \ ^ 6 errors generated. -- >> drivers/gpu/drm/gud/gud_pipe.c:286:2: error: implicit declaration of fun= ction '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration] drm_dbg(&gdrm->drm, "Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->b= ase.id, DRM_RECT_ARG(rect)); ^ include/drm/drm_print.h:465: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:387:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc(fmt, __drm_dev_dbg, \ ^ 1 error generated. -- >> drivers/gpu/drm/gud/gud_connector.c:510:3: error: implicit declaration o= f function '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declar= ation] drm_dbg(drm, "property: %u =3D %llu(0x%llx)\n", prop, va= l, val); ^ include/drm/drm_print.h:465: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:387:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc(fmt, __drm_dev_dbg, \ ^ drivers/gpu/drm/gud/gud_connector.c:628:2: error: implicit declaration o= f function '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declar= ation] drm_dbg(drm, "Connector: index=3D%u type=3D%u flags=3D0x%x\n", i= ndex, desc->connector_type, flags); ^ include/drm/drm_print.h:465: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:387:2: note: expanded from macro 'drm_dev_dbg' _dynamic_func_call_no_desc(fmt, __drm_dev_dbg, \ ^ 2 errors generated. vim +/_dynamic_func_call_no_desc +98 drivers/gpu/drm/gud/gud_drv.c 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 76 = 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 77 static int gud_get_disp= lay_descriptor(struct usb_interface *intf, 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 78 struct gud_di= splay_descriptor_req *desc) 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 79 { 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 80 void *buf; 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 81 int ret; 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 82 = 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 83 buf =3D kmalloc(sizeof= (*desc), GFP_KERNEL); 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 84 if (!buf) 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 85 return -ENOMEM; 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 86 = 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 87 ret =3D gud_usb_contro= l_msg(intf, true, GUD_REQ_GET_DESCRIPTOR, 0, buf, sizeof(*desc)); 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 88 memcpy(desc, buf, size= of(*desc)); 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 89 kfree(buf); 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 90 if (ret < 0) 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 91 return ret; 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 92 if (ret !=3D sizeof(*d= esc)) 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 93 return -EIO; 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 94 = 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 95 if (desc->magic !=3D l= e32_to_cpu(GUD_DISPLAY_MAGIC)) 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 96 return -ENODATA; 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 97 = 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 @98 DRM_DEV_DEBUG_DRIVER(&= intf->dev, 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 99 "version=3D%u f= lags=3D0x%x compression=3D0x%x max_buffer_size=3D%u\n", 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 100 desc->version, = le32_to_cpu(desc->flags), desc->compression, 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 101 le32_to_cpu(des= c->max_buffer_size)); 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 102 = 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 103 if (!desc->version || = !desc->max_width || !desc->max_height || 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 104 le32_to_cpu(desc->= min_width) > le32_to_cpu(desc->max_width) || 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 105 le32_to_cpu(desc->= min_height) > le32_to_cpu(desc->max_height)) 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 106 return -EINVAL; 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 107 = 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 108 return 0; 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 109 } 40e1a70b4aedf2 Noralf Tr=C3=B8nnes 2021-03-13 110 = :::::: The code at line 98 was first introduced by commit :::::: 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 drm: Add GUD USB Display dr= iver :::::: TO: Noralf Tr=C3=B8nnes :::::: CC: Noralf Tr=C3=B8nnes --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3101627851754924087==--