[radeon-alex:amd-mainline-dkms-5.2 2700/2834] include/kcl/kcl_drm.h:221:6: error: redefinition of 'drm_fb_helper_set_suspend_unlocked'

kbuild test robot lkp at intel.com
Sat Nov 9 11:09:46 UTC 2019


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.2
head:   a48b0cc1cdf3900e3e73801f9de64afbb70dc193
commit: fa3a28572dee89436a969d4c9b15b7f3d65102b4 [2700/2834] drm/amdkcl: drop kcl_drm_fb_helper_set_suspend_unlocked
config: x86_64-randconfig-e001-201944 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
        git checkout fa3a28572dee89436a969d4c9b15b7f3d65102b4
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:158:1: error: redefinition of 'drm_fb_helper_remove_conflicting_pci_framebuffers'
    drm_fb_helper_remove_conflicting_pci_framebuffers(struct pci_dev *pdev,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:612:1: note: previous definition of 'drm_fb_helper_remove_conflicting_pci_framebuffers' was here
    drm_fb_helper_remove_conflicting_pci_framebuffers(struct pci_dev *pdev,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:179:6: error: redefinition of 'drm_fb_helper_cfb_fillrect'
    void drm_fb_helper_cfb_fillrect(struct fb_info *info,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:457:20: note: previous definition of 'drm_fb_helper_cfb_fillrect' was here
    static inline void drm_fb_helper_cfb_fillrect(struct fb_info *info,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:186:6: error: redefinition of 'drm_fb_helper_cfb_copyarea'
    void drm_fb_helper_cfb_copyarea(struct fb_info *info,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:462:20: note: previous definition of 'drm_fb_helper_cfb_copyarea' was here
    static inline void drm_fb_helper_cfb_copyarea(struct fb_info *info,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:193:6: error: redefinition of 'drm_fb_helper_cfb_imageblit'
    void drm_fb_helper_cfb_imageblit(struct fb_info *info,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:467:20: note: previous definition of 'drm_fb_helper_cfb_imageblit' was here
    static inline void drm_fb_helper_cfb_imageblit(struct fb_info *info,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:205:17: error: redefinition of 'drm_fb_helper_alloc_fbi'
    struct fb_info *drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper)
                    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:386:1: note: previous definition of 'drm_fb_helper_alloc_fbi' was here
    drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper)
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:212:6: error: redefinition of 'drm_fb_helper_unregister_fbi'
    void drm_fb_helper_unregister_fbi(struct drm_fb_helper *fb_helper)
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:391:20: note: previous definition of 'drm_fb_helper_unregister_fbi' was here
    static inline void drm_fb_helper_unregister_fbi(struct drm_fb_helper *fb_helper)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
>> include/kcl/kcl_drm.h:221:6: error: redefinition of 'drm_fb_helper_set_suspend_unlocked'
    void drm_fb_helper_set_suspend_unlocked(struct drm_fb_helper *fb_helper,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:478:1: note: previous definition of 'drm_fb_helper_set_suspend_unlocked' was here
    drm_fb_helper_set_suspend_unlocked(struct drm_fb_helper *fb_helper, bool suspend)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'drm_fb_helper_set_suspend_unlocked':
   include/kcl/kcl_drm.h:225:53: error: 'state' undeclared (first use in this function); did you mean 'statx'?
     _kcl_drm_fb_helper_set_suspend_unlocked(fb_helper, state);
                                                        ^~~~~
                                                        statx
   include/kcl/kcl_drm.h:225:53: note: each undeclared identifier is reported only once for each function it appears in
   include/kcl/kcl_drm.h: In function 'kcl_drm_encoder_init':
   include/kcl/kcl_drm.h:306:9: error: too few arguments to function 'drm_encoder_init'
     return drm_encoder_init(dev, encoder, funcs,
            ^~~~~~~~~~~~~~~~
   In file included from include/drm/drm_modeset_helper_vtables.h:33:0,
                    from include/drm/drm_atomic_helper.h:32,
                    from include/kcl/kcl_drm.h:11,
                    from include/kcl/kcl_drm_backport.h:5,
                    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_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_crtc_init_with_planes':
   include/kcl/kcl_drm.h:321:10: error: too few arguments to function 'drm_crtc_init_with_planes'
      return drm_crtc_init_with_planes(dev, crtc, primary,
             ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drmP.h:68:0,
                    from include/kcl/kcl_drm.h:6,
                    from include/kcl/kcl_drm_backport.h:5,
                    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 include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_universal_plane_init':
   include/kcl/kcl_drm.h:342:29: error: incompatible type for argument 7 of 'drm_universal_plane_init'
         formats, format_count, type);
                                ^~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:68,
                    from include/kcl/kcl_drm.h:6,
                    from include/kcl/kcl_drm_backport.h:5,
                    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 include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:341:10: error: too few arguments to function 'drm_universal_plane_init'
      return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
             ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:68,
                    from include/kcl/kcl_drm.h:6,
                    from include/kcl/kcl_drm_backport.h:5,
                    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_drm_backport.h:5: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_lookup':
   include/kcl/kcl_drm.h:353:32: error: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type [-Werror=incompatible-pointer-types]
      return drm_gem_object_lookup(dev, filp, handle);
                                   ^~~
   In file included from include/kcl/kcl_drm.h:10:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    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 include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:353:37: warning: passing argument 2 of 'drm_gem_object_lookup' makes integer from pointer without a cast [-Wint-conversion]
      return drm_gem_object_lookup(dev, filp, handle);
                                        ^~~~
   In file included from include/kcl/kcl_drm.h:10:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
--
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:158:1: error: redefinition of 'drm_fb_helper_remove_conflicting_pci_framebuffers'
    drm_fb_helper_remove_conflicting_pci_framebuffers(struct pci_dev *pdev,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:612:1: note: previous definition of 'drm_fb_helper_remove_conflicting_pci_framebuffers' was here
    drm_fb_helper_remove_conflicting_pci_framebuffers(struct pci_dev *pdev,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:179:6: error: redefinition of 'drm_fb_helper_cfb_fillrect'
    void drm_fb_helper_cfb_fillrect(struct fb_info *info,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:457:20: note: previous definition of 'drm_fb_helper_cfb_fillrect' was here
    static inline void drm_fb_helper_cfb_fillrect(struct fb_info *info,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:186:6: error: redefinition of 'drm_fb_helper_cfb_copyarea'
    void drm_fb_helper_cfb_copyarea(struct fb_info *info,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:462:20: note: previous definition of 'drm_fb_helper_cfb_copyarea' was here
    static inline void drm_fb_helper_cfb_copyarea(struct fb_info *info,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:193:6: error: redefinition of 'drm_fb_helper_cfb_imageblit'
    void drm_fb_helper_cfb_imageblit(struct fb_info *info,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:467:20: note: previous definition of 'drm_fb_helper_cfb_imageblit' was here
    static inline void drm_fb_helper_cfb_imageblit(struct fb_info *info,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:205:17: error: redefinition of 'drm_fb_helper_alloc_fbi'
    struct fb_info *drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper)
                    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:386:1: note: previous definition of 'drm_fb_helper_alloc_fbi' was here
    drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper)
    ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:212:6: error: redefinition of 'drm_fb_helper_unregister_fbi'
    void drm_fb_helper_unregister_fbi(struct drm_fb_helper *fb_helper)
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:391:20: note: previous definition of 'drm_fb_helper_unregister_fbi' was here
    static inline void drm_fb_helper_unregister_fbi(struct drm_fb_helper *fb_helper)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
>> include/kcl/kcl_drm.h:221:6: error: redefinition of 'drm_fb_helper_set_suspend_unlocked'
    void drm_fb_helper_set_suspend_unlocked(struct drm_fb_helper *fb_helper,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:478:1: note: previous definition of 'drm_fb_helper_set_suspend_unlocked' was here
    drm_fb_helper_set_suspend_unlocked(struct drm_fb_helper *fb_helper, bool suspend)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'drm_fb_helper_set_suspend_unlocked':
   include/kcl/kcl_drm.h:225:53: error: 'state' undeclared (first use in this function); did you mean 'statx'?
     _kcl_drm_fb_helper_set_suspend_unlocked(fb_helper, state);
                                                        ^~~~~
                                                        statx
   include/kcl/kcl_drm.h:225:53: note: each undeclared identifier is reported only once for each function it appears in
   include/kcl/kcl_drm.h: In function 'kcl_drm_encoder_init':
   include/kcl/kcl_drm.h:306:9: error: too few arguments to function 'drm_encoder_init'
     return drm_encoder_init(dev, encoder, funcs,
            ^~~~~~~~~~~~~~~~
   In file included from include/drm/drm_modeset_helper_vtables.h:33:0,
                    from include/drm/drm_atomic_helper.h:32,
                    from include/kcl/kcl_drm.h:11,
                    from include/kcl/kcl_drm_backport.h:5,
                    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_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_crtc_init_with_planes':
   include/kcl/kcl_drm.h:321:10: error: too few arguments to function 'drm_crtc_init_with_planes'
      return drm_crtc_init_with_planes(dev, crtc, primary,
             ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drmP.h:68:0,
                    from include/kcl/kcl_drm.h:6,
                    from include/kcl/kcl_drm_backport.h:5,
                    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 include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_universal_plane_init':
   include/kcl/kcl_drm.h:342:29: error: incompatible type for argument 7 of 'drm_universal_plane_init'
         formats, format_count, type);
                                ^~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:68,
                    from include/kcl/kcl_drm.h:6,
                    from include/kcl/kcl_drm_backport.h:5,
                    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 include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:341:10: error: too few arguments to function 'drm_universal_plane_init'
      return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
             ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:68,
                    from include/kcl/kcl_drm.h:6,
                    from include/kcl/kcl_drm_backport.h:5,
                    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_drm_backport.h:5: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_lookup':
   include/kcl/kcl_drm.h:353:32: error: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type [-Werror=incompatible-pointer-types]
      return drm_gem_object_lookup(dev, filp, handle);
                                   ^~~
   In file included from include/kcl/kcl_drm.h:10:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    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 include/kcl/kcl_drm_backport.h:5:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:353:37: warning: passing argument 2 of 'drm_gem_object_lookup' makes integer from pointer without a cast [-Wint-conversion]
      return drm_gem_object_lookup(dev, filp, handle);
                                        ^~~~
   In file included from include/kcl/kcl_drm.h:10:0,
                    from include/kcl/kcl_drm_backport.h:5,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
..

vim +/drm_fb_helper_set_suspend_unlocked +221 include/kcl/kcl_drm.h

   217	
   218	#ifndef HAVE_DRM_FB_HELPER_SET_SUSPEND_UNLOCKED
   219	extern void _kcl_drm_fb_helper_set_suspend_unlocked(struct drm_fb_helper *fb_helper, int state);
   220	static inline
 > 221	void drm_fb_helper_set_suspend_unlocked(struct drm_fb_helper *fb_helper,
   222						bool suspend)
   223	

---
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: 28823 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20191109/507a26e1/attachment-0001.gz>


More information about the dri-devel mailing list