[radeon-alex:amd-mainline-dkms-5.2 2705/2834] include/kcl/kcl_drm_backport.h:63:9: error: too few arguments to function 'drm_encoder_init'

kbuild test robot lkp at intel.com
Sat Nov 9 08:03:45 UTC 2019


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

                    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_drm_backport.h:14:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_gem_object_put_unlocked':
   include/kcl/kcl_drm.h:357:9: error: implicit declaration of function 'drm_gem_object_unreference_unlocked'; did you mean 'drm_gem_object_put_unlocked'? [-Werror=implicit-function-declaration]
     return drm_gem_object_unreference_unlocked(obj);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            drm_gem_object_put_unlocked
   include/kcl/kcl_drm.h:357:9: warning: 'return' with a value, in function returning void
     return drm_gem_object_unreference_unlocked(obj);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h:354:20: note: declared here
    static inline void kcl_drm_gem_object_put_unlocked(struct drm_gem_object *obj)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: At top level:
   include/kcl/kcl_drm.h:471:34: error: redefinition of 'drm_debug_printer'
    static inline struct drm_printer drm_debug_printer(const char *prefix)
                                     ^~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_mm.h:49:0,
                    from include/drm/drm_vma_manager.h:26,
                    from include/kcl/kcl_drm_vma_manager.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:5,
                    from <command-line>:0:
   include/drm/drm_print.h:219:34: note: previous definition of 'drm_debug_printer' was here
    static inline struct drm_printer drm_debug_printer(const char *prefix)
                                     ^~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:14:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:551:20: error: static declaration of 'drm_dev_put' follows non-static declaration
    static inline void drm_dev_put(struct drm_device *dev)
                       ^~~~~~~~~~~
   In file included from include/drm/drmP.h:74: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_drv.h:739:6: note: previous declaration of 'drm_dev_put' was here
    void drm_dev_put(struct drm_device *dev);
         ^~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:14:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'drm_dev_put':
   include/kcl/kcl_drm.h:553:9: error: implicit declaration of function 'drm_dev_unref'; did you mean 'drm_dev_enter'? [-Werror=implicit-function-declaration]
     return drm_dev_unref(dev);
            ^~~~~~~~~~~~~
            drm_dev_enter
   include/kcl/kcl_drm.h:553:9: warning: 'return' with a value, in function returning void
     return drm_dev_unref(dev);
            ^~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h:551:20: note: declared here
    static inline void drm_dev_put(struct drm_device *dev)
                       ^~~~~~~~~~~
   include/kcl/kcl_drm.h: At top level:
   include/kcl/kcl_drm.h:558:19: error: static declaration of 'drm_crtc_accurate_vblank_count' follows non-static declaration
    static inline u64 drm_crtc_accurate_vblank_count(struct drm_crtc *crtc)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drmP.h:82: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_vblank.h:218:5: note: previous declaration of 'drm_crtc_accurate_vblank_count' was here
    u64 drm_crtc_accurate_vblank_count(struct drm_crtc *crtc);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:14:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:595:20: error: static declaration of 'drm_mode_is_420_only' follows non-static declaration
    static inline bool drm_mode_is_420_only(const struct drm_display_info *display,
                       ^~~~~~~~~~~~~~~~~~~~
   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:473:6: note: previous declaration of 'drm_mode_is_420_only' was here
    bool drm_mode_is_420_only(const struct drm_display_info *display,
         ^~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:14:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:602:20: error: static declaration of 'drm_mode_is_420_also' follows non-static declaration
    static inline bool drm_mode_is_420_also(const struct drm_display_info *display,
                       ^~~~~~~~~~~~~~~~~~~~
   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:63: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:14,
                    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 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: At top level:
   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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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
--
                    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_drm_backport.h:14:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_gem_object_put_unlocked':
   include/kcl/kcl_drm.h:357:9: error: implicit declaration of function 'drm_gem_object_unreference_unlocked'; did you mean 'drm_gem_object_put_unlocked'? [-Werror=implicit-function-declaration]
     return drm_gem_object_unreference_unlocked(obj);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            drm_gem_object_put_unlocked
   include/kcl/kcl_drm.h:357:9: warning: 'return' with a value, in function returning void
     return drm_gem_object_unreference_unlocked(obj);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h:354:20: note: declared here
    static inline void kcl_drm_gem_object_put_unlocked(struct drm_gem_object *obj)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: At top level:
   include/kcl/kcl_drm.h:471:34: error: redefinition of 'drm_debug_printer'
    static inline struct drm_printer drm_debug_printer(const char *prefix)
                                     ^~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_mm.h:49:0,
                    from include/drm/drm_vma_manager.h:26,
                    from include/kcl/kcl_drm_vma_manager.h:8,
                    from drivers/gpu/drm/ttm/backport/backport.h:5,
                    from <command-line>:0:
   include/drm/drm_print.h:219:34: note: previous definition of 'drm_debug_printer' was here
    static inline struct drm_printer drm_debug_printer(const char *prefix)
                                     ^~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:14:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:551:20: error: static declaration of 'drm_dev_put' follows non-static declaration
    static inline void drm_dev_put(struct drm_device *dev)
                       ^~~~~~~~~~~
   In file included from include/drm/drmP.h:74: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_drv.h:739:6: note: previous declaration of 'drm_dev_put' was here
    void drm_dev_put(struct drm_device *dev);
         ^~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:14:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'drm_dev_put':
   include/kcl/kcl_drm.h:553:9: error: implicit declaration of function 'drm_dev_unref'; did you mean 'drm_dev_enter'? [-Werror=implicit-function-declaration]
     return drm_dev_unref(dev);
            ^~~~~~~~~~~~~
            drm_dev_enter
   include/kcl/kcl_drm.h:553:9: warning: 'return' with a value, in function returning void
     return drm_dev_unref(dev);
            ^~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h:551:20: note: declared here
    static inline void drm_dev_put(struct drm_device *dev)
                       ^~~~~~~~~~~
   include/kcl/kcl_drm.h: At top level:
   include/kcl/kcl_drm.h:558:19: error: static declaration of 'drm_crtc_accurate_vblank_count' follows non-static declaration
    static inline u64 drm_crtc_accurate_vblank_count(struct drm_crtc *crtc)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drmP.h:82: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_vblank.h:218:5: note: previous declaration of 'drm_crtc_accurate_vblank_count' was here
    u64 drm_crtc_accurate_vblank_count(struct drm_crtc *crtc);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:14:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:595:20: error: static declaration of 'drm_mode_is_420_only' follows non-static declaration
    static inline bool drm_mode_is_420_only(const struct drm_display_info *display,
                       ^~~~~~~~~~~~~~~~~~~~
   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:473:6: note: previous declaration of 'drm_mode_is_420_only' was here
    bool drm_mode_is_420_only(const struct drm_display_info *display,
         ^~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:14:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:602:20: error: static declaration of 'drm_mode_is_420_also' follows non-static declaration
    static inline bool drm_mode_is_420_also(const struct drm_display_info *display,
                       ^~~~~~~~~~~~~~~~~~~~
   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:63: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:14,
                    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 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: At top level:
   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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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.h:10,
                    from include/kcl/kcl_drm_backport.h:14,
                    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
..

vim +/drm_encoder_init +63 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	#ifdef HAVE_DRM_FILE_H
     9	#include <drm/drm_file.h>
    10	#endif
    11	#if defined(HAVE_CHUNK_ID_SYNOBJ_IN_OUT)
    12	#include <drm/drm_syncobj.h>
    13	#endif
    14	#include <kcl/kcl_drm.h>
    15	
    16	#if defined(HAVE_DRM_EDID_TO_ELD)
    17	static inline
    18	int _kcl_drm_add_edid_modes(struct drm_connector *connector, struct edid *edid)
    19	{
    20		int ret;
    21	
    22		ret = drm_add_edid_modes(connector, edid);
    23	
    24		if (drm_edid_is_valid(edid))
    25			drm_edid_to_eld(connector, edid);
    26	
    27		return ret;
    28	}
    29	#define drm_add_edid_modes _kcl_drm_add_edid_modes
    30	#endif
    31	
    32	#ifdef BUILD_AS_DKMS
    33	#define drm_arch_can_wc_memory kcl_drm_arch_can_wc_memory
    34	#endif
    35	
    36	#if defined(HAVE_CHUNK_ID_SYNOBJ_IN_OUT)
    37	static inline
    38	int _kcl_drm_syncobj_find_fence(struct drm_file *file_private,
    39							u32 handle, u64 point, u64 flags,
    40							struct dma_fence **fence)
    41	{
    42	#if defined(HAVE_DRM_SYNCOBJ_FIND_FENCE)
    43	#if defined(HAVE_DRM_SYNCOBJ_FIND_FENCE_5ARGS)
    44		return drm_syncobj_find_fence(file_private, handle, point, flags, fence);
    45	#elif defined(HAVE_DRM_SYNCOBJ_FIND_FENCE_4ARGS)
    46		return drm_syncobj_find_fence(file_private, handle, point, fence);
    47	#else
    48		return drm_syncobj_find_fence(file_private, handle, fence);
    49	#endif
    50	#elif defined(HAVE_DRM_SYNCOBJ_FENCE_GET)
    51		return drm_syncobj_fence_get(file_private, handle, fence);
    52	#endif
    53	}
    54	#define drm_syncobj_find_fence _kcl_drm_syncobj_find_fence
    55	#endif
    56	
    57	#if !defined(HAVE_DRM_ENCODER_INIT_VALID_WITH_NAME)
    58	static inline int _kcl_drm_encoder_init(struct drm_device *dev,
    59			      struct drm_encoder *encoder,
    60			      const struct drm_encoder_funcs *funcs,
    61			      int encoder_type, const char *name, ...)
    62	{
  > 63		return drm_encoder_init(dev, encoder, funcs, encoder_type);

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


More information about the dri-devel mailing list