tree:   git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.2
head:   a48b0cc1cdf3900e3e73801f9de64afbb70dc193
commit: c7c81b24394a38d14607a15614ebea5da335ebd7 [2713/2834] drm/amdkcl: drop 
kcl_drm_get_format_name
config: x86_64-randconfig-e004-201944 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
        git checkout c7c81b24394a38d14607a15614ebea5da335ebd7
        # 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 <l...@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/drm/drm_crtc.h:40:0,
                    from include/drm/drmP.h:68,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_modes.h:475:6: note: previous declaration of 
'drm_mode_is_420_also' was here
    bool drm_mode_is_420_also(const struct drm_display_info *display,
         ^~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h: In function '_kcl_drm_encoder_init':
   include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function 
'drm_encoder_init'
     return drm_encoder_init(dev, encoder, funcs, encoder_type);
            ^~~~~~~~~~~~~~~~
   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:11,
                    from include/kcl/kcl_drm_backport.h:16,
                    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_backport.h: In function '_kcl_drm_crtc_init_with_planes':
   include/kcl/kcl_drm_backport.h:79:9: error: too few arguments to function 
'drm_crtc_init_with_planes'
     return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs);
            ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drmP.h:68:0,
                    from include/kcl/kcl_drm_backport.h:4,
                    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_backport.h: In function '_kcl_drm_universal_plane_init':
   include/kcl/kcl_drm_backport.h:98:28: 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_backport.h:4,
                    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_backport.h:97:9: 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_backport.h:4,
                    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,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h: In function '_kcl_drm_gem_object_lookup':
   include/kcl/kcl_drm_backport.h:108:31: error: passing argument 1 of 
'drm_gem_object_lookup' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
     return drm_gem_object_lookup(filp->minor->dev, filp, handle);
                                  ^~~~
   In file included from include/kcl/kcl_drm_backport.h:8:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_gem.h:386:24: note: expected 'struct drm_file *' but 
argument is of type 'struct drm_device *'
    struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 
handle);
                           ^~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h:108:49: warning: passing argument 2 of 
'drm_gem_object_lookup' makes integer from pointer without a cast 
[-Wint-conversion]
     return drm_gem_object_lookup(filp->minor->dev, filp, handle);
                                                    ^~~~
   In file included from include/kcl/kcl_drm_backport.h:8:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_gem.h:386:24: note: expected 'u32 {aka unsigned int}' but 
argument is of type 'struct drm_file *'
    struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 
handle);
                           ^~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h:108:9: error: too many arguments to function 
'drm_gem_object_lookup'
     return drm_gem_object_lookup(filp->minor->dev, filp, handle);
            ^~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:8:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_gem.h:386:24: note: declared here
    struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 
handle);
                           ^~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h: At top level:
>> include/kcl/kcl_drm_backport.h:118:8: error: redefinition of 'struct 
>> drm_format_name_buf'
    struct drm_format_name_buf {
           ^~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drmP.h:69:0,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fourcc.h:142:8: note: originally defined here
    struct drm_format_name_buf {
           ^~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:15:1: error: redefinition of 
'reservation_object_lock'
    reservation_object_lock(struct reservation_object *obj,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:159:1: note: previous definition of 
'reservation_object_lock' was here
    reservation_object_lock(struct reservation_object *obj,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:22:1: error: redefinition of 
'reservation_object_unlock'
    reservation_object_unlock(struct reservation_object *obj)
    ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:215:1: note: previous definition of 
'reservation_object_unlock' was here
    reservation_object_unlock(struct reservation_object *obj)
    ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:32:5: error: static declaration of 
'reservation_object_copy_fences' follows non-static declaration
    int reservation_object_copy_fences(struct reservation_object *dst,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:283:5: note: previous declaration of 
'reservation_object_copy_fences' was here
    int reservation_object_copy_fences(struct reservation_object *dst,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:41:1: error: redefinition of 
'reservation_object_lock_interruptible'
    reservation_object_lock_interruptible(struct reservation_object *obj,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:181:1: note: previous definition of 
'reservation_object_lock_interruptible' was here
    reservation_object_lock_interruptible(struct reservation_object *obj,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:50:1: error: redefinition of 
'reservation_object_trylock'
    reservation_object_trylock(struct reservation_object *obj)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:203:1: note: previous definition of 
'reservation_object_trylock' was here
    reservation_object_trylock(struct reservation_object *obj)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:60:6: error: static declaration of 
'reservation_object_test_signaled_rcu' follows non-static declaration
    bool reservation_object_test_signaled_rcu(struct reservation_object *obj,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:290:6: note: previous declaration of 
'reservation_object_test_signaled_rcu' was here
    bool reservation_object_test_signaled_rcu(struct reservation_object *obj,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:72:6: error: static declaration of 
'reservation_object_add_shared_fence' follows non-static declaration
    void reservation_object_add_shared_fence(struct reservation_object *obj,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:272:6: note: previous declaration of 
'reservation_object_add_shared_fence' was here
    void reservation_object_add_shared_fence(struct reservation_object *obj,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from include/drm/drm_crtc.h:40:0,
                    from include/drm/drmP.h:68,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_modes.h:475:6: note: previous declaration of 
'drm_mode_is_420_also' was here
    bool drm_mode_is_420_also(const struct drm_display_info *display,
         ^~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h: In function '_kcl_drm_encoder_init':
   include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function 
'drm_encoder_init'
     return drm_encoder_init(dev, encoder, funcs, encoder_type);
            ^~~~~~~~~~~~~~~~
   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:11,
                    from include/kcl/kcl_drm_backport.h:16,
                    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_backport.h: In function '_kcl_drm_crtc_init_with_planes':
   include/kcl/kcl_drm_backport.h:79:9: error: too few arguments to function 
'drm_crtc_init_with_planes'
     return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs);
            ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drmP.h:68:0,
                    from include/kcl/kcl_drm_backport.h:4,
                    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_backport.h: In function '_kcl_drm_universal_plane_init':
   include/kcl/kcl_drm_backport.h:98:28: 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_backport.h:4,
                    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_backport.h:97:9: 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_backport.h:4,
                    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,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h: In function '_kcl_drm_gem_object_lookup':
   include/kcl/kcl_drm_backport.h:108:31: error: passing argument 1 of 
'drm_gem_object_lookup' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
     return drm_gem_object_lookup(filp->minor->dev, filp, handle);
                                  ^~~~
   In file included from include/kcl/kcl_drm_backport.h:8:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_gem.h:386:24: note: expected 'struct drm_file *' but 
argument is of type 'struct drm_device *'
    struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 
handle);
                           ^~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h:108:49: warning: passing argument 2 of 
'drm_gem_object_lookup' makes integer from pointer without a cast 
[-Wint-conversion]
     return drm_gem_object_lookup(filp->minor->dev, filp, handle);
                                                    ^~~~
   In file included from include/kcl/kcl_drm_backport.h:8:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_gem.h:386:24: note: expected 'u32 {aka unsigned int}' but 
argument is of type 'struct drm_file *'
    struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 
handle);
                           ^~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h:108:9: error: too many arguments to function 
'drm_gem_object_lookup'
     return drm_gem_object_lookup(filp->minor->dev, filp, handle);
            ^~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:8:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_gem.h:386:24: note: declared here
    struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 
handle);
                           ^~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h: At top level:
>> include/kcl/kcl_drm_backport.h:118:8: error: redefinition of 'struct 
>> drm_format_name_buf'
    struct drm_format_name_buf {
           ^~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drmP.h:69:0,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fourcc.h:142:8: note: originally defined here
    struct drm_format_name_buf {
           ^~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:15:1: error: redefinition of 
'reservation_object_lock'
    reservation_object_lock(struct reservation_object *obj,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:159:1: note: previous definition of 
'reservation_object_lock' was here
    reservation_object_lock(struct reservation_object *obj,
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:22:1: error: redefinition of 
'reservation_object_unlock'
    reservation_object_unlock(struct reservation_object *obj)
    ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:215:1: note: previous definition of 
'reservation_object_unlock' was here
    reservation_object_unlock(struct reservation_object *obj)
    ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:32:5: error: static declaration of 
'reservation_object_copy_fences' follows non-static declaration
    int reservation_object_copy_fences(struct reservation_object *dst,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:283:5: note: previous declaration of 
'reservation_object_copy_fences' was here
    int reservation_object_copy_fences(struct reservation_object *dst,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:41:1: error: redefinition of 
'reservation_object_lock_interruptible'
    reservation_object_lock_interruptible(struct reservation_object *obj,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:181:1: note: previous definition of 
'reservation_object_lock_interruptible' was here
    reservation_object_lock_interruptible(struct reservation_object *obj,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:50:1: error: redefinition of 
'reservation_object_trylock'
    reservation_object_trylock(struct reservation_object *obj)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:203:1: note: previous definition of 
'reservation_object_trylock' was here
    reservation_object_trylock(struct reservation_object *obj)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:60:6: error: static declaration of 
'reservation_object_test_signaled_rcu' follows non-static declaration
    bool reservation_object_test_signaled_rcu(struct reservation_object *obj,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:290:6: note: previous declaration of 
'reservation_object_test_signaled_rcu' was here
    bool reservation_object_test_signaled_rcu(struct reservation_object *obj,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_reservation_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_reservation.h:72:6: error: static declaration of 
'reservation_object_add_shared_fence' follows non-static declaration
    void reservation_object_add_shared_fence(struct reservation_object *obj,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_gem.h:38:0,
                    from include/kcl/kcl_drm_backport.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/linux/reservation.h:272:6: note: previous declaration of 
'reservation_object_add_shared_fence' was here
    void reservation_object_add_shared_fence(struct reservation_object *obj,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
..

vim +118 include/kcl/kcl_drm_backport.h

     3  
     4  #include <drm/drmP.h>
     5  #include <drm/drm_edid.h>
     6  #include <drm/drm_crtc.h>
     7  #include <drm/drm_cache.h>
   > 8  #include <drm/drm_gem.h>
     9  #ifdef HAVE_DRM_FILE_H
    10  #include <drm/drm_file.h>
    11  #endif
    12  #if defined(HAVE_CHUNK_ID_SYNOBJ_IN_OUT)
    13  #include <drm/drm_syncobj.h>
    14  #endif
    15  #include <drm/drm_fourcc.h>
    16  #include <kcl/kcl_drm.h>
    17  
    18  #if defined(HAVE_DRM_EDID_TO_ELD)
    19  static inline
    20  int _kcl_drm_add_edid_modes(struct drm_connector *connector, struct 
edid *edid)
    21  {
    22          int ret;
    23  
    24          ret = drm_add_edid_modes(connector, edid);
    25  
    26          if (drm_edid_is_valid(edid))
    27                  drm_edid_to_eld(connector, edid);
    28  
    29          return ret;
    30  }
    31  #define drm_add_edid_modes _kcl_drm_add_edid_modes
    32  #endif
    33  
    34  #ifdef BUILD_AS_DKMS
    35  #define drm_arch_can_wc_memory kcl_drm_arch_can_wc_memory
    36  #endif
    37  
    38  #if defined(HAVE_CHUNK_ID_SYNOBJ_IN_OUT)
    39  static inline
    40  int _kcl_drm_syncobj_find_fence(struct drm_file *file_private,
    41                                                  u32 handle, u64 point, 
u64 flags,
    42                                                  struct dma_fence 
**fence)
    43  {
    44  #if defined(HAVE_DRM_SYNCOBJ_FIND_FENCE)
    45  #if defined(HAVE_DRM_SYNCOBJ_FIND_FENCE_5ARGS)
    46          return drm_syncobj_find_fence(file_private, handle, point, 
flags, fence);
    47  #elif defined(HAVE_DRM_SYNCOBJ_FIND_FENCE_4ARGS)
    48          return drm_syncobj_find_fence(file_private, handle, point, 
fence);
    49  #else
    50          return drm_syncobj_find_fence(file_private, handle, fence);
    51  #endif
    52  #elif defined(HAVE_DRM_SYNCOBJ_FENCE_GET)
    53          return drm_syncobj_fence_get(file_private, handle, fence);
    54  #endif
    55  }
    56  #define drm_syncobj_find_fence _kcl_drm_syncobj_find_fence
    57  #endif
    58  
    59  #if !defined(HAVE_DRM_ENCODER_INIT_VALID_WITH_NAME)
    60  static inline int _kcl_drm_encoder_init(struct drm_device *dev,
    61                        struct drm_encoder *encoder,
    62                        const struct drm_encoder_funcs *funcs,
    63                        int encoder_type, const char *name, ...)
    64  {
    65          return drm_encoder_init(dev, encoder, funcs, encoder_type);
    66  }
    67  #define drm_encoder_init _kcl_drm_encoder_init
    68  #endif
    69  
    70  
    71  #if !defined(HAVE_DRM_CRTC_INIT_WITH_PLANES_VALID_WITH_NAME)
    72  static inline
    73  int _kcl_drm_crtc_init_with_planes(struct drm_device *dev, struct 
drm_crtc *crtc,
    74                                struct drm_plane *primary,
    75                                struct drm_plane *cursor,
    76                                const struct drm_crtc_funcs *funcs,
    77                                const char *name, ...)
    78  {
    79          return drm_crtc_init_with_planes(dev, crtc, primary, cursor, 
funcs);
    80  }
    81  #define drm_crtc_init_with_planes _kcl_drm_crtc_init_with_planes
    82  #endif
    83  
    84  #ifndef HAVE_DRM_UNIVERSAL_PLANE_INIT_9ARGS
    85  static inline int _kcl_drm_universal_plane_init(struct drm_device *dev, 
struct drm_plane *plane,
    86                               unsigned long possible_crtcs,
    87                               const struct drm_plane_funcs *funcs,
    88                               const uint32_t *formats, unsigned int 
format_count,
    89                               const uint64_t *format_modifiers,
    90                               enum drm_plane_type type,
    91                               const char *name, ...)
    92  {
    93  #if defined(HAVE_DRM_UNIVERSAL_PLANE_INIT_8ARGS)
    94          return drm_universal_plane_init(dev, plane, possible_crtcs, 
funcs,
    95                           formats, format_count, type, name);
    96  #else
    97          return drm_universal_plane_init(dev, plane, possible_crtcs, 
funcs,
    98                           formats, format_count, type);
    99  #endif
   100  }
   101  #define drm_universal_plane_init _kcl_drm_universal_plane_init
   102  #endif
   103  
   104  #ifndef HAVE_DRM_GEM_OBJECT_LOOKUP_2ARGS
   105  static inline struct drm_gem_object *
   106  _kcl_drm_gem_object_lookup(struct drm_file *filp, u32 handle)
   107  {
   108          return drm_gem_object_lookup(filp->minor->dev, filp, handle);
   109  }
   110  #define drm_gem_object_lookup _kcl_drm_gem_object_lookup
   111  #endif
   112  
   113  #if !defined(HAVE_DRM_GET_FORMAT_NAME_I_P)
   114  /**
   115   * struct drm_format_name_buf - name of a DRM format
   116   * @str: string buffer containing the format name
   117   */
 > 118  struct drm_format_name_buf {
   119          char str[32];
   120  };
   121  

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to