[radeon-alex:amd-mainline-dkms-5.2 1964/2647] include/kcl/kcl_drm.h:227:29: error: incompatible type for argument 7 of 'drm_universal_plane_init'

kbuild test robot lkp at intel.com
Fri Nov 1 07:54:46 UTC 2019


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.2
head:   b027ed8d9051470f4ed6bc071fcde172fe1fc595
commit: aa5f7e64d5afdf1b60cb7594bc78632997b6eb38 [1964/2647] drm/amdkcl: Test whether drm_universal_plane_init() wants 9 args or 8 args
config: x86_64-randconfig-g002-201943 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
        git checkout aa5f7e64d5afdf1b60cb7594bc78632997b6eb38
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:98:1: error: conflicting types for 'drm_fb_helper_remove_conflicting_framebuffers'
    drm_fb_helper_remove_conflicting_framebuffers(struct apertures_struct *a,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:589:1: note: previous definition of 'drm_fb_helper_remove_conflicting_framebuffers' was here
    drm_fb_helper_remove_conflicting_framebuffers(struct apertures_struct *a,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_encoder_init':
   include/kcl/kcl_drm.h:191:9: error: too few arguments to function 'drm_encoder_init'
     return drm_encoder_init(dev, encoder, funcs,
            ^~~~~~~~~~~~~~~~
   In file included from include/drm/drm_modeset_helper_vtables.h:33:0,
                    from include/drm/drm_atomic_helper.h:32,
                    from include/kcl/kcl_drm.h:10,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_encoder.h:183:5: note: declared here
    int drm_encoder_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_crtc_init_with_planes':
   include/kcl/kcl_drm.h:206:10: error: too few arguments to function 'drm_crtc_init_with_planes'
      return drm_crtc_init_with_planes(dev, crtc, primary,
             ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drmP.h:68:0,
                    from include/kcl/kcl_drm.h:6,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_crtc.h:1120:5: note: declared here
    int drm_crtc_init_with_planes(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_universal_plane_init':
>> include/kcl/kcl_drm.h:227:29: error: incompatible type for argument 7 of 'drm_universal_plane_init'
         formats, format_count, type);
                                ^~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:68,
                    from include/kcl/kcl_drm.h:6,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_plane.h:713:5: note: expected 'const uint64_t * {aka const long long unsigned int *}' but argument is of type 'enum drm_plane_type'
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
>> include/kcl/kcl_drm.h:226:10: error: too few arguments to function 'drm_universal_plane_init'
      return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
             ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:68,
                    from include/kcl/kcl_drm.h:6,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_plane.h:713:5: note: declared here
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~

vim +/drm_universal_plane_init +227 include/kcl/kcl_drm.h

950c9c93299ece Junwei Zhang   2016-12-23  210  
950c9c93299ece Junwei Zhang   2016-12-23  211  static inline int kcl_drm_universal_plane_init(struct drm_device *dev, struct drm_plane *plane,
950c9c93299ece Junwei Zhang   2016-12-23  212  			     unsigned long possible_crtcs,
950c9c93299ece Junwei Zhang   2016-12-23  213  			     const struct drm_plane_funcs *funcs,
950c9c93299ece Junwei Zhang   2016-12-23  214  			     const uint32_t *formats, unsigned int format_count,
7e18f7a415538c Evan Quan      2019-02-18  215  			     const uint64_t *format_modifiers,
950c9c93299ece Junwei Zhang   2016-12-23  216  			     enum drm_plane_type type,
950c9c93299ece Junwei Zhang   2016-12-23  217  			     const char *name, ...)
950c9c93299ece Junwei Zhang   2016-12-23  218  {
aa5f7e64d5afdf Slava Grigorev 2018-07-17  219  #if defined(HAVE_9ARGS_DRM_UNIVERSAL_PLANE_INIT)
7e18f7a415538c Evan Quan      2019-02-18  220  		return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
7e18f7a415538c Evan Quan      2019-02-18  221  				 formats, format_count, format_modifiers, type, name);
aa5f7e64d5afdf Slava Grigorev 2018-07-17  222  #elif defined(HAVE_8ARGS_DRM_UNIVERSAL_PLANE_INIT)
950c9c93299ece Junwei Zhang   2016-12-23  223  		return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
950c9c93299ece Junwei Zhang   2016-12-23  224  				 formats, format_count, type, name);
950c9c93299ece Junwei Zhang   2016-12-23  225  #else
950c9c93299ece Junwei Zhang   2016-12-23 @226  		return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
950c9c93299ece Junwei Zhang   2016-12-23 @227  				 formats, format_count, type);
950c9c93299ece Junwei Zhang   2016-12-23  228  #endif
950c9c93299ece Junwei Zhang   2016-12-23  229  }
950c9c93299ece Junwei Zhang   2016-12-23  230  

:::::: The code at line 227 was first introduced by commit
:::::: 950c9c93299eceb8cca4b12eb09a04a48d383ec6 drm/amdkcl: [4.5] fix drm encoder and plane functions

:::::: TO: Junwei Zhang <Jerry.Zhang at amd.com>
:::::: CC: Chengming Gui <Jack.Gui at amd.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 33289 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20191101/e3b8168a/attachment-0001.gz>


More information about the dri-devel mailing list