tree: https://github.com/Xilinx/linux-xlnx master head: bea04171cb9e59f85602890504a91f4d1321df21 commit: 9d18453b9ae7efad1ab60ce9330182737976af8a [425/437] drm: xlnx: zynqmp: Rebase downstream Display port crtc features config: x86_64-randconfig-r024-20210510 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 492173d42b32cb91d5d0d72d5ed84fcab80d059a) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/Xilinx/linux-xlnx/commit/9d18453b9ae7efad1ab60ce9330182737976af8a git remote add xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xlnx master git checkout 9d18453b9ae7efad1ab60ce9330182737976af8a # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/xlnx/zynqmp_disp.c:40: >> drivers/gpu/drm/xlnx/xlnx_bridge.h:97:15: warning: duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier] static inline inline int xlnx_bridge_helper_init(void) ^ include/linux/compiler_types.h:144:16: note: expanded from macro 'inline' #define inline inline __gnu_inline __inline_maybe_unused notrace ^ drivers/gpu/drm/xlnx/zynqmp_disp.c:1924:2: error: implicit declaration of function 'zynqmp_dp_set_color' [-Werror,-Wimplicit-function-declaration] zynqmp_dp_set_color(disp->dpsub->dp, zynqmp_disp_color_enum[id].name); ^ drivers/gpu/drm/xlnx/zynqmp_disp.c:1924:2: note: did you mean 'zynqmp_disp_clr'? drivers/gpu/drm/xlnx/zynqmp_disp.c:308:13: note: 'zynqmp_disp_clr' declared here static void zynqmp_disp_clr(void __iomem *base, int offset, u32 clr) ^ drivers/gpu/drm/xlnx/zynqmp_disp.c:2575:2: error: implicit declaration of function 'zynqmp_dp_encoder_mode_set_stream' [-Werror,-Wimplicit-function-declaration] zynqmp_dp_encoder_mode_set_stream(disp->dpsub->dp, adjusted_mode); ^ drivers/gpu/drm/xlnx/zynqmp_disp.c:2620:20: error: no member named 'external_crtc_attached' in 'struct zynqmp_dpsub' if (!disp->dpsub->external_crtc_attached) ~~~~~~~~~~~ ^ drivers/gpu/drm/xlnx/zynqmp_disp.c:2756:2: error: implicit declaration of function 'zynqmp_dp_set_color' [-Werror,-Wimplicit-function-declaration] zynqmp_dp_set_color(disp->dpsub->dp, zynqmp_disp_color_enum[0].name); ^ drivers/gpu/drm/xlnx/zynqmp_disp.c:2767:20: error: no member named 'external_crtc_attached' in 'struct zynqmp_dpsub' if (!disp->dpsub->external_crtc_attached) ~~~~~~~~~~~ ^ drivers/gpu/drm/xlnx/zynqmp_disp.c:2775:20: error: no member named 'external_crtc_attached' in 'struct zynqmp_dpsub' if (!disp->dpsub->external_crtc_attached) ~~~~~~~~~~~ ^ drivers/gpu/drm/xlnx/zynqmp_disp.c:2818:19: error: no member named 'external_crtc_attached' in 'struct zynqmp_dpsub' if (disp->dpsub->external_crtc_attached) ~~~~~~~~~~~ ^ drivers/gpu/drm/xlnx/zynqmp_disp.c:2828:19: error: no member named 'external_crtc_attached' in 'struct zynqmp_dpsub' if (disp->dpsub->external_crtc_attached && layer->id == ZYNQMP_DISP_LAYER_VID) ~~~~~~~~~~~ ^ 1 warning and 8 errors generated. vim +/inline +97 drivers/gpu/drm/xlnx/xlnx_bridge.h 8942bb49a6afe88 Hyun Kwon 2018-01-23 96 232986daee13b17 Hyun Kwon 2018-02-08 @97 static inline inline int xlnx_bridge_helper_init(void) 8942bb49a6afe88 Hyun Kwon 2018-01-23 98 { 8942bb49a6afe88 Hyun Kwon 2018-01-23 99 return 0; 8942bb49a6afe88 Hyun Kwon 2018-01-23 100 } 8942bb49a6afe88 Hyun Kwon 2018-01-23 101 :::::: The code at line 97 was first introduced by commit :::::: 232986daee13b17e61a456fd3a0a6419fe05cc83 drm: xlnx: bridge: Fix the multiple definition error :::::: TO: Hyun Kwon :::::: CC: Michal Simek --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org