[xlnx:master 425/551] drivers/gpu/drm/xlnx/xlnx_bridge.h:97:15: warning: duplicate 'inline' declaration specifier
From: kernel test robot <hidden>
Date: 2021-07-01 16:36:17
Also in:
oe-kbuild-all
Hi Jianqiang, FYI, the error/warning still remains. tree: https://github.com/Xilinx/linux-xlnx master head: 190ba47825b71dd7abeca27b890f1dd5bd5eb781 commit: 9d18453b9ae7efad1ab60ce9330182737976af8a [425/551] drm: xlnx: zynqmp: Rebase downstream Display port crtc features config: arm64-randconfig-r011-20210630 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e7e71e9454ed76c1b3d8140170b5333c28bef1be) 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 arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-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 ARCH=arm64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/xlnx/zynqmp_disp.c:40:
quoted
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
8942bb49a6afe8 Hyun Kwon 2018-01-23 96
232986daee13b1 Hyun Kwon 2018-02-08 @97 static inline inline int xlnx_bridge_helper_init(void)
8942bb49a6afe8 Hyun Kwon 2018-01-23 98 {
8942bb49a6afe8 Hyun Kwon 2018-01-23 99 return 0;
8942bb49a6afe8 Hyun Kwon 2018-01-23 100 }
8942bb49a6afe8 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 [off-list ref]
:::::: CC: Michal Simek [off-list ref]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 36247 bytes
- (unnamed) [text/plain] 176 bytes · preview