[xlnx:master 425/513] drivers/gpu/drm/xlnx/xlnx_bridge.h:97:15: warning: duplicate 'inline' declaration specifier

kernel test robot lkp at intel.com
Wed Jun 16 15:32:01 PDT 2021


Hi Jianqiang,

FYI, the error/warning still remains.

tree:   https://github.com/Xilinx/linux-xlnx master
head:   256af411ba94859adc39c4319a269892ab28f4a5
commit: 9d18453b9ae7efad1ab60ce9330182737976af8a [425/513] drm: xlnx: zynqmp: Rebase downstream Display port crtc features
config: riscv-randconfig-r024-20210615 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-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=riscv 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

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

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 <hyun.kwon at xilinx.com>
:::::: CC: Michal Simek <michal.simek at xilinx.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 42082 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210617/fd90062c/attachment-0001.gz>


More information about the linux-arm-kernel mailing list