[radeon-alex:amd-mainline-dkms-5.4 1255/2653] include/kcl/kcl_drm.h:316:34: error: redefinition of 'drm_debug_printer'

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

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.4
head:   fa14e19bd78eecca201da26d22c7b95ee06769c6
commit: 60d460b38720127b001c75908d8d83d6f2cccd50 [1255/2653] drm/amdkcl: Test whether drm_{mm_print/debug_printer} is available
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
        git checkout 60d460b38720127b001c75908d8d83d6f2cccd50
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

   In file included from include/kcl/kcl_drm_backport.h:13:0,
                    from drivers/gpu/drm/scheduler/backport/backport.h:5,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'drm_gem_object_put_unlocked':
   include/kcl/kcl_drm.h:181: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:181:9: warning: 'return' with a value, in function returning void
     return drm_gem_object_unreference_unlocked(obj);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h:179:1: note: declared here
    drm_gem_object_put_unlocked(struct drm_gem_object *obj)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: At top level:
   include/kcl/kcl_drm.h:195:1: error: static declaration of '__drm_atomic_helper_connector_reset' follows non-static declaration
    __drm_atomic_helper_connector_reset(struct drm_connector *connector,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_atomic_helper.h:34:0,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/scheduler/backport/backport.h:5,
                    from <command-line>:0:
   include/drm/drm_atomic_state_helper.h:62:6: note: previous declaration of '__drm_atomic_helper_connector_reset' was here
    void __drm_atomic_helper_connector_reset(struct drm_connector *connector,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:13:0,
                    from drivers/gpu/drm/scheduler/backport/backport.h:5,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_old_crtc_state_before_commit':
   include/kcl/kcl_drm.h:243:14: error: dereferencing pointer to incomplete type 'struct drm_atomic_state'
     return state->crtcs[drm_crtc_index(crtc)]->state;
                 ^~
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_old_crtc_state_after_commit':
   include/kcl/kcl_drm.h:254:9: error: implicit declaration of function 'drm_atomic_get_existing_crtc_state'; did you mean 'drm_atomic_helper_duplicate_state'? [-Werror=implicit-function-declaration]
     return drm_atomic_get_existing_crtc_state(state, crtc);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            drm_atomic_helper_duplicate_state
   include/kcl/kcl_drm.h:254:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return drm_atomic_get_existing_crtc_state(state, crtc);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_new_crtc_state_before_commit':
   include/kcl/kcl_drm.h:265:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return drm_atomic_get_existing_crtc_state(state, crtc);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_new_plane_state_before_commit':
   include/kcl/kcl_drm.h:289:9: error: implicit declaration of function 'drm_atomic_get_existing_plane_state'; did you mean 'drm_atomic_helper_check_plane_state'? [-Werror=implicit-function-declaration]
     return drm_atomic_get_existing_plane_state(state, plane);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            drm_atomic_helper_check_plane_state
   include/kcl/kcl_drm.h:289:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return drm_atomic_get_existing_plane_state(state, plane);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: At top level:
>> include/kcl/kcl_drm.h:316:34: error: redefinition of 'drm_debug_printer'
    static inline struct drm_printer drm_debug_printer(const char *prefix)
                                     ^~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:13,
                    from drivers/gpu/drm/scheduler/backport/backport.h:5,
                    from <command-line>:0:
   include/drm/drm_print.h:226: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 drivers/gpu/drm/scheduler/backport/backport.h:5: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:58: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/drm_atomic_helper.h:31:0,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/scheduler/backport/backport.h:5,
                    from <command-line>:0:
   include/drm/drm_crtc.h:1143:5: note: declared here
    int drm_crtc_init_with_planes(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/scheduler/backport/backport.h:5:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h: In function '_kcl_drm_universal_plane_init':
   include/kcl/kcl_drm_backport.h:77: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/drm_atomic_helper.h:31,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/scheduler/backport/backport.h:5,
                    from <command-line>:0:
   include/drm/drm_plane.h:732: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/scheduler/backport/backport.h:5:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h:76: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/drm_atomic_helper.h:31,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/scheduler/backport/backport.h:5,
                    from <command-line>:0:
   include/drm/drm_plane.h:732:5: note: declared here
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/kcl/kcl_drm_backport.h:13:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'drm_gem_object_put_unlocked':
   include/kcl/kcl_drm.h:181: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:181:9: warning: 'return' with a value, in function returning void
     return drm_gem_object_unreference_unlocked(obj);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h:179:1: note: declared here
    drm_gem_object_put_unlocked(struct drm_gem_object *obj)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: At top level:
   include/kcl/kcl_drm.h:195:1: error: static declaration of '__drm_atomic_helper_connector_reset' follows non-static declaration
    __drm_atomic_helper_connector_reset(struct drm_connector *connector,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_atomic_helper.h:34:0,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/drm/drm_atomic_state_helper.h:62:6: note: previous declaration of '__drm_atomic_helper_connector_reset' was here
    void __drm_atomic_helper_connector_reset(struct drm_connector *connector,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:13:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_old_crtc_state_before_commit':
   include/kcl/kcl_drm.h:243:14: error: dereferencing pointer to incomplete type 'struct drm_atomic_state'
     return state->crtcs[drm_crtc_index(crtc)]->state;
                 ^~
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_old_crtc_state_after_commit':
   include/kcl/kcl_drm.h:254:9: error: implicit declaration of function 'drm_atomic_get_existing_crtc_state'; did you mean 'drm_atomic_helper_duplicate_state'? [-Werror=implicit-function-declaration]
     return drm_atomic_get_existing_crtc_state(state, crtc);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            drm_atomic_helper_duplicate_state
   include/kcl/kcl_drm.h:254:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return drm_atomic_get_existing_crtc_state(state, crtc);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_new_crtc_state_before_commit':
   include/kcl/kcl_drm.h:265:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return drm_atomic_get_existing_crtc_state(state, crtc);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_new_plane_state_before_commit':
   include/kcl/kcl_drm.h:289:9: error: implicit declaration of function 'drm_atomic_get_existing_plane_state'; did you mean 'drm_atomic_helper_check_plane_state'? [-Werror=implicit-function-declaration]
     return drm_atomic_get_existing_plane_state(state, plane);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            drm_atomic_helper_check_plane_state
   include/kcl/kcl_drm.h:289:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return drm_atomic_get_existing_plane_state(state, plane);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: At top level:
>> include/kcl/kcl_drm.h:316: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:226: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 drivers/gpu/drm/ttm/backport/backport.h:7: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:58: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/drm_atomic_helper.h:31:0,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/drm/drm_crtc.h:1143: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:7:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h: In function '_kcl_drm_universal_plane_init':
   include/kcl/kcl_drm_backport.h:77: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/drm_atomic_helper.h:31,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/drm/drm_plane.h:732: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:7:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h:76: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/drm_atomic_helper.h:31,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/drm/drm_plane.h:732:5: note: declared here
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/ttm/ttm_memory.c: At top level:
   drivers/gpu/drm/ttm/ttm_memory.c:29:0: warning: "pr_fmt" redefined
    #define pr_fmt(fmt) "[TTM] " fmt
    
   In file included from include/linux/kernel.h:15:0,
                    from include/asm-generic/bug.h:19,
                    from arch/x86/include/asm/bug.h:83,
                    from include/linux/bug.h:5,
                    from include/drm/drm_mm.h:40,
                    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/linux/printk.h:288:0: note: this is the location of the previous definition
    #define pr_fmt(fmt) fmt
    
   cc1: some warnings being treated as errors
--
   In file included from include/kcl/kcl_drm_backport.h:13:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'drm_gem_object_put_unlocked':
   include/kcl/kcl_drm.h:181: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:181:9: warning: 'return' with a value, in function returning void
     return drm_gem_object_unreference_unlocked(obj);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h:179:1: note: declared here
    drm_gem_object_put_unlocked(struct drm_gem_object *obj)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: At top level:
   include/kcl/kcl_drm.h:195:1: error: static declaration of '__drm_atomic_helper_connector_reset' follows non-static declaration
    __drm_atomic_helper_connector_reset(struct drm_connector *connector,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_atomic_helper.h:34:0,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/drm/drm_atomic_state_helper.h:62:6: note: previous declaration of '__drm_atomic_helper_connector_reset' was here
    void __drm_atomic_helper_connector_reset(struct drm_connector *connector,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:13:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_old_crtc_state_before_commit':
   include/kcl/kcl_drm.h:243:14: error: dereferencing pointer to incomplete type 'struct drm_atomic_state'
     return state->crtcs[drm_crtc_index(crtc)]->state;
                 ^~
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_old_crtc_state_after_commit':
   include/kcl/kcl_drm.h:254:9: error: implicit declaration of function 'drm_atomic_get_existing_crtc_state'; did you mean 'drm_atomic_helper_duplicate_state'? [-Werror=implicit-function-declaration]
     return drm_atomic_get_existing_crtc_state(state, crtc);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            drm_atomic_helper_duplicate_state
   include/kcl/kcl_drm.h:254:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return drm_atomic_get_existing_crtc_state(state, crtc);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_new_crtc_state_before_commit':
   include/kcl/kcl_drm.h:265:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return drm_atomic_get_existing_crtc_state(state, crtc);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: In function 'kcl_drm_atomic_get_new_plane_state_before_commit':
   include/kcl/kcl_drm.h:289:9: error: implicit declaration of function 'drm_atomic_get_existing_plane_state'; did you mean 'drm_atomic_helper_check_plane_state'? [-Werror=implicit-function-declaration]
     return drm_atomic_get_existing_plane_state(state, plane);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            drm_atomic_helper_check_plane_state
   include/kcl/kcl_drm.h:289:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return drm_atomic_get_existing_plane_state(state, plane);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kcl/kcl_drm.h: At top level:
>> include/kcl/kcl_drm.h:316: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:226: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 drivers/gpu/drm/ttm/backport/backport.h:7: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:58: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/drm_atomic_helper.h:31:0,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/drm/drm_crtc.h:1143: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:7:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h: In function '_kcl_drm_universal_plane_init':
   include/kcl/kcl_drm_backport.h:77: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/drm_atomic_helper.h:31,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/drm/drm_plane.h:732: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:7:0,
                    from <command-line>:0:
   include/kcl/kcl_drm_backport.h:76: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/drm_atomic_helper.h:31,
                    from include/kcl/kcl_drm_backport.h:4,
                    from drivers/gpu/drm/ttm/backport/backport.h:7,
                    from <command-line>:0:
   include/drm/drm_plane.h:732:5: note: declared here
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/ttm/ttm_tt.c: At top level:
   drivers/gpu/drm/ttm/ttm_tt.c:32:0: warning: "pr_fmt" redefined
    #define pr_fmt(fmt) "[TTM] " fmt
    
   In file included from include/linux/kernel.h:15:0,
                    from include/asm-generic/bug.h:19,
                    from arch/x86/include/asm/bug.h:83,
                    from include/linux/bug.h:5,
                    from include/drm/drm_mm.h:40,
                    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/linux/printk.h:288:0: note: this is the location of the previous definition
    #define pr_fmt(fmt) fmt
    
   cc1: some warnings being treated as errors
..

vim +/drm_debug_printer +316 include/kcl/kcl_drm.h

   281	
   282	static inline struct drm_plane_state *
   283	kcl_drm_atomic_get_new_plane_state_before_commit(struct drm_atomic_state *state,
   284								struct drm_plane *plane)
   285	{
   286	#if defined(HAVE_DRM_ATOMIC_GET_NEW_PLANE_STATE)
   287		return drm_atomic_get_new_plane_state(state, plane);
   288	#else
 > 289		return drm_atomic_get_existing_plane_state(state, plane);
   290	#endif
   291	}
   292	
   293	#ifndef HAVE_DRM_FB_HELPER_FILL_INFO
   294	void drm_fb_helper_fill_info(struct fb_info *info,
   295				     struct drm_fb_helper *fb_helper,
   296				     struct drm_fb_helper_surface_size *sizes);
   297	#endif
   298	
   299	#ifndef HAVE_DRM_DEV_PUT
   300	static inline void drm_dev_put(struct drm_device *dev)
   301	{
   302		return drm_dev_unref(dev);
   303	}
   304	#endif
   305	
   306	/**
   307	 * drm_debug_printer - construct a &drm_printer that outputs to pr_debug()
   308	 * @prefix: debug output prefix
   309	 *
   310	 * RETURNS:
   311	 * The &drm_printer object
   312	 */
   313	#if !defined(HAVE_DRM_DEBUG_PRINTER)
   314	extern void __drm_printfn_debug(struct drm_printer *p, struct va_format *vaf);
   315	
 > 316	static inline struct drm_printer drm_debug_printer(const char *prefix)
   317	{
   318		struct drm_printer p = {
   319			.printfn = __drm_printfn_debug,
   320	#if !defined(HAVE_DRM_PRINTER)
   321			.prefix = prefix
   322	#endif
   323		};
   324		return p;
   325	}
   326	#endif
   327	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

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