SHARE
TWEET

make.log

nethershaw Apr 21st, 2018 3 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DKMS make.log for amdgpu-17.40-492261 for kernel 4.16.3-gentoo (x86_64)
  2. Sat Apr 21 21:30:19 EDT 2018
  3. make: Entering directory '/usr/src/linux-4.16.3-gentoo'
  4.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_module.o
  5.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o
  6.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o
  7.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_device.o
  8.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/main.o
  9.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o
  10.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_device.o
  11.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_chardev.o
  12.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_topology.o
  13. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/backport/backport.h:6:0,
  14.                  from <command-line>:0:
  15. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_pci.h:7:5: error: conflicting types for ‘pci_enable_atomic_ops_to_root’
  16.  int pci_enable_atomic_ops_to_root(struct pci_dev *dev);
  17.      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_pci.h:4:0,
  19.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/backport/backport.h:6,
  20.                  from <command-line>:0:
  21. ./include/linux/pci.h:2056:5: note: previous declaration of ‘pci_enable_atomic_ops_to_root’ was here
  22.  int pci_enable_atomic_ops_to_root(struct pci_dev *dev, u32 cap_mask);
  23.      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/backport/backport.h:6:0,
  25.                  from <command-line>:0:
  26. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_pci.h:7:5: error: conflicting types for ‘pci_enable_atomic_ops_to_root’
  27.  int pci_enable_atomic_ops_to_root(struct pci_dev *dev);
  28.      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  29. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_pci.h:4:0,
  30.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/backport/backport.h:6,
  31.                  from <command-line>:0:
  32. ./include/linux/pci.h:2056:5: note: previous declaration of ‘pci_enable_atomic_ops_to_root’ was here
  33.  int pci_enable_atomic_ops_to_root(struct pci_dev *dev, u32 cap_mask);
  34.      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/backport/backport.h:6:0,
  36.                  from <command-line>:0:
  37. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_pci.h:7:5: error: conflicting types for ‘pci_enable_atomic_ops_to_root’
  38.  int pci_enable_atomic_ops_to_root(struct pci_dev *dev);
  39.      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  40. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_pci.h:4:0,
  41.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/backport/backport.h:6,
  42.                  from <command-line>:0:
  43. ./include/linux/pci.h:2056:5: note: previous declaration of ‘pci_enable_atomic_ops_to_root’ was here
  44.  int pci_enable_atomic_ops_to_root(struct pci_dev *dev, u32 cap_mask);
  45.      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_module.o] Error 1
  47. make[2]: *** Waiting for unfinished jobs....
  48.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/symbols.o
  49. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_device.o] Error 1
  50.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_fence.o
  51. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  52.                  from <command-line>:0:
  53. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’:
  54. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
  55.       formats, format_count, type, name);
  56.                              ^~~~
  57. In file included from ./include/drm/drm_crtc.h:45:0,
  58.                  from ./include/drm/drmP.h:69,
  59.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  60.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  61.                  from <command-line>:0:
  62. ./include/drm/drm_plane.h:566:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’
  63.  int drm_universal_plane_init(struct drm_device *dev,
  64.      ^~~~~~~~~~~~~~~~~~~~~~~~
  65. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  66.                  from <command-line>:0:
  67. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
  68.       formats, format_count, type, name);
  69.                                    ^~~~
  70. In file included from ./include/drm/drm_crtc.h:45:0,
  71.                  from ./include/drm/drmP.h:69,
  72.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  73.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  74.                  from <command-line>:0:
  75. ./include/drm/drm_plane.h:566:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *
  76.  int drm_universal_plane_init(struct drm_device *dev,
  77.      ^~~~~~~~~~~~~~~~~~~~~~~~
  78. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  79.                  from <command-line>:0:
  80. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
  81.    return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
  82.           ^~~~~~~~~~~~~~~~~~~~~~~~
  83. In file included from ./include/drm/drm_crtc.h:45:0,
  84.                  from ./include/drm/drmP.h:69,
  85.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  86.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  87.                  from <command-line>:0:
  88. ./include/drm/drm_plane.h:566:5: note: declared here
  89.  int drm_universal_plane_init(struct drm_device *dev,
  90.      ^~~~~~~~~~~~~~~~~~~~~~~~
  91. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0:
  92. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’:
  93. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  94.                  from <command-line>:0:
  95. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’:
  96. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  97.                  from <command-line>:0:
  98. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’:
  99. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  100.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  101.                                                                      ^~~~~~~~~~~
  102. In file included from ./include/drm/drmP.h:84:0,
  103.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  104.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  105.                  from <command-line>:0:
  106. ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *
  107.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  108.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  109. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
  110.       formats, format_count, type, name);
  111.                              ^~~~
  112. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
  113.       formats, format_count, type, name);
  114.                              ^~~~
  115. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  116.                  from <command-line>:0:
  117. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’
  118.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  119.          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  120. In file included from ./include/drm/drmP.h:84:0,
  121.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  122.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  123.                  from <command-line>:0:
  124. ./include/drm/drm_vblank.h:184:6: note: declared here
  125.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  126.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  127. In file included from ./include/drm/drm_crtc.h:45:0,
  128.                  from ./include/drm/drmP.h:69,
  129.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  130.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:
  131. ./include/drm/drm_plane.h:566:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’
  132.  int drm_universal_plane_init(struct drm_device *dev,
  133.      ^~~~~~~~~~~~~~~~~~~~~~~~
  134. In file included from ./include/drm/drm_crtc.h:45:0,
  135.                  from ./include/drm/drmP.h:69,
  136.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  137.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  138.                  from <command-line>:0:
  139. ./include/drm/drm_plane.h:566:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’
  140.  int drm_universal_plane_init(struct drm_device *dev,
  141.      ^~~~~~~~~~~~~~~~~~~~~~~~
  142. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0:
  143. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
  144.       formats, format_count, type, name);
  145.                                    ^~~~
  146. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  147.                  from <command-line>:0:
  148. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
  149.       formats, format_count, type, name);
  150.                                    ^~~~
  151. In file included from ./include/drm/drm_crtc.h:45:0,
  152.                  from ./include/drm/drmP.h:69,
  153.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  154.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:
  155. ./include/drm/drm_plane.h:566:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *
  156.  int drm_universal_plane_init(struct drm_device *dev,
  157.      ^~~~~~~~~~~~~~~~~~~~~~~~
  158. In file included from ./include/drm/drm_crtc.h:45:0,
  159.                  from ./include/drm/drmP.h:69,
  160.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  161.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  162.                  from <command-line>:0:
  163. ./include/drm/drm_plane.h:566:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *
  164.  int drm_universal_plane_init(struct drm_device *dev,
  165.      ^~~~~~~~~~~~~~~~~~~~~~~~
  166. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0:
  167. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
  168.    return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
  169.           ^~~~~~~~~~~~~~~~~~~~~~~~
  170. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  171.                  from <command-line>:0:
  172. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
  173.    return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
  174.           ^~~~~~~~~~~~~~~~~~~~~~~~
  175. In file included from ./include/drm/drm_crtc.h:45:0,
  176.                  from ./include/drm/drmP.h:69,
  177.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  178.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:
  179. ./include/drm/drm_plane.h:566:5: note: declared here
  180.  int drm_universal_plane_init(struct drm_device *dev,
  181.      ^~~~~~~~~~~~~~~~~~~~~~~~
  182. In file included from ./include/drm/drm_crtc.h:45:0,
  183.                  from ./include/drm/drmP.h:69,
  184.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  185.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  186.                  from <command-line>:0:
  187. ./include/drm/drm_plane.h:566:5: note: declared here
  188.  int drm_universal_plane_init(struct drm_device *dev,
  189.      ^~~~~~~~~~~~~~~~~~~~~~~~
  190. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0:
  191. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’:
  192. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  193.                  from <command-line>:0:
  194. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’:
  195. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  196.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  197.                                                                      ^~~~~~~~~~~
  198. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  199.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  200.                                                                      ^~~~~~~~~~~
  201. In file included from ./include/drm/drmP.h:84:0,
  202.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  203.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:
  204. ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *
  205.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  206.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  207. In file included from ./include/drm/drmP.h:84:0,
  208.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  209.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  210.                  from <command-line>:0:
  211. ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *
  212.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  213.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  214. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0:
  215. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’
  216.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  217.          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  218. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  219.                  from <command-line>:0:
  220. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’
  221.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  222.          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  223. In file included from ./include/drm/drmP.h:84:0,
  224.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  225.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:
  226. ./include/drm/drm_vblank.h:184:6: note: declared here
  227.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  228.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  229. In file included from ./include/drm/drmP.h:84:0,
  230.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  231.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  232.                  from <command-line>:0:
  233. ./include/drm/drm_vblank.h:184:6: note: declared here
  234.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  235.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  236. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
  237.                  from <command-line>:0:
  238. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’:
  239. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
  240.       formats, format_count, type, name);
  241.                              ^~~~
  242. In file included from ./include/drm/drm_crtc.h:45:0,
  243.                  from ./include/drm/drmP.h:69,
  244.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  245.                  from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
  246.                  from <command-line>:0:
  247. ./include/drm/drm_plane.h:566:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’
  248.  int drm_universal_plane_init(struct drm_device *dev,
  249.      ^~~~~~~~~~~~~~~~~~~~~~~~
  250. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
  251.                  from <command-line>:0:
  252. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
  253.       formats, format_count, type, name);
  254.                                    ^~~~
  255. In file included from ./include/drm/drm_crtc.h:45:0,
  256.                  from ./include/drm/drmP.h:69,
  257.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  258.                  from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
  259.                  from <command-line>:0:
  260. ./include/drm/drm_plane.h:566:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *
  261.  int drm_universal_plane_init(struct drm_device *dev,
  262.      ^~~~~~~~~~~~~~~~~~~~~~~~
  263. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
  264.                  from <command-line>:0:
  265. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
  266.    return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
  267.           ^~~~~~~~~~~~~~~~~~~~~~~~
  268. In file included from ./include/drm/drm_crtc.h:45:0,
  269.                  from ./include/drm/drmP.h:69,
  270.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  271.                  from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
  272.                  from <command-line>:0:
  273. ./include/drm/drm_plane.h:566:5: note: declared here
  274.  int drm_universal_plane_init(struct drm_device *dev,
  275.      ^~~~~~~~~~~~~~~~~~~~~~~~
  276. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
  277.                  from <command-line>:0:
  278. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’:
  279. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  280.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  281.                                                                      ^~~~~~~~~~~
  282. In file included from ./include/drm/drmP.h:84:0,
  283.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  284.                  from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
  285.                  from <command-line>:0:
  286. ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *
  287.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  288.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  289. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
  290.                  from <command-line>:0:
  291. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’
  292.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  293.          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  294. In file included from ./include/drm/drmP.h:84:0,
  295.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  296.                  from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
  297.                  from <command-line>:0:
  298. ./include/drm/drm_vblank.h:184:6: note: declared here
  299.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  300.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  301. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c: In function ‘_kcl_drm_atomic_helper_update_legacy_modeset_state_stub’:
  302. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:265:2: error: implicit declaration of function ‘for_each_connector_in_state’ [-Werror=implicit-function-declaration]
  303.   for_each_connector_in_state(old_state, connector, old_conn_state, i) {
  304.   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  305. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:265:71: error: expected ‘;’ before ‘{’ token
  306.   for_each_connector_in_state(old_state, connector, old_conn_state, i) {
  307.                                                                        ^
  308. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:261:25: warning: unused variable ‘old_crtc_state’ [-Wunused-variable]
  309.   struct drm_crtc_state *old_crtc_state;
  310.                          ^~~~~~~~~~~~~~
  311. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:260:19: warning: unused variable ‘crtc’ [-Wunused-variable]
  312.   struct drm_crtc *crtc;
  313.                    ^~~~
  314. cc1: some warnings being treated as errors
  315. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o] Error 1
  316. make[2]: *** Waiting for unfinished jobs....
  317.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_kms.o
  318. cc1: some warnings being treated as errors
  319. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:55:0,
  320.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  321.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  322.                  from <command-line>:0:
  323. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h: At top level:
  324. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h:62:28: error: field ‘entity’ has incomplete type
  325.   struct amd_sched_entity   entity;
  326.                             ^~~~~~
  327. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
  328.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  329.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  330.                  from <command-line>:0:
  331. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ring.h:157:27: error: field ‘sched’ has incomplete type
  332.   struct amd_gpu_scheduler sched;
  333.                            ^~~~~
  334. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:60:0,
  335.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  336.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  337.                  from <command-line>:0:
  338. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vm.h:149:26: error: field ‘entity’ has incomplete type
  339.   struct amd_sched_entity entity;
  340.                           ^~~~~~
  341. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:55:0,
  342.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  343.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  344.                  from <command-line>:0:
  345. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h: At top level:
  346. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h:62:28: error: field ‘entity’ has incomplete type
  347.   struct amd_sched_entity   entity;
  348.                             ^~~~~~
  349. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o] Error 1
  350. make[1]: *** [scripts/Makefile.build:583: /var/lib/dkms/amdgpu/17.40-492261/build/ttm] Error 2
  351. make[1]: *** Waiting for unfinished jobs....
  352. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
  353.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  354.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  355.                  from <command-line>:0:
  356. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ring.h:157:27: error: field ‘sched’ has incomplete type
  357.   struct amd_gpu_scheduler sched;
  358.                            ^~~~~
  359. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:60:0,
  360.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  361.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  362.                  from <command-line>:0:
  363. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vm.h:149:26: error: field ‘entity’ has incomplete type
  364.   struct amd_sched_entity entity;
  365.                           ^~~~~~
  366.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_atombios.o
  367. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:65:0,
  368.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  369.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  370.                  from <command-line>:0:
  371. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:50:26: error: field ‘entity’ has incomplete type
  372.   struct amd_sched_entity entity;
  373.                           ^~~~~~
  374. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:51:26: error: field ‘entity_enc’ has incomplete type
  375.   struct amd_sched_entity entity_enc;
  376.                           ^~~~~~~~~~
  377. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:66:0,
  378.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  379.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  380.                  from <command-line>:0:
  381. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vce.h:49:26: error: field ‘entity’ has incomplete type
  382.   struct amd_sched_entity entity;
  383.                           ^~~~~~
  384. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:67:0,
  385.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  386.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  387.                  from <command-line>:0:
  388. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:59:26: error: field ‘entity_dec’ has incomplete type
  389.   struct amd_sched_entity entity_dec;
  390.                           ^~~~~~~~~~
  391. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:60:26: error: field ‘entity_enc’ has incomplete type
  392.   struct amd_sched_entity entity_enc;
  393.                           ^~~~~~~~~~
  394. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:65:0,
  395.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  396.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  397.                  from <command-line>:0:
  398. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:50:26: error: field ‘entity’ has incomplete type
  399.   struct amd_sched_entity entity;
  400.                           ^~~~~~
  401. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:51:26: error: field ‘entity_enc’ has incomplete type
  402.   struct amd_sched_entity entity_enc;
  403.                           ^~~~~~~~~~
  404. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:66:0,
  405.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  406.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  407.                  from <command-line>:0:
  408. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vce.h:49:26: error: field ‘entity’ has incomplete type
  409.   struct amd_sched_entity entity;
  410.                           ^~~~~~
  411. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:67:0,
  412.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  413.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  414.                  from <command-line>:0:
  415. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:59:26: error: field ‘entity_dec’ has incomplete type
  416.   struct amd_sched_entity entity_dec;
  417.                           ^~~~~~~~~~
  418. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:60:26: error: field ‘entity_enc’ has incomplete type
  419.   struct amd_sched_entity entity_enc;
  420.                           ^~~~~~~~~~
  421. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_chardev.o] Error 1
  422. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  423.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  424.                  from <command-line>:0:
  425. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:735:26: error: field ‘entity’ has incomplete type
  426.   struct amd_sched_entity entity;
  427.                           ^~~~~~
  428. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  429.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  430.                  from <command-line>:0:
  431. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:1107:26: error: field ‘base’ has incomplete type
  432.   struct amd_sched_job    base;
  433.                           ^~~~
  434.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/atombios_crtc.o
  435. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  436.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  437.                  from <command-line>:0:
  438. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:735:26: error: field ‘entity’ has incomplete type
  439.   struct amd_sched_entity entity;
  440.                           ^~~~~~
  441. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  442.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  443.                  from <command-line>:0:
  444. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:1107:26: error: field ‘base’ has incomplete type
  445.   struct amd_sched_job    base;
  446.                           ^~~~
  447.   CC [M]  /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.o
  448. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/backport/backport.h:6:0,
  449.                  from <command-line>:0:
  450. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_pci.h:7:5: error: conflicting types for ‘pci_enable_atomic_ops_to_root’
  451.  int pci_enable_atomic_ops_to_root(struct pci_dev *dev);
  452.      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_pci.h:4:0,
  454.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/backport/backport.h:6,
  455.                  from <command-line>:0:
  456. ./include/linux/pci.h:2056:5: note: previous declaration of ‘pci_enable_atomic_ops_to_root’ was here
  457.  int pci_enable_atomic_ops_to_root(struct pci_dev *dev, u32 cap_mask);
  458.      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:809:2: error: unknown field ‘set_busid’ specified in initializer
  460.   .set_busid = drm_pci_set_busid,
  461.   ^
  462. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:809:15: error: ‘drm_pci_set_busid’ undeclared here (not in a function)
  463.   .set_busid = drm_pci_set_busid,
  464.                ^~~~~~~~~~~~~~~~~
  465. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:814:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  466.   .get_vblank_timestamp = kcl_amdgpu_get_vblank_timestamp_kms,
  467.                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:814:26: note: (near initialization for ‘kms_driver.get_vblank_timestamp)
  469. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:815:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  470.   .get_scanout_position = kcl_amdgpu_get_crtc_scanoutpos,
  471.                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:815:26: note: (near initialization for ‘kms_driver.get_scanout_position)
  473. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c: In function ‘amdgpu_init’:
  474. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:885:6: error: implicit declaration of function ‘amd_sched_fence_slab_init’ [-Werror=implicit-function-declaration]
  475.   r = amd_sched_fence_slab_init();
  476.       ^~~~~~~~~~~~~~~~~~~~~~~~~
  477. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c: In function ‘amdgpu_exit’:
  478. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:917:2: error: implicit declaration of function ‘amd_sched_fence_slab_fini’ [-Werror=implicit-function-declaration]
  479.   amd_sched_fence_slab_fini();
  480.   ^~~~~~~~~~~~~~~~~~~~~~~~~
  481. cc1: some warnings being treated as errors
  482. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o] Error 1
  483. make[2]: *** Waiting for unfinished jobs....
  484. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_device.c: In function ‘amdgpu_sriov_gpu_reset’:
  485. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_device.c:2781:7: error: implicit declaration of function ‘amd_sched_invalidate_job’ [-Werror=implicit-function-declaration]
  486.    if (amd_sched_invalidate_job(&job->base, amdgpu_job_hang_limit))
  487.        ^~~~~~~~~~~~~~~~~~~~~~~~
  488. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_device.c:2782:4: error: implicit declaration of function ‘amd_sched_job_kickout’ [-Werror=implicit-function-declaration]
  489.     amd_sched_job_kickout(&job->base);
  490.     ^~~~~~~~~~~~~~~~~~~~~
  491. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_device.c:2785:3: error: implicit declaration of function ‘amd_sched_hw_job_reset’ [-Werror=implicit-function-declaration]
  492.    amd_sched_hw_job_reset(&ring->sched);
  493.    ^~~~~~~~~~~~~~~~~~~~~~
  494. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_device.c:2852:3: error: implicit declaration of function ‘amd_sched_job_recovery’ [-Werror=implicit-function-declaration]
  495.    amd_sched_job_recovery(&ring->sched);
  496.    ^~~~~~~~~~~~~~~~~~~~~~
  497. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_topology.o] Error 1
  498. make[1]: *** [scripts/Makefile.build:583: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd] Error 2
  499. cc1: some warnings being treated as errors
  500. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_device.o] Error 1
  501. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  502.                  from <command-line>:0:
  503. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’:
  504. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
  505.       formats, format_count, type, name);
  506.                              ^~~~
  507. In file included from ./include/drm/drm_crtc.h:45:0,
  508.                  from ./include/drm/drmP.h:69,
  509.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  510.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  511.                  from <command-line>:0:
  512. ./include/drm/drm_plane.h:566:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’
  513.  int drm_universal_plane_init(struct drm_device *dev,
  514.      ^~~~~~~~~~~~~~~~~~~~~~~~
  515. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  516.                  from <command-line>:0:
  517. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
  518.       formats, format_count, type, name);
  519.                                    ^~~~
  520. In file included from ./include/drm/drm_crtc.h:45:0,
  521.                  from ./include/drm/drmP.h:69,
  522.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  523.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  524.                  from <command-line>:0:
  525. ./include/drm/drm_plane.h:566:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *
  526.  int drm_universal_plane_init(struct drm_device *dev,
  527.      ^~~~~~~~~~~~~~~~~~~~~~~~
  528. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  529.                  from <command-line>:0:
  530. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
  531.    return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
  532.           ^~~~~~~~~~~~~~~~~~~~~~~~
  533. In file included from ./include/drm/drm_crtc.h:45:0,
  534.                  from ./include/drm/drmP.h:69,
  535.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  536.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  537.                  from <command-line>:0:
  538. ./include/drm/drm_plane.h:566:5: note: declared here
  539.  int drm_universal_plane_init(struct drm_device *dev,
  540.      ^~~~~~~~~~~~~~~~~~~~~~~~
  541. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  542.                  from <command-line>:0:
  543. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’:
  544. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  545.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  546.                                                                      ^~~~~~~~~~~
  547. In file included from ./include/drm/drmP.h:84:0,
  548.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  549.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  550.                  from <command-line>:0:
  551. ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *
  552.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  553.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  554. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  555.                  from <command-line>:0:
  556. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’
  557.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  558.          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  559. In file included from ./include/drm/drmP.h:84:0,
  560.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  561.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  562.                  from <command-line>:0:
  563. ./include/drm/drm_vblank.h:184:6: note: declared here
  564.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  565.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  566. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  567.                  from <command-line>:0:
  568. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’:
  569. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
  570.       formats, format_count, type, name);
  571.                              ^~~~
  572. In file included from ./include/drm/drm_crtc.h:45:0,
  573.                  from ./include/drm/drmP.h:69,
  574.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  575.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  576.                  from <command-line>:0:
  577. ./include/drm/drm_plane.h:566:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’
  578.  int drm_universal_plane_init(struct drm_device *dev,
  579.      ^~~~~~~~~~~~~~~~~~~~~~~~
  580. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  581.                  from <command-line>:0:
  582. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
  583.       formats, format_count, type, name);
  584.                                    ^~~~
  585. In file included from ./include/drm/drm_crtc.h:45:0,
  586.                  from ./include/drm/drmP.h:69,
  587.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  588.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  589.                  from <command-line>:0:
  590. ./include/drm/drm_plane.h:566:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *
  591.  int drm_universal_plane_init(struct drm_device *dev,
  592.      ^~~~~~~~~~~~~~~~~~~~~~~~
  593. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  594.                  from <command-line>:0:
  595. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
  596.    return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
  597.           ^~~~~~~~~~~~~~~~~~~~~~~~
  598. In file included from ./include/drm/drm_crtc.h:45:0,
  599.                  from ./include/drm/drmP.h:69,
  600.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  601.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  602.                  from <command-line>:0:
  603. ./include/drm/drm_plane.h:566:5: note: declared here
  604.  int drm_universal_plane_init(struct drm_device *dev,
  605.      ^~~~~~~~~~~~~~~~~~~~~~~~
  606. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  607.                  from <command-line>:0:
  608. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’:
  609. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  610.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  611.                                                                      ^~~~~~~~~~~
  612. In file included from ./include/drm/drmP.h:84:0,
  613.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  614.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  615.                  from <command-line>:0:
  616. ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *
  617.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  618.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  619. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  620.                  from <command-line>:0:
  621. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’
  622.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  623.          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  624. In file included from ./include/drm/drmP.h:84:0,
  625.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  626.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  627.                  from <command-line>:0:
  628. ./include/drm/drm_vblank.h:184:6: note: declared here
  629.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  630.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  631. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:55:0,
  632.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  633.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  634.                  from <command-line>:0:
  635. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h: At top level:
  636. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h:62:28: error: field ‘entity’ has incomplete type
  637.   struct amd_sched_entity   entity;
  638.                             ^~~~~~
  639. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
  640.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  641.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  642.                  from <command-line>:0:
  643. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ring.h:157:27: error: field ‘sched’ has incomplete type
  644.   struct amd_gpu_scheduler sched;
  645.                            ^~~~~
  646. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:60:0,
  647.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  648.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  649.                  from <command-line>:0:
  650. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vm.h:149:26: error: field ‘entity’ has incomplete type
  651.   struct amd_sched_entity entity;
  652.                           ^~~~~~
  653. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:65:0,
  654.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  655.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  656.                  from <command-line>:0:
  657. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:50:26: error: field ‘entity’ has incomplete type
  658.   struct amd_sched_entity entity;
  659.                           ^~~~~~
  660. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:51:26: error: field ‘entity_enc’ has incomplete type
  661.   struct amd_sched_entity entity_enc;
  662.                           ^~~~~~~~~~
  663. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:66:0,
  664.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  665.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  666.                  from <command-line>:0:
  667. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vce.h:49:26: error: field ‘entity’ has incomplete type
  668.   struct amd_sched_entity entity;
  669.                           ^~~~~~
  670. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:67:0,
  671.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  672.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  673.                  from <command-line>:0:
  674. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:59:26: error: field ‘entity_dec’ has incomplete type
  675.   struct amd_sched_entity entity_dec;
  676.                           ^~~~~~~~~~
  677. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:60:26: error: field ‘entity_enc’ has incomplete type
  678.   struct amd_sched_entity entity_enc;
  679.                           ^~~~~~~~~~
  680. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  681.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  682.                  from <command-line>:0:
  683. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:735:26: error: field ‘entity’ has incomplete type
  684.   struct amd_sched_entity entity;
  685.                           ^~~~~~
  686. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  687.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  688.                  from <command-line>:0:
  689. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:1107:26: error: field ‘base’ has incomplete type
  690.   struct amd_sched_job    base;
  691.                           ^~~~
  692. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:55:0,
  693.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  694.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  695.                  from <command-line>:0:
  696. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h: At top level:
  697. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h:62:28: error: field ‘entity’ has incomplete type
  698.   struct amd_sched_entity   entity;
  699.                             ^~~~~~
  700. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
  701.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  702.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  703.                  from <command-line>:0:
  704. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ring.h:157:27: error: field ‘sched’ has incomplete type
  705.   struct amd_gpu_scheduler sched;
  706.                            ^~~~~
  707. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:60:0,
  708.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  709.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  710.                  from <command-line>:0:
  711. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vm.h:149:26: error: field ‘entity’ has incomplete type
  712.   struct amd_sched_entity entity;
  713.                           ^~~~~~
  714. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:65:0,
  715.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  716.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  717.                  from <command-line>:0:
  718. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:50:26: error: field ‘entity’ has incomplete type
  719.   struct amd_sched_entity entity;
  720.                           ^~~~~~
  721. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:51:26: error: field ‘entity_enc’ has incomplete type
  722.   struct amd_sched_entity entity_enc;
  723.                           ^~~~~~~~~~
  724. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:66:0,
  725.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  726.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  727.                  from <command-line>:0:
  728. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vce.h:49:26: error: field ‘entity’ has incomplete type
  729.   struct amd_sched_entity entity;
  730.                           ^~~~~~
  731. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:67:0,
  732.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  733.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  734.                  from <command-line>:0:
  735. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:59:26: error: field ‘entity_dec’ has incomplete type
  736.   struct amd_sched_entity entity_dec;
  737.                           ^~~~~~~~~~
  738. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:60:26: error: field ‘entity_enc’ has incomplete type
  739.   struct amd_sched_entity entity_enc;
  740.                           ^~~~~~~~~~
  741. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  742.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  743.                  from <command-line>:0:
  744. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:735:26: error: field ‘entity’ has incomplete type
  745.   struct amd_sched_entity entity;
  746.                           ^~~~~~
  747. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  748.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  749.                  from <command-line>:0:
  750. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:1107:26: error: field ‘base’ has incomplete type
  751.   struct amd_sched_job    base;
  752.                           ^~~~
  753. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  754.                  from <command-line>:0:
  755. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’:
  756. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
  757.       formats, format_count, type, name);
  758.                              ^~~~
  759. In file included from ./include/drm/drm_crtc.h:45:0,
  760.                  from ./include/drm/drmP.h:69,
  761.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  762.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  763.                  from <command-line>:0:
  764. ./include/drm/drm_plane.h:566:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’
  765.  int drm_universal_plane_init(struct drm_device *dev,
  766.      ^~~~~~~~~~~~~~~~~~~~~~~~
  767. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  768.                  from <command-line>:0:
  769. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
  770.       formats, format_count, type, name);
  771.                                    ^~~~
  772. In file included from ./include/drm/drm_crtc.h:45:0,
  773.                  from ./include/drm/drmP.h:69,
  774.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  775.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  776.                  from <command-line>:0:
  777. ./include/drm/drm_plane.h:566:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *
  778.  int drm_universal_plane_init(struct drm_device *dev,
  779.      ^~~~~~~~~~~~~~~~~~~~~~~~
  780. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  781.                  from <command-line>:0:
  782. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
  783.    return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
  784.           ^~~~~~~~~~~~~~~~~~~~~~~~
  785. In file included from ./include/drm/drm_crtc.h:45:0,
  786.                  from ./include/drm/drmP.h:69,
  787.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  788.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  789.                  from <command-line>:0:
  790. ./include/drm/drm_plane.h:566:5: note: declared here
  791.  int drm_universal_plane_init(struct drm_device *dev,
  792.      ^~~~~~~~~~~~~~~~~~~~~~~~
  793. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  794.                  from <command-line>:0:
  795. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’:
  796. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  797.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  798.                                                                      ^~~~~~~~~~~
  799. In file included from ./include/drm/drmP.h:84:0,
  800.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  801.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  802.                  from <command-line>:0:
  803. ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *
  804.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  805.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  806. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  807.                  from <command-line>:0:
  808. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’
  809.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  810.          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  811. In file included from ./include/drm/drmP.h:84:0,
  812.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  813.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  814.                  from <command-line>:0:
  815. ./include/drm/drm_vblank.h:184:6: note: declared here
  816.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  817.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  818. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_update_scratch_regs’:
  819. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:243:6: warning: passing argument 2 of ‘drm_encoder_find’ makes pointer from integer without a cast [-Wint-conversion]
  820.       connector->encoder_ids[i]);
  821.       ^~~~~~~~~
  822. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  823.                  from ./include/drm/drm_atomic_helper.h:32,
  824.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  825.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  826.                  from <command-line>:0:
  827. ./include/drm/drm_encoder.h:221:35: note: expected ‘struct drm_file *’ but argument is of type ‘uint32_t {aka unsigned int}
  828.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  829.                                    ^~~~~~~~~~~~~~~~
  830. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:242:13: error: too few arguments to function ‘drm_encoder_find’
  831.    encoder = drm_encoder_find(connector->dev,
  832.              ^~~~~~~~~~~~~~~~
  833. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  834.                  from ./include/drm/drm_atomic_helper.h:32,
  835.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  836.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  837.                  from <command-line>:0:
  838. ./include/drm/drm_encoder.h:221:35: note: declared here
  839.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  840.                                    ^~~~~~~~~~~~~~~~
  841. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_find_encoder’:
  842. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:268:6: warning: passing argument 2 of ‘drm_encoder_find’ makes pointer from integer without a cast [-Wint-conversion]
  843.       connector->encoder_ids[i]);
  844.       ^~~~~~~~~
  845. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  846.                  from ./include/drm/drm_atomic_helper.h:32,
  847.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  848.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  849.                  from <command-line>:0:
  850. ./include/drm/drm_encoder.h:221:35: note: expected ‘struct drm_file *’ but argument is of type ‘uint32_t {aka unsigned int}
  851.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  852.                                    ^~~~~~~~~~~~~~~~
  853. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:267:13: error: too few arguments to function ‘drm_encoder_find’
  854.    encoder = drm_encoder_find(connector->dev,
  855.              ^~~~~~~~~~~~~~~~
  856. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  857.                  from ./include/drm/drm_atomic_helper.h:32,
  858.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  859.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  860.                  from <command-line>:0:
  861. ./include/drm/drm_encoder.h:221:35: note: declared here
  862.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  863.                                    ^~~~~~~~~~~~~~~~
  864. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_ddc_get_modes’:
  865. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:371:3: error: implicit declaration of function ‘drm_edid_to_eld’ [-Werror=implicit-function-declaration]
  866.    drm_edid_to_eld(connector, amdgpu_connector->edid);
  867.    ^~~~~~~~~~~~~~~
  868. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_best_single_encoder’:
  869. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:385:43: warning: passing argument 2 of ‘drm_encoder_find’ makes pointer from integer without a cast [-Wint-conversion]
  870.    return drm_encoder_find(connector->dev, enc_id);
  871.                                            ^~~~~~
  872. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  873.                  from ./include/drm/drm_atomic_helper.h:32,
  874.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  875.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  876.                  from <command-line>:0:
  877. ./include/drm/drm_encoder.h:221:35: note: expected ‘struct drm_file *’ but argument is of type ‘int
  878.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  879.                                    ^~~~~~~~~~~~~~~~
  880. cc1: some warnings being treated as errors
  881. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:385:10: error: too few arguments to function ‘drm_encoder_find’
  882.    return drm_encoder_find(connector->dev, enc_id);
  883.           ^~~~~~~~~~~~~~~~
  884. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  885.                  from ./include/drm/drm_atomic_helper.h:32,
  886.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  887.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  888.                  from <command-line>:0:
  889. ./include/drm/drm_encoder.h:221:35: note: declared here
  890.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  891.                                    ^~~~~~~~~~~~~~~~
  892. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_atombios.o] Error 1
  893. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_dvi_detect’:
  894. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:1096:47: warning: passing argument 2 of ‘drm_encoder_find’ makes pointer from integer without a cast [-Wint-conversion]
  895.     encoder = drm_encoder_find(connector->dev, connector->encoder_ids[i]);
  896.                                                ^~~~~~~~~
  897. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  898.                  from ./include/drm/drm_atomic_helper.h:32,
  899.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  900.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  901.                  from <command-line>:0:
  902. ./include/drm/drm_encoder.h:221:35: note: expected ‘struct drm_file *’ but argument is of type ‘uint32_t {aka unsigned int}
  903.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  904.                                    ^~~~~~~~~~~~~~~~
  905. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:1096:14: error: too few arguments to function ‘drm_encoder_find’
  906.     encoder = drm_encoder_find(connector->dev, connector->encoder_ids[i]);
  907.               ^~~~~~~~~~~~~~~~
  908. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  909.                  from ./include/drm/drm_atomic_helper.h:32,
  910.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  911.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  912.                  from <command-line>:0:
  913. ./include/drm/drm_encoder.h:221:35: note: declared here
  914.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  915.                                    ^~~~~~~~~~~~~~~~
  916. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_dvi_encoder’:
  917. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:1153:46: warning: passing argument 2 of ‘drm_encoder_find’ makes pointer from integer without a cast [-Wint-conversion]
  918.    encoder = drm_encoder_find(connector->dev, connector->encoder_ids[i]);
  919.                                               ^~~~~~~~~
  920. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  921.                  from ./include/drm/drm_atomic_helper.h:32,
  922.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  923.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  924.                  from <command-line>:0:
  925. ./include/drm/drm_encoder.h:221:35: note: expected ‘struct drm_file *’ but argument is of type ‘uint32_t {aka unsigned int}
  926.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  927.                                    ^~~~~~~~~~~~~~~~
  928. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:1153:13: error: too few arguments to function ‘drm_encoder_find’
  929.    encoder = drm_encoder_find(connector->dev, connector->encoder_ids[i]);
  930.              ^~~~~~~~~~~~~~~~
  931. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  932.                  from ./include/drm/drm_atomic_helper.h:32,
  933.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  934.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  935.                  from <command-line>:0:
  936. ./include/drm/drm_encoder.h:221:35: note: declared here
  937.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  938.                                    ^~~~~~~~~~~~~~~~
  939. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:1172:43: warning: passing argument 2 of ‘drm_encoder_find’ makes pointer from integer without a cast [-Wint-conversion]
  940.    return drm_encoder_find(connector->dev, enc_id);
  941.                                            ^~~~~~
  942. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  943.                  from ./include/drm/drm_atomic_helper.h:32,
  944.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  945.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  946.                  from <command-line>:0:
  947. ./include/drm/drm_encoder.h:221:35: note: expected ‘struct drm_file *’ but argument is of type ‘int
  948.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  949.                                    ^~~~~~~~~~~~~~~~
  950. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:1172:10: error: too few arguments to function ‘drm_encoder_find’
  951.    return drm_encoder_find(connector->dev, enc_id);
  952.           ^~~~~~~~~~~~~~~~
  953. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  954.                  from ./include/drm/drm_atomic_helper.h:32,
  955.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  956.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  957.                  from <command-line>:0:
  958. ./include/drm/drm_encoder.h:221:35: note: declared here
  959.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  960.                                    ^~~~~~~~~~~~~~~~
  961. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_encoder_get_dp_bridge_encoder_id’:
  962. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:1316:6: warning: passing argument 2 of ‘drm_encoder_find’ makes pointer from integer without a cast [-Wint-conversion]
  963.       connector->encoder_ids[i]);
  964.       ^~~~~~~~~
  965. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  966.                  from ./include/drm/drm_atomic_helper.h:32,
  967.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  968.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  969.                  from <command-line>:0:
  970. ./include/drm/drm_encoder.h:221:35: note: expected ‘struct drm_file *’ but argument is of type ‘uint32_t {aka unsigned int}
  971.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  972.                                    ^~~~~~~~~~~~~~~~
  973. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:1315:13: error: too few arguments to function ‘drm_encoder_find’
  974.    encoder = drm_encoder_find(connector->dev,
  975.              ^~~~~~~~~~~~~~~~
  976. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  977.                  from ./include/drm/drm_atomic_helper.h:32,
  978.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  979.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  980.                  from <command-line>:0:
  981. ./include/drm/drm_encoder.h:221:35: note: declared here
  982.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  983.                                    ^~~~~~~~~~~~~~~~
  984. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_encoder_is_hbr2’:
  985. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:1345:6: warning: passing argument 2 of ‘drm_encoder_find’ makes pointer from integer without a cast [-Wint-conversion]
  986.       connector->encoder_ids[i]);
  987.       ^~~~~~~~~
  988. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  989.                  from ./include/drm/drm_atomic_helper.h:32,
  990.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  991.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  992.                  from <command-line>:0:
  993. ./include/drm/drm_encoder.h:221:35: note: expected ‘struct drm_file *’ but argument is of type ‘uint32_t {aka unsigned int}
  994.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  995.                                    ^~~~~~~~~~~~~~~~
  996. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.c:1344:13: error: too few arguments to function ‘drm_encoder_find’
  997.    encoder = drm_encoder_find(connector->dev,
  998.              ^~~~~~~~~~~~~~~~
  999. In file included from ./include/drm/drm_modeset_helper_vtables.h:33:0,
  1000.                  from ./include/drm/drm_atomic_helper.h:32,
  1001.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:10,
  1002.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  1003.                  from <command-line>:0:
  1004. ./include/drm/drm_encoder.h:221:35: note: declared here
  1005.  static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
  1006.                                    ^~~~~~~~~~~~~~~~
  1007. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:55:0,
  1008.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1009.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1010.                  from <command-line>:0:
  1011. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h: At top level:
  1012. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h:62:28: error: field ‘entity’ has incomplete type
  1013.   struct amd_sched_entity   entity;
  1014.                             ^~~~~~
  1015. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
  1016.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1017.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1018.                  from <command-line>:0:
  1019. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ring.h:157:27: error: field ‘sched’ has incomplete type
  1020.   struct amd_gpu_scheduler sched;
  1021.                            ^~~~~
  1022. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:60:0,
  1023.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1024.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1025.                  from <command-line>:0:
  1026. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vm.h:149:26: error: field ‘entity’ has incomplete type
  1027.   struct amd_sched_entity entity;
  1028.                           ^~~~~~
  1029. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  1030.                  from <command-line>:0:
  1031. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’:
  1032. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
  1033.       formats, format_count, type, name);
  1034.                              ^~~~
  1035. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:65:0,
  1036.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1037.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1038.                  from <command-line>:0:
  1039. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:50:26: error: field ‘entity’ has incomplete type
  1040.   struct amd_sched_entity entity;
  1041.                           ^~~~~~
  1042. In file included from ./include/drm/drm_crtc.h:45:0,
  1043.                  from ./include/drm/drmP.h:69,
  1044.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  1045.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  1046.                  from <command-line>:0:
  1047. ./include/drm/drm_plane.h:566:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’
  1048.  int drm_universal_plane_init(struct drm_device *dev,
  1049.      ^~~~~~~~~~~~~~~~~~~~~~~~
  1050. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:51:26: error: field ‘entity_enc’ has incomplete type
  1051.   struct amd_sched_entity entity_enc;
  1052.                           ^~~~~~~~~~
  1053. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  1054.                  from <command-line>:0:
  1055. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
  1056.       formats, format_count, type, name);
  1057.                                    ^~~~
  1058. In file included from ./include/drm/drm_crtc.h:45:0,
  1059.                  from ./include/drm/drmP.h:69,
  1060.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  1061.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  1062.                  from <command-line>:0:
  1063. ./include/drm/drm_plane.h:566:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *
  1064.  int drm_universal_plane_init(struct drm_device *dev,
  1065.      ^~~~~~~~~~~~~~~~~~~~~~~~
  1066. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  1067.                  from <command-line>:0:
  1068. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
  1069.    return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
  1070.           ^~~~~~~~~~~~~~~~~~~~~~~~
  1071. In file included from ./include/drm/drm_crtc.h:45:0,
  1072.                  from ./include/drm/drmP.h:69,
  1073.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  1074.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  1075.                  from <command-line>:0:
  1076. ./include/drm/drm_plane.h:566:5: note: declared here
  1077.  int drm_universal_plane_init(struct drm_device *dev,
  1078.      ^~~~~~~~~~~~~~~~~~~~~~~~
  1079. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:66:0,
  1080.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1081.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1082.                  from <command-line>:0:
  1083. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vce.h:49:26: error: field ‘entity’ has incomplete type
  1084.   struct amd_sched_entity entity;
  1085.                           ^~~~~~
  1086. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  1087.                  from <command-line>:0:
  1088. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’:
  1089. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  1090.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  1091.                                                                      ^~~~~~~~~~~
  1092. In file included from ./include/drm/drmP.h:84:0,
  1093.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  1094.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  1095.                  from <command-line>:0:
  1096. ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *
  1097.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  1098.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1099. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
  1100.                  from <command-line>:0:
  1101. /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’
  1102.   return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
  1103.          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1104. In file included from ./include/drm/drmP.h:84:0,
  1105.                  from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
  1106.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
  1107.                  from <command-line>:0:
  1108. ./include/drm/drm_vblank.h:184:6: note: declared here
  1109.  bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
  1110.       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1111. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:67:0,
  1112.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1113.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1114.                  from <command-line>:0:
  1115. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:59:26: error: field ‘entity_dec’ has incomplete type
  1116.   struct amd_sched_entity entity_dec;
  1117.                           ^~~~~~~~~~
  1118. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:60:26: error: field ‘entity_enc’ has incomplete type
  1119.   struct amd_sched_entity entity_enc;
  1120.                           ^~~~~~~~~~
  1121. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  1122.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1123.                  from <command-line>:0:
  1124. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:735:26: error: field ‘entity’ has incomplete type
  1125.   struct amd_sched_entity entity;
  1126.                           ^~~~~~
  1127. cc1: some warnings being treated as errors
  1128. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  1129.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1130.                  from <command-line>:0:
  1131. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:1107:26: error: field ‘base’ has incomplete type
  1132.   struct amd_sched_job    base;
  1133.                           ^~~~
  1134. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_connectors.o] Error 1
  1135. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:55:0,
  1136.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1137.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1138.                  from <command-line>:0:
  1139. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h: At top level:
  1140. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h:62:28: error: field ‘entity’ has incomplete type
  1141.   struct amd_sched_entity   entity;
  1142.                             ^~~~~~
  1143. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
  1144.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1145.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1146.                  from <command-line>:0:
  1147. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_ring.h:157:27: error: field ‘sched’ has incomplete type
  1148.   struct amd_gpu_scheduler sched;
  1149.                            ^~~~~
  1150. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:60:0,
  1151.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1152.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1153.                  from <command-line>:0:
  1154. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vm.h:149:26: error: field ‘entity’ has incomplete type
  1155.   struct amd_sched_entity entity;
  1156.                           ^~~~~~
  1157. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:65:0,
  1158.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1159.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1160.                  from <command-line>:0:
  1161. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:50:26: error: field ‘entity’ has incomplete type
  1162.   struct amd_sched_entity entity;
  1163.                           ^~~~~~
  1164. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_uvd.h:51:26: error: field ‘entity_enc’ has incomplete type
  1165.   struct amd_sched_entity entity_enc;
  1166.                           ^~~~~~~~~~
  1167. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:66:0,
  1168.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1169.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1170.                  from <command-line>:0:
  1171. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vce.h:49:26: error: field ‘entity’ has incomplete type
  1172.   struct amd_sched_entity entity;
  1173.                           ^~~~~~
  1174. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:67:0,
  1175.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
  1176.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1177.                  from <command-line>:0:
  1178. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:59:26: error: field ‘entity_dec’ has incomplete type
  1179.   struct amd_sched_entity entity_dec;
  1180.                           ^~~~~~~~~~
  1181. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu_vcn.h:60:26: error: field ‘entity_enc’ has incomplete type
  1182.   struct amd_sched_entity entity_enc;
  1183.                           ^~~~~~~~~~
  1184. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  1185.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1186.                  from <command-line>:0:
  1187. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:735:26: error: field ‘entity’ has incomplete type
  1188.   struct amd_sched_entity entity;
  1189.                           ^~~~~~
  1190. In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
  1191.                  from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:7,
  1192.                  from <command-line>:0:
  1193. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../amdgpu/amdgpu.h:1107:26: error: field ‘base’ has incomplete type
  1194.   struct amd_sched_job    base;
  1195.                           ^~~~
  1196. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_kms.c: In function ‘amdgpu_get_vblank_counter_kms’:
  1197. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_kms.c:1013:17: error: ‘DRM_SCANOUTPOS_VALID’ undeclared (first use in this function)
  1198.    if (((stat & (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_ACCURATE)) !=
  1199.                  ^~~~~~~~~~~~~~~~~~~~
  1200. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_kms.c:1013:17: note: each undeclared identifier is reported only once for each function it appears in
  1201. /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_kms.c:1013:40: error: ‘DRM_SCANOUTPOS_ACCURATE’ undeclared (first use in this function)
  1202.    if (((stat & (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_ACCURATE)) !=
  1203.                                         ^~~~~~~~~~~~~~~~~~~~~~~
  1204. cc1: some warnings being treated as errors
  1205. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_kms.o] Error 1
  1206. cc1: some warnings being treated as errors
  1207. make[2]: *** [scripts/Makefile.build:324: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/atombios_crtc.o] Error 1
  1208. make[1]: *** [scripts/Makefile.build:583: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu] Error 2
  1209. make[1]: *** [scripts/Makefile.build:583: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl] Error 2
  1210. make: *** [Makefile:1561: _module_/var/lib/dkms/amdgpu/17.40-492261/build] Error 2
  1211. make: Leaving directory '/usr/src/linux-4.16.3-gentoo'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top