[radeon-alex:amd-mainline-dkms-5.2 2711/2834] include/kcl/kcl_drm_backport.h:96:28: error: incompatible type for argument 7 of 'drm_universal_plane_init'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

All errors (new ones prefixed by >>):

   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:531: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:533: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:533:9: warning: 'return' with a value, in function returning void
     return drm_dev_unref(dev);
            ^~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h:531: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:538: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:575: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:582: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 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:77: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:96: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:95: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 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
    void reservation_object_add_shared_fence(struct reservation_object *obj,
--
   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:531: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:533: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:533:9: warning: 'return' with a value, in function returning void
     return drm_dev_unref(dev);
            ^~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h:531: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:538: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:575: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:582: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 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:77: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:96: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:95: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 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
    void reservation_object_add_shared_fence(struct reservation_object *obj,
..

vim +/drm_universal_plane_init +96 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);
    64	}
    65	#define drm_encoder_init _kcl_drm_encoder_init
    66	#endif
    67	
    68	
    69	#if !defined(HAVE_DRM_CRTC_INIT_WITH_PLANES_VALID_WITH_NAME)
    70	static inline
    71	int _kcl_drm_crtc_init_with_planes(struct drm_device *dev, struct drm_crtc *crtc,
    72				      struct drm_plane *primary,
    73				      struct drm_plane *cursor,
    74				      const struct drm_crtc_funcs *funcs,
    75				      const char *name, ...)
    76	{
    77		return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs);
    78	}
    79	#define drm_crtc_init_with_planes _kcl_drm_crtc_init_with_planes
    80	#endif
    81	
    82	#ifndef HAVE_DRM_UNIVERSAL_PLANE_INIT_9ARGS
    83	static inline int _kcl_drm_universal_plane_init(struct drm_device *dev, struct drm_plane *plane,
    84				     unsigned long possible_crtcs,
    85				     const struct drm_plane_funcs *funcs,
    86				     const uint32_t *formats, unsigned int format_count,
    87				     const uint64_t *format_modifiers,
    88				     enum drm_plane_type type,
    89				     const char *name, ...)
    90	{
    91	#if defined(HAVE_DRM_UNIVERSAL_PLANE_INIT_8ARGS)
    92		return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
    93				 formats, format_count, type, name);
    94	#else
  > 95		return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
  > 96				 formats, format_count, type);

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

Attachment: .config.gz
Description: application/gzip

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

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux