[radeon-alex:amd-mainline-dkms-5.2 2712/2834] include/kcl/kcl_drm_backport.h:107:31: error: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type
kbuild test robot
lkp at intel.com
Sat Nov 9 15:32:50 UTC 2019
tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.2
head: a48b0cc1cdf3900e3e73801f9de64afbb70dc193
commit: a674fda13351b4ba1dc0dde80c87c606fa001af7 [2712/2834] drm/amdkcl: drop kcl_drm_gem_object_lookup
config: x86_64-randconfig-e004-201944 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout a674fda13351b4ba1dc0dde80c87c606fa001af7
# 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 error/warnings (new ones prefixed by >>):
include/kcl/kcl_drm.h:519: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:526: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:15:0,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/kcl/kcl_drm.h:563: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:15:0,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/kcl/kcl_drm.h:570: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:64: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:15,
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:78: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:97: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:96:9: error: too few arguments to function 'drm_universal_plane_init'
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_crtc.h:45:0,
from include/drm/drmP.h:68,
from include/kcl/kcl_drm_backport.h:4,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/drm/drm_plane.h:713:5: note: declared here
int drm_universal_plane_init(struct drm_device *dev,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
from <command-line>:0:
include/kcl/kcl_drm_backport.h: In function '_kcl_drm_gem_object_lookup':
>> include/kcl/kcl_drm_backport.h:107:31: error: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type [-Werror=incompatible-pointer-types]
return drm_gem_object_lookup(filp->minor->dev, filp, handle);
^~~~
In file included from include/kcl/kcl_drm_backport.h:8:0,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/drm/drm_gem.h:386:24: note: expected 'struct drm_file *' but argument is of type 'struct drm_device *'
struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
from <command-line>:0:
>> include/kcl/kcl_drm_backport.h:107:49: warning: passing argument 2 of 'drm_gem_object_lookup' makes integer from pointer without a cast [-Wint-conversion]
return drm_gem_object_lookup(filp->minor->dev, filp, handle);
^~~~
In file included from include/kcl/kcl_drm_backport.h:8:0,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/drm/drm_gem.h:386:24: note: expected 'u32 {aka unsigned int}' but argument is of type 'struct drm_file *'
struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
from <command-line>:0:
>> include/kcl/kcl_drm_backport.h:107:9: error: too many arguments to function 'drm_gem_object_lookup'
return drm_gem_object_lookup(filp->minor->dev, filp, handle);
^~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_drm_backport.h:8:0,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/drm/drm_gem.h:386:24: note: declared here
struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
^~~~~~~~~~~~~~~~~~~~~
In file included from 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_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:159:1: note: previous definition of 'reservation_object_lock' was here
reservation_object_lock(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:22:1: error: redefinition of 'reservation_object_unlock'
reservation_object_unlock(struct reservation_object *obj)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:215:1: note: previous definition of 'reservation_object_unlock' was here
reservation_object_unlock(struct reservation_object *obj)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:32:5: error: static declaration of 'reservation_object_copy_fences' follows non-static declaration
int reservation_object_copy_fences(struct reservation_object *dst,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:283:5: note: previous declaration of 'reservation_object_copy_fences' was here
int reservation_object_copy_fences(struct reservation_object *dst,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:41:1: error: redefinition of 'reservation_object_lock_interruptible'
reservation_object_lock_interruptible(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:181:1: note: previous definition of 'reservation_object_lock_interruptible' was here
reservation_object_lock_interruptible(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:50:1: error: redefinition of 'reservation_object_trylock'
reservation_object_trylock(struct reservation_object *obj)
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:203:1: note: previous definition of 'reservation_object_trylock' was here
reservation_object_trylock(struct reservation_object *obj)
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:60:6: error: static declaration of 'reservation_object_test_signaled_rcu' follows non-static declaration
bool reservation_object_test_signaled_rcu(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:290:6: note: previous declaration of 'reservation_object_test_signaled_rcu' was here
bool reservation_object_test_signaled_rcu(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:72:6: error: static declaration of 'reservation_object_add_shared_fence' follows non-static declaration
void reservation_object_add_shared_fence(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:272:6: note: previous declaration of 'reservation_object_add_shared_fence' was here
void reservation_object_add_shared_fence(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
include/kcl/kcl_drm.h:519: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:526: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:15:0,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/kcl/kcl_drm.h:563: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:15:0,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/kcl/kcl_drm.h:570: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:64: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:15,
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:78: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:97: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:96:9: error: too few arguments to function 'drm_universal_plane_init'
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_crtc.h:45:0,
from include/drm/drmP.h:68,
from include/kcl/kcl_drm_backport.h:4,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/drm/drm_plane.h:713:5: note: declared here
int drm_universal_plane_init(struct drm_device *dev,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
from <command-line>:0:
include/kcl/kcl_drm_backport.h: In function '_kcl_drm_gem_object_lookup':
>> include/kcl/kcl_drm_backport.h:107:31: error: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type [-Werror=incompatible-pointer-types]
return drm_gem_object_lookup(filp->minor->dev, filp, handle);
^~~~
In file included from include/kcl/kcl_drm_backport.h:8:0,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/drm/drm_gem.h:386:24: note: expected 'struct drm_file *' but argument is of type 'struct drm_device *'
struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
from <command-line>:0:
>> include/kcl/kcl_drm_backport.h:107:49: warning: passing argument 2 of 'drm_gem_object_lookup' makes integer from pointer without a cast [-Wint-conversion]
return drm_gem_object_lookup(filp->minor->dev, filp, handle);
^~~~
In file included from include/kcl/kcl_drm_backport.h:8:0,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/drm/drm_gem.h:386:24: note: expected 'u32 {aka unsigned int}' but argument is of type 'struct drm_file *'
struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
from <command-line>:0:
>> include/kcl/kcl_drm_backport.h:107:9: error: too many arguments to function 'drm_gem_object_lookup'
return drm_gem_object_lookup(filp->minor->dev, filp, handle);
^~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_drm_backport.h:8:0,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/drm/drm_gem.h:386:24: note: declared here
struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
^~~~~~~~~~~~~~~~~~~~~
In file included from 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_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:159:1: note: previous definition of 'reservation_object_lock' was here
reservation_object_lock(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:22:1: error: redefinition of 'reservation_object_unlock'
reservation_object_unlock(struct reservation_object *obj)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:215:1: note: previous definition of 'reservation_object_unlock' was here
reservation_object_unlock(struct reservation_object *obj)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:32:5: error: static declaration of 'reservation_object_copy_fences' follows non-static declaration
int reservation_object_copy_fences(struct reservation_object *dst,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:283:5: note: previous declaration of 'reservation_object_copy_fences' was here
int reservation_object_copy_fences(struct reservation_object *dst,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:41:1: error: redefinition of 'reservation_object_lock_interruptible'
reservation_object_lock_interruptible(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:181:1: note: previous definition of 'reservation_object_lock_interruptible' was here
reservation_object_lock_interruptible(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:50:1: error: redefinition of 'reservation_object_trylock'
reservation_object_trylock(struct reservation_object *obj)
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:203:1: note: previous definition of 'reservation_object_trylock' was here
reservation_object_trylock(struct reservation_object *obj)
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:60:6: error: static declaration of 'reservation_object_test_signaled_rcu' follows non-static declaration
bool reservation_object_test_signaled_rcu(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:290:6: note: previous declaration of 'reservation_object_test_signaled_rcu' was here
bool reservation_object_test_signaled_rcu(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/kcl/kcl_reservation_backport.h:5:0,
from drivers/gpu/drm/ttm/backport/backport.h:7,
from <command-line>:0:
include/kcl/kcl_reservation.h:72:6: error: static declaration of 'reservation_object_add_shared_fence' follows non-static declaration
void reservation_object_add_shared_fence(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/drm/drm_gem.h:38:0,
from include/kcl/kcl_drm_backport.h:8,
from drivers/gpu/drm/ttm/backport/backport.h:6,
from <command-line>:0:
include/linux/reservation.h:272:6: note: previous declaration of 'reservation_object_add_shared_fence' was here
void reservation_object_add_shared_fence(struct reservation_object *obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
..
vim +/drm_gem_object_lookup +107 include/kcl/kcl_drm_backport.h
3
> 4 #include <drm/drmP.h>
5 #include <drm/drm_edid.h>
6 #include <drm/drm_crtc.h>
7 #include <drm/drm_cache.h>
> 8 #include <drm/drm_gem.h>
9 #ifdef HAVE_DRM_FILE_H
10 #include <drm/drm_file.h>
11 #endif
12 #if defined(HAVE_CHUNK_ID_SYNOBJ_IN_OUT)
13 #include <drm/drm_syncobj.h>
14 #endif
15 #include <kcl/kcl_drm.h>
16
17 #if defined(HAVE_DRM_EDID_TO_ELD)
18 static inline
19 int _kcl_drm_add_edid_modes(struct drm_connector *connector, struct edid *edid)
20 {
21 int ret;
22
23 ret = drm_add_edid_modes(connector, edid);
24
25 if (drm_edid_is_valid(edid))
26 drm_edid_to_eld(connector, edid);
27
28 return ret;
29 }
30 #define drm_add_edid_modes _kcl_drm_add_edid_modes
31 #endif
32
33 #ifdef BUILD_AS_DKMS
34 #define drm_arch_can_wc_memory kcl_drm_arch_can_wc_memory
35 #endif
36
37 #if defined(HAVE_CHUNK_ID_SYNOBJ_IN_OUT)
38 static inline
39 int _kcl_drm_syncobj_find_fence(struct drm_file *file_private,
40 u32 handle, u64 point, u64 flags,
41 struct dma_fence **fence)
42 {
43 #if defined(HAVE_DRM_SYNCOBJ_FIND_FENCE)
44 #if defined(HAVE_DRM_SYNCOBJ_FIND_FENCE_5ARGS)
45 return drm_syncobj_find_fence(file_private, handle, point, flags, fence);
46 #elif defined(HAVE_DRM_SYNCOBJ_FIND_FENCE_4ARGS)
47 return drm_syncobj_find_fence(file_private, handle, point, fence);
48 #else
49 return drm_syncobj_find_fence(file_private, handle, fence);
50 #endif
51 #elif defined(HAVE_DRM_SYNCOBJ_FENCE_GET)
52 return drm_syncobj_fence_get(file_private, handle, fence);
53 #endif
54 }
55 #define drm_syncobj_find_fence _kcl_drm_syncobj_find_fence
56 #endif
57
58 #if !defined(HAVE_DRM_ENCODER_INIT_VALID_WITH_NAME)
59 static inline int _kcl_drm_encoder_init(struct drm_device *dev,
60 struct drm_encoder *encoder,
61 const struct drm_encoder_funcs *funcs,
62 int encoder_type, const char *name, ...)
63 {
64 return drm_encoder_init(dev, encoder, funcs, encoder_type);
65 }
66 #define drm_encoder_init _kcl_drm_encoder_init
67 #endif
68
69
70 #if !defined(HAVE_DRM_CRTC_INIT_WITH_PLANES_VALID_WITH_NAME)
71 static inline
72 int _kcl_drm_crtc_init_with_planes(struct drm_device *dev, struct drm_crtc *crtc,
73 struct drm_plane *primary,
74 struct drm_plane *cursor,
75 const struct drm_crtc_funcs *funcs,
76 const char *name, ...)
77 {
78 return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs);
79 }
80 #define drm_crtc_init_with_planes _kcl_drm_crtc_init_with_planes
81 #endif
82
83 #ifndef HAVE_DRM_UNIVERSAL_PLANE_INIT_9ARGS
84 static inline int _kcl_drm_universal_plane_init(struct drm_device *dev, struct drm_plane *plane,
85 unsigned long possible_crtcs,
86 const struct drm_plane_funcs *funcs,
87 const uint32_t *formats, unsigned int format_count,
88 const uint64_t *format_modifiers,
89 enum drm_plane_type type,
90 const char *name, ...)
91 {
92 #if defined(HAVE_DRM_UNIVERSAL_PLANE_INIT_8ARGS)
93 return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
94 formats, format_count, type, name);
95 #else
96 return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
97 formats, format_count, type);
98 #endif
99 }
100 #define drm_universal_plane_init _kcl_drm_universal_plane_init
101 #endif
102
103 #ifndef HAVE_DRM_GEM_OBJECT_LOOKUP_2ARGS
104 static inline struct drm_gem_object *
105 _kcl_drm_gem_object_lookup(struct drm_file *filp, u32 handle)
106 {
> 107 return drm_gem_object_lookup(filp->minor->dev, filp, handle);
---
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/d1f1c870/attachment-0001.gz>
More information about the dri-devel
mailing list