DKMS make.log for amdgpu-5.6.0.15-1098277 for kernel 5.13.0-27-generic (x86_64) Sen 24 Jan 2022 07:51:41 WIB make: Entering directory '/usr/src/linux-headers-5.13.0-27-generic' CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/sched_main.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/sched_fence.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/sched_entity.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_memory.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_tt.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_util.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/main.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_vm.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/symbols.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_module.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_mn.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_execbuf_util.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_page_alloc.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu_drv.o CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_ioctl.o In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.o In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_ioctl.c:2: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fs.h:11:20: error: static declaration of ‘compat_ptr_ioctl’ follows non-static declaration 11 | static inline long compat_ptr_ioctl(struct file *file, unsigned int cmd, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_ioctl.c:1: ./include/linux/fs.h:1954:13: note: previous declaration of ‘compat_ptr_ioctl’ was here 1954 | extern long compat_ptr_ioctl(struct file *file, unsigned int cmd, | ^~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_ioctl.c: In function ‘_kcl_compat_ptr_ioctl’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_ioctl.c:34:62: error: implicit declaration of function ‘compat_ptr’ [-Werror=implicit-function-declaration] 34 | return file->f_op->unlocked_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); | ^~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_ioctl.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_agp_backend.o In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h: In function ‘_kcl_drm_vma_node_verify_access’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:43:45: error: dereferencing pointer to incomplete type ‘struct drm_file’ 43 | return drm_vma_node_verify_access(node, tag->filp); | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h: In function ‘_kcl_drm_vma_node_verify_access’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:43:45: error: dereferencing pointer to incomplete type ‘struct drm_file’ 43 | return drm_vma_node_verify_access(node, tag->filp); | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h: In function ‘_kcl_drm_vma_node_verify_access’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:43:45: error: dereferencing pointer to incomplete type ‘struct drm_file’ 43 | return drm_vma_node_verify_access(node, tag->filp); | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h: In function ‘_kcl_drm_vma_node_verify_access’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:43:45: error: dereferencing pointer to incomplete type ‘struct drm_file’ 43 | return drm_vma_node_verify_access(node, tag->filp); | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/sched/mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/linux/sched/mm.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h: In function ‘_kcl_drm_vma_node_verify_access’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:43:45: error: dereferencing pointer to incomplete type ‘struct drm_file’ 43 | return drm_vma_node_verify_access(node, tag->filp); | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h: In function ‘_kcl_drm_vma_node_verify_access’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:43:45: error: dereferencing pointer to incomplete type ‘struct drm_file’ 43 | return drm_vma_node_verify_access(node, tag->filp); | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h: In function ‘_kcl_drm_vma_node_verify_access’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:43:45: error: dereferencing pointer to incomplete type ‘struct drm_file’ 43 | return drm_vma_node_verify_access(node, tag->filp); | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h: In function ‘_kcl_drm_vma_node_verify_access’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:43:45: error: dereferencing pointer to incomplete type ‘struct drm_file’ 43 | return drm_vma_node_verify_access(node, tag->filp); | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: implicit declaration of function ‘__vmalloc’; did you mean ‘__kmalloc’? [-Werror=implicit-function-declaration] 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ | __kmalloc /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:7: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvfree’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:47:3: error: implicit declaration of function ‘vfree’; did you mean ‘kvfree’? [-Werror=implicit-function-declaration] 47 | vfree(addr); | ^~~~~ | kvfree /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/sched/mm.h:9, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.c:1: ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl/kcl_memory.o] Error 1 CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_page_alloc_dma.o make[1]: *** [scripts/Makefile.build:524: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl] Error 2 make[1]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu_device.o In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from ./include/drm/drm_gem.h:40, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from ./include/drm/drm_gem.h:40, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from ./include/drm/drm_gem.h:40, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from ./include/drm/drm_gem.h:40, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/backport/backport.h:5, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: error: ‘KM_USER0’ undeclared (first use in this function) 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:9: error: too many arguments to function ‘kmap_atomic’ 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~~~~ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:180:21: note: declared here 180 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kunmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:30: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 13 | kunmap_atomic(addr, KM_USER0); | ^ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:215: note: macro "kunmap_atomic" defined here 215 | #define kunmap_atomic(__addr) \ | In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:8:21: error: redefinition of ‘drm_debug_enabled’ 8 | static inline bool drm_debug_enabled(unsigned int category) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from ./include/drm/drm_gem.h:40, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_print.h:322:20: note: previous definition of ‘drm_debug_enabled’ was here 322 | static inline bool drm_debug_enabled(enum drm_debug_category category) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: error: ‘KM_USER0’ undeclared (first use in this function) 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:9: error: too many arguments to function ‘kmap_atomic’ 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~~~~ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:180:21: note: declared here 180 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kunmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:30: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 13 | kunmap_atomic(addr, KM_USER0); | ^ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:215: note: macro "kunmap_atomic" defined here 215 | #define kunmap_atomic(__addr) \ | In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: error: ‘KM_USER0’ undeclared (first use in this function) 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:9: error: too many arguments to function ‘kmap_atomic’ 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~~~~ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:180:21: note: declared here 180 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kunmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:30: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 13 | kunmap_atomic(addr, KM_USER0); | ^ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:215: note: macro "kunmap_atomic" defined here 215 | #define kunmap_atomic(__addr) \ | In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: error: ‘KM_USER0’ undeclared (first use in this function) 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:9: error: too many arguments to function ‘kmap_atomic’ 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~~~~ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:180:21: note: declared here 180 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kunmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:30: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 13 | kunmap_atomic(addr, KM_USER0); | ^ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:215: note: macro "kunmap_atomic" defined here 215 | #define kunmap_atomic(__addr) \ | In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:2: error: ‘kunmap_atomic’ undeclared (first use in this function); did you mean ‘kmap_atomic’? 13 | kunmap_atomic(addr, KM_USER0); | ^~~~~~~~~~~~~ | kmap_atomic In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/kobject.h:23, from ./include/linux/energy_model.h:7, from ./include/linux/device.h:16, from ./include/drm/drm_print.h:32, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/rcupdate.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h: In function ‘drm_debug_enabled’: In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:10:18: error: ‘drm_debug’ undeclared (first use in this function); did you mean ‘pr_debug’? 10 | return unlikely(drm_debug & category); | ^~~~~~~~~ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:10:18: note: each undeclared identifier is reported only once for each function it appears in 10 | return unlikely(drm_debug & category); | ^~~~~~~~~ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h:6:20: error: redefinition of ‘list_bulk_move_tail’ 6 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fs.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fs.h:11:20: error: static declaration of ‘compat_ptr_ioctl’ follows non-static declaration 11 | static inline long compat_ptr_ioctl(struct file *file, unsigned int cmd, | ^~~~~~~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/list.h:240:20: note: previous definition of ‘list_bulk_move_tail’ was here 240 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/huge_mm.h:8, from ./include/linux/mm.h:726, from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/fs.h:1954:13: note: previous declaration of ‘compat_ptr_ioctl’ was here 1954 | extern long compat_ptr_ioctl(struct file *file, unsigned int cmd, | ^~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/sched_fence.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: error: ‘KM_USER0’ undeclared (first use in this function) 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:9: error: too many arguments to function ‘kmap_atomic’ 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: error: ‘KM_USER0’ undeclared (first use in this function) 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: note: each undeclared identifier is reported only once for each function it appears in In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:180:21: note: declared here 180 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:9: error: too many arguments to function ‘kmap_atomic’ 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~~~~ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:180:21: note: declared here 180 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kunmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:30: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 13 | kunmap_atomic(addr, KM_USER0); | ^ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:215: note: macro "kunmap_atomic" defined here 215 | #define kunmap_atomic(__addr) \ | In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kunmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:30: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 13 | kunmap_atomic(addr, KM_USER0); | ^ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:215: note: macro "kunmap_atomic" defined here 215 | #define kunmap_atomic(__addr) \ | In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu_kms.o In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:2: error: ‘kunmap_atomic’ undeclared (first use in this function); did you mean ‘kmap_atomic’? 13 | kunmap_atomic(addr, KM_USER0); | ^~~~~~~~~~~~~ | kmap_atomic In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/kobject.h:23, from ./include/linux/energy_model.h:7, from ./include/linux/device.h:16, from ./include/drm/drm_print.h:32, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h:6:20: error: redefinition of ‘list_bulk_move_tail’ 6 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/list.h:240:20: note: previous definition of ‘list_bulk_move_tail’ was here 240 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/drm/drm_mm.h:43, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/idr.h:15, from ./include/linux/kernfs.h:13, from ./include/linux/sysfs.h:16, from ./include/linux/kobject.h:20, from ./include/linux/of.h:17, from ./include/linux/irqdomain.h:35, from ./include/linux/acpi.h:13, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h: In function ‘_kcl_drm_vma_node_verify_access’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:43:45: error: dereferencing pointer to incomplete type ‘struct drm_file’ 43 | return drm_vma_node_verify_access(node, tag->filp); | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:2: error: ‘kunmap_atomic’ undeclared (first use in this function); did you mean ‘kmap_atomic’? 13 | kunmap_atomic(addr, KM_USER0); | ^~~~~~~~~~~~~ | kmap_atomic In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/kobject.h:23, from ./include/linux/energy_model.h:7, from ./include/linux/device.h:16, from ./include/drm/drm_print.h:32, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kmap_atomic’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h:6:20: error: redefinition of ‘list_bulk_move_tail’ 6 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: error: ‘KM_USER0’ undeclared (first use in this function) 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:9: error: too many arguments to function ‘kmap_atomic’ 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/list.h:240:20: note: previous definition of ‘list_bulk_move_tail’ was here 240 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:180:21: note: declared here 180 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kunmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:30: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 13 | kunmap_atomic(addr, KM_USER0); | ^ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:215: note: macro "kunmap_atomic" defined here 215 | #define kunmap_atomic(__addr) \ | In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/drm/drm_mm.h:43, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:2: error: ‘kunmap_atomic’ undeclared (first use in this function); did you mean ‘kmap_atomic’? 13 | kunmap_atomic(addr, KM_USER0); | ^~~~~~~~~~~~~ | kmap_atomic In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/kobject.h:23, from ./include/linux/energy_model.h:7, from ./include/linux/device.h:16, from ./include/drm/drm_print.h:32, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h:6:20: error: redefinition of ‘list_bulk_move_tail’ 6 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/list.h:240:20: note: previous definition of ‘list_bulk_move_tail’ was here 240 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/drm/drm_mm.h:43, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:2: error: ‘kunmap_atomic’ undeclared (first use in this function); did you mean ‘kmap_atomic’? 13 | kunmap_atomic(addr, KM_USER0); | ^~~~~~~~~~~~~ | kmap_atomic In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:2: error: ‘kunmap_atomic’ undeclared (first use in this function); did you mean ‘kmap_atomic’? 13 | kunmap_atomic(addr, KM_USER0); | ^~~~~~~~~~~~~ | kmap_atomic In file included from ./include/linux/kobject.h:23, from ./include/linux/energy_model.h:7, from ./include/linux/device.h:16, from ./include/drm/drm_print.h:32, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from ./include/linux/kobject.h:23, from ./include/linux/energy_model.h:7, from ./include/linux/device.h:16, from ./include/drm/drm_print.h:32, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} cc1: some warnings being treated as errors In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h:6:20: error: redefinition of ‘list_bulk_move_tail’ 6 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/list.h:240:20: note: previous definition of ‘list_bulk_move_tail’ was here 240 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h:6:20: error: redefinition of ‘list_bulk_move_tail’ 6 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/list.h:240:20: note: previous definition of ‘list_bulk_move_tail’ was here 240 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/drm/drm_mm.h:43, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: error: ‘KM_USER0’ undeclared (first use in this function) 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:9: error: too many arguments to function ‘kmap_atomic’ 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~~~~ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:180:21: note: declared here 180 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kunmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:30: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 13 | kunmap_atomic(addr, KM_USER0); | ^ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:215: note: macro "kunmap_atomic" defined here 215 | #define kunmap_atomic(__addr) \ | In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/drm/drm_mm.h:43, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/drm/drm_mm.h:43, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/sched_entity.o] Error 1 In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:2: error: ‘kunmap_atomic’ undeclared (first use in this function); did you mean ‘kmap_atomic’? 13 | kunmap_atomic(addr, KM_USER0); | ^~~~~~~~~~~~~ | kmap_atomic In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/kobject.h:23, from ./include/linux/energy_model.h:7, from ./include/linux/device.h:16, from ./include/drm/drm_print.h:32, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h:6:20: error: redefinition of ‘list_bulk_move_tail’ 6 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/list.h:240:20: note: previous definition of ‘list_bulk_move_tail’ was here 240 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed CC [M] /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu_atombios.o /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/drm/drm_mm.h:43, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/io.h:13, from ./include/acpi/acpi_io.h:5, from ./include/linux/acpi.h:35, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/scatterlist.h:9, from ./include/linux/dma-mapping.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_dma_mapping.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:7, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/idr.h:15, from ./include/linux/kernfs.h:13, from ./include/linux/sysfs.h:16, from ./include/linux/kobject.h:20, from ./include/linux/of.h:17, from ./include/linux/irqdomain.h:35, from ./include/linux/acpi.h:13, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:16, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/dma-fence.h:20, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:16, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:2: error: ‘kunmap_atomic’ undeclared (first use in this function); did you mean ‘kmap_atomic’? 13 | kunmap_atomic(addr, KM_USER0); | ^~~~~~~~~~~~~ | kmap_atomic In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/kobject.h:23, from ./include/linux/energy_model.h:7, from ./include/linux/device.h:16, from ./include/drm/drm_print.h:32, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h:6:20: error: redefinition of ‘list_bulk_move_tail’ 6 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/list.h:240:20: note: previous definition of ‘list_bulk_move_tail’ was here 240 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/scatterlist.h:9, from ./include/linux/dma-mapping.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_dma_mapping.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:7, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/scatterlist.h:9, from ./include/linux/dma-mapping.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_dma_mapping.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:7, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from ./include/drm/drm_mm.h:43, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/fs.h:15, from ./include/linux/seq_file.h:11, from ./include/drm/drm_print.h:31, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/scatterlist.h:9, from ./include/linux/dma-mapping.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_dma_mapping.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:7, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/fs.h:15, from ./include/linux/seq_file.h:11, from ./include/drm/drm_print.h:31, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/scatterlist.h:9, from ./include/linux/dma-mapping.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_dma_mapping.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:7, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/fs.h:15, from ./include/linux/seq_file.h:11, from ./include/drm/drm_print.h:31, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/scatterlist.h:9, from ./include/linux/dma-mapping.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_dma_mapping.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:7, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/fs.h:15, from ./include/linux/seq_file.h:11, from ./include/drm/drm_print.h:31, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/fs.h:15, from ./include/linux/seq_file.h:11, from ./include/drm/drm_print.h:31, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/scatterlist.h:9, from ./include/linux/dma-mapping.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_dma_mapping.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:7, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/fs.h:15, from ./include/linux/seq_file.h:11, from ./include/drm/drm_print.h:31, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/dm_services_types.h:29, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/include/dm_pp_interface.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu.h:64, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/include/kcl/kcl_amdgpu.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:17, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/os_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/os_types.h:58:10: fatal error: asm/i387.h: No such file or directory 58 | #include | ^~~~~~~~~~~~ cc1: some warnings being treated as errors compilation terminated. /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_vm.c: In function ‘ttm_bo_vm_fault_idle’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_vm.c:78:24: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’? 78 | up_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ | mmap_base /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_vm.c: In function ‘amdttm_bo_vm_reserve’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_vm.c:158:25: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’? 158 | up_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ | mmap_base /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_vm.c: In function ‘amdttm_bo_vm_fault_reserved’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_vm.c:206:44: error: ‘struct vm_fault’ has no member named ‘virtual_address’ 206 | unsigned long address = (unsigned long)vmf->virtual_address; | ^~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_vm.c: At top level: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/rename_symbol.h:43:25: error: initialization of ‘vm_fault_t (*)(struct vm_fault *)’ {aka ‘unsigned int (*)(struct vm_fault *)’} from incompatible pointer type ‘vm_fault_t (*)(struct vm_fault *)’ {aka ‘int (*)(struct vm_fault *)’} [-Werror=incompatible-pointer-types] 43 | #define ttm_bo_vm_fault amdttm_bo_vm_fault //EXPORT_SYMBOL(ttm_bo_vm_fault); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_vm.c:473:11: note: in expansion of macro ‘ttm_bo_vm_fault’ 473 | .fault = ttm_bo_vm_fault, | ^~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/rename_symbol.h:43:25: note: (near initialization for ‘ttm_bo_vm_ops.fault’) 43 | #define ttm_bo_vm_fault amdttm_bo_vm_fault //EXPORT_SYMBOL(ttm_bo_vm_fault); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_vm.c:473:11: note: in expansion of macro ‘ttm_bo_vm_fault’ 473 | .fault = ttm_bo_vm_fault, | ^~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/fs.h:15, from ./include/linux/seq_file.h:11, from ./include/drm/drm_print.h:31, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu_drv.o] Error 1 In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/scatterlist.h:9, from ./include/linux/dma-mapping.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_dma_mapping.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:7, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** Waiting for unfinished jobs.... In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/fs.h:15, from ./include/linux/seq_file.h:11, from ./include/drm/drm_print.h:31, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h: In function ‘_kcl_drm_vma_node_verify_access’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:43:45: error: dereferencing pointer to incomplete type ‘struct drm_file’ 43 | return drm_vma_node_verify_access(node, tag->filp); | ^~ make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_execbuf_util.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cc1: some warnings being treated as errors cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_util.o] Error 1 cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_module.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_vm.o] Error 1 cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo.o] Error 1 cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_page_alloc.o] Error 1 cc1: some warnings being treated as errors In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler/sched_main.o] Error 1 make[1]: *** [scripts/Makefile.build:524: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/scheduler] Error 2 In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h: In function ‘_kcl_drm_vma_node_verify_access’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:43:45: error: dereferencing pointer to incomplete type ‘struct drm_file’ 43 | return drm_vma_node_verify_access(node, tag->filp); | ^~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_memory.o] Error 1 In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_tt.o] Error 1 In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:137:20: error: redefinition of ‘dma_fence_set_error’ 137 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:545:20: note: previous definition of ‘dma_fence_set_error’ was here 545 | static inline void dma_fence_set_error(struct dma_fence *fence, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: In function ‘dma_fence_set_error’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:143:7: error: ‘struct dma_fence’ has no member named ‘status’ 143 | fence->status = error; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:160:33: error: static declaration of ‘dma_fence_get_stub’ follows non-static declaration 160 | static inline struct dma_fence *dma_fence_get_stub(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_reservation_backport.h:7, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/linux/dma-resv.h:40, from ./include/drm/drm_gem.h:38, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/linux/dma-fence.h:589:19: note: previous declaration of ‘dma_fence_get_stub’ was here 589 | struct dma_fence *dma_fence_get_stub(void); | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: error: ‘KM_USER0’ undeclared (first use in this function) 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:9: error: too many arguments to function ‘kmap_atomic’ 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~~~~ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:180:21: note: declared here 180 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kunmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:30: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 13 | kunmap_atomic(addr, KM_USER0); | ^ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:215: note: macro "kunmap_atomic" defined here 215 | #define kunmap_atomic(__addr) \ | In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:2: error: ‘kunmap_atomic’ undeclared (first use in this function); did you mean ‘kmap_atomic’? 13 | kunmap_atomic(addr, KM_USER0); | ^~~~~~~~~~~~~ | kmap_atomic In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/kobject.h:23, from ./include/linux/energy_model.h:7, from ./include/linux/device.h:16, from ./include/drm/drm_print.h:32, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h:6:20: error: redefinition of ‘list_bulk_move_tail’ 6 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/list.h:240:20: note: previous definition of ‘list_bulk_move_tail’ was here 240 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/drm/drm_mm.h:43, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/scatterlist.h:9, from ./include/linux/dma-mapping.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_dma_mapping.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:7, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/fs.h:15, from ./include/linux/seq_file.h:11, from ./include/drm/drm_print.h:31, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c: In function ‘ttm_bo_man_get_node’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:60:7: error: variable ‘sflags’ has initializer but incomplete type 60 | enum drm_mm_search_flags sflags = DRM_MM_SEARCH_BEST; | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from ./include/drm/drm_gem.h:40, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:60:36: error: ‘DRM_MM_SEARCH_BEST’ undeclared (first use in this function); did you mean ‘DRM_MM_INSERT_BEST’? 60 | enum drm_mm_search_flags sflags = DRM_MM_SEARCH_BEST; | ^~~~~~~~~~~~~~~~~~ | DRM_MM_INSERT_BEST /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:60:27: error: storage size of ‘sflags’ isn’t known 60 | enum drm_mm_search_flags sflags = DRM_MM_SEARCH_BEST; | ^~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:61:7: error: variable ‘aflags’ has initializer but incomplete type 61 | enum drm_mm_allocator_flags aflags = DRM_MM_CREATE_DEFAULT; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:8:21: error: redefinition of ‘drm_debug_enabled’ 8 | static inline bool drm_debug_enabled(unsigned int category) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from ./include/drm/drm_gem.h:40, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_print.h:322:20: note: previous definition of ‘drm_debug_enabled’ was here 322 | static inline bool drm_debug_enabled(enum drm_debug_category category) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: error: ‘KM_USER0’ undeclared (first use in this function) 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:9: error: too many arguments to function ‘kmap_atomic’ 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~~~~ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:180:21: note: declared here 180 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kunmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:30: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 13 | kunmap_atomic(addr, KM_USER0); | ^ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:215: note: macro "kunmap_atomic" defined here 215 | #define kunmap_atomic(__addr) \ | In file included from ./include/linux/rcupdate.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h: In function ‘drm_debug_enabled’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:10:18: error: ‘drm_debug’ undeclared (first use in this function); did you mean ‘pr_debug’? 10 | return unlikely(drm_debug & category); | ^~~~~~~~~ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:10:18: note: each undeclared identifier is reported only once for each function it appears in 10 | return unlikely(drm_debug & category); | ^~~~~~~~~ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fs.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fs.h:11:20: error: static declaration of ‘compat_ptr_ioctl’ follows non-static declaration 11 | static inline long compat_ptr_ioctl(struct file *file, unsigned int cmd, | ^~~~~~~~~~~~~~~~ In file included from ./include/linux/huge_mm.h:8, from ./include/linux/mm.h:726, from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/fs.h:1954:13: note: previous declaration of ‘compat_ptr_ioctl’ was here 1954 | extern long compat_ptr_ioctl(struct file *file, unsigned int cmd, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/idr.h:15, from ./include/linux/kernfs.h:13, from ./include/linux/sysfs.h:16, from ./include/linux/kobject.h:20, from ./include/linux/of.h:17, from ./include/linux/irqdomain.h:35, from ./include/linux/acpi.h:13, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:2: error: ‘kunmap_atomic’ undeclared (first use in this function); did you mean ‘kmap_atomic’? 13 | kunmap_atomic(addr, KM_USER0); | ^~~~~~~~~~~~~ | kmap_atomic In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/kobject.h:23, from ./include/linux/energy_model.h:7, from ./include/linux/device.h:16, from ./include/drm/drm_print.h:32, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h:6:20: error: redefinition of ‘list_bulk_move_tail’ 6 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/list.h:240:20: note: previous definition of ‘list_bulk_move_tail’ was here 240 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/drm/drm_mm.h:43, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/io.h:13, from ./include/acpi/acpi_io.h:5, from ./include/linux/acpi.h:35, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/idr.h:15, from ./include/linux/kernfs.h:13, from ./include/linux/sysfs.h:16, from ./include/linux/kobject.h:20, from ./include/linux/of.h:17, from ./include/linux/irqdomain.h:35, from ./include/linux/acpi.h:13, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:16, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/dma-fence.h:20, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:16, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:8, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/scatterlist.h:9, from ./include/linux/dma-mapping.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_dma_mapping.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:7, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:61:39: error: ‘DRM_MM_CREATE_DEFAULT’ undeclared (first use in this function); did you mean ‘DRM_MODE_TYPE_DEFAULT’? 61 | enum drm_mm_allocator_flags aflags = DRM_MM_CREATE_DEFAULT; | ^~~~~~~~~~~~~~~~~~~~~ | DRM_MODE_TYPE_DEFAULT /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:61:30: error: storage size of ‘aflags’ isn’t known 61 | enum drm_mm_allocator_flags aflags = DRM_MM_CREATE_DEFAULT; | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/fs.h:15, from ./include/linux/seq_file.h:11, from ./include/drm/drm_print.h:31, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: error: ‘KM_USER0’ undeclared (first use in this function) 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:27: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:9:9: error: too many arguments to function ‘kmap_atomic’ 9 | return kmap_atomic(page, KM_USER0); | ^~~~~~~~~~~ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:180:21: note: declared here 180 | static inline void *kmap_atomic(struct page *page) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h: In function ‘_kcl_kunmap_atomic’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:30: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1 13 | kunmap_atomic(addr, KM_USER0); | ^ In file included from ./include/linux/highmem.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : ./include/linux/highmem-internal.h:215: note: macro "kunmap_atomic" defined here 215 | #define kunmap_atomic(__addr) \ | In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_highmem_backport.h:13:2: error: ‘kunmap_atomic’ undeclared (first use in this function); did you mean ‘kmap_atomic’? 13 | kunmap_atomic(addr, KM_USER0); | ^~~~~~~~~~~~~ | kmap_atomic In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/kobject.h:23, from ./include/linux/energy_model.h:7, from ./include/linux/device.h:16, from ./include/drm/drm_print.h:32, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:12, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_list.h:6:20: error: redefinition of ‘list_bulk_move_tail’ 6 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/list.h:240:20: note: previous definition of ‘list_bulk_move_tail’ was here 240 | static inline void list_bulk_move_tail(struct list_head *head, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/dm_services_types.h:29, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/include/dm_pp_interface.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu.h:64, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/include/kcl/kcl_amdgpu.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:17, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/os_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/os_types.h:58:10: fatal error: asm/i387.h: No such file or directory 58 | #include | ^~~~~~~~~~~~ cc1: some warnings being treated as errors compilation terminated. In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from ./include/linux/rbtree.h:22, from ./include/drm/drm_mm.h:41, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/drm/drm_mm.h:43, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu_device.o] Error 1 cc1: some warnings being treated as errors In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_agp_backend.o] Error 1 In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/scatterlist.h:9, from ./include/linux/dma-mapping.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_dma_mapping.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:7, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/fs.h:15, from ./include/linux/seq_file.h:11, from ./include/drm/drm_print.h:31, from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_vma_manager.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_vma_manager_backport.h:8, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/backport/backport.h:6, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:173:1: error: static declaration of ‘drm_crtc_from_index’ follows non-static declaration 173 | drm_crtc_from_index(struct drm_device *dev, int idx) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_crtc.h:1284:18: note: previous declaration of ‘drm_crtc_from_index’ was here 1284 | struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx); | ^~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:78:12: error: ‘DRM_MM_SEARCH_BELOW’ undeclared (first use in this function); did you mean ‘DRM_MM_INSERT_LOW’? 78 | sflags = DRM_MM_SEARCH_BELOW; | ^~~~~~~~~~~~~~~~~~~ | DRM_MM_INSERT_LOW cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_page_alloc_dma.o] Error 1 In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:79:12: error: ‘DRM_MM_CREATE_TOP’ undeclared (first use in this function) 79 | aflags = DRM_MM_CREATE_TOP; | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_gem_object_put_unlocked’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_unlocked /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:225:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 225 | return drm_gem_object_unreference_unlocked(obj); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:223:1: note: declared here 223 | drm_gem_object_put_unlocked(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:239:1: error: static declaration of ‘__drm_atomic_helper_connector_reset’ follows non-static declaration 239 | __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:34, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_atomic_state_helper.h:70:6: note: previous declaration of ‘__drm_atomic_helper_connector_reset’ was here 70 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:287:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 287 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:322:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’) 322 | return state->crtcs[drm_crtc_index(crtc)]->state; | ^~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:344:20: error: static declaration of ‘drm_dev_get’ follows non-static declaration 344 | static inline void drm_dev_get(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_drv.h:553:6: note: previous declaration of ‘drm_dev_get’ was here 553 | void drm_dev_get(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from ./include/drm/drm_gem.h:40, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_get’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:346:2: error: implicit declaration of function ‘drm_dev_ref’; did you mean ‘drm_dev_get’? [-Werror=implicit-function-declaration] 346 | drm_dev_ref(dev); | ^~~~~~~~~~~ | drm_dev_get /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: error: static declaration of ‘drm_dev_put’ follows non-static declaration 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_drv_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_drv.h:554:6: note: previous declaration of ‘drm_dev_put’ was here 554 | void drm_dev_put(struct drm_device *dev); | ^~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_dev_put’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: implicit declaration of function ‘drm_dev_unref’; did you mean ‘drm_dev_enter’? [-Werror=implicit-function-declaration] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~ | drm_dev_enter /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:351:9: error: ‘return’ with a value, in function returning void [-Werror=return-type] 351 | return drm_dev_unref(dev); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:349:20: note: declared here 349 | static inline void drm_dev_put(struct drm_device *dev) | ^~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:365:34: error: redefinition of ‘drm_debug_printer’ 365 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from ./include/drm/drm_gem.h:40, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_print.h:227:34: note: previous definition of ‘drm_debug_printer’ was here 227 | static inline struct drm_printer drm_debug_printer(const char *prefix) | ^~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:441:1: error: static declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ follows non-static declaration 441 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_atomic_helper.h:74:1: note: previous declaration of ‘drm_atomic_helper_update_legacy_modeset_state’ was here 74 | drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:89:8: error: implicit declaration of function ‘drm_mm_insert_node_in_range_generic’; did you mean ‘drm_mm_insert_node_in_range’? [-Werror=implicit-function-declaration] 89 | ret = drm_mm_insert_node_in_range_generic(mm, node, mem->num_pages, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_mm_insert_node_in_range /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:61:30: warning: unused variable ‘aflags’ [-Wunused-variable] 61 | enum drm_mm_allocator_flags aflags = DRM_MM_CREATE_DEFAULT; | ^~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:60:27: warning: unused variable ‘sflags’ [-Wunused-variable] 60 | enum drm_mm_search_flags sflags = DRM_MM_SEARCH_BEST; | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:8:21: error: redefinition of ‘drm_debug_enabled’ 8 | static inline bool drm_debug_enabled(unsigned int category) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from ./include/drm/drm_gem.h:40, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_print.h:322:20: note: previous definition of ‘drm_debug_enabled’ was here 322 | static inline bool drm_debug_enabled(enum drm_debug_category category) | ^~~~~~~~~~~~~~~~~ In file included from ./include/linux/rcupdate.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h: In function ‘drm_debug_enabled’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:10:18: error: ‘drm_debug’ undeclared (first use in this function); did you mean ‘pr_debug’? 10 | return unlikely(drm_debug & category); | ^~~~~~~~~ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:10:18: note: each undeclared identifier is reported only once for each function it appears in 10 | return unlikely(drm_debug & category); | ^~~~~~~~~ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fs.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fs.h:11:20: error: static declaration of ‘compat_ptr_ioctl’ follows non-static declaration 11 | static inline long compat_ptr_ioctl(struct file *file, unsigned int cmd, | ^~~~~~~~~~~~~~~~ In file included from ./include/linux/huge_mm.h:8, from ./include/linux/mm.h:726, from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/fs.h:1954:13: note: previous declaration of ‘compat_ptr_ioctl’ was here 1954 | extern long compat_ptr_ioctl(struct file *file, unsigned int cmd, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: In function ‘drm_crtc_accurate_vblank_count’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:452:9: error: implicit declaration of function ‘drm_accurate_vblank_count’; did you mean ‘drm_crtc_accurate_vblank_count’? [-Werror=implicit-function-declaration] 452 | return drm_accurate_vblank_count(crtc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | drm_crtc_accurate_vblank_count /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:466:20: error: static declaration of ‘drm_mode_is_420_only’ follows non-static declaration 466 | static inline bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_modes.h:439:6: note: previous declaration of ‘drm_mode_is_420_only’ was here 439 | bool drm_mode_is_420_only(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:471:20: error: static declaration of ‘drm_mode_is_420_also’ follows non-static declaration 471 | static inline bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:40, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_modes.h:441:6: note: previous declaration of ‘drm_mode_is_420_also’ was here 441 | bool drm_mode_is_420_also(const struct drm_display_info *display, | ^~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_crtc_init_with_planes’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:65:9: error: too few arguments to function ‘drm_crtc_init_with_planes’ 65 | return drm_crtc_init_with_planes(dev, crtc, primary, cursor, funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_crtc.h:1218:5: note: declared here 1218 | int drm_crtc_init_with_planes(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:84:28: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ 84 | formats, format_count, type); | ^~~~ | | | enum drm_plane_type In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_plane.h:761:25: note: expected ‘const uint64_t *’ {aka ‘const long long unsigned int *’} but argument is of type ‘enum drm_plane_type’ 761 | const uint64_t *format_modifiers, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:83:9: error: too few arguments to function ‘drm_universal_plane_init’ 83 | return drm_universal_plane_init(dev, plane, possible_crtcs, funcs, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_crtc.h:45, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_plane.h:755:5: note: declared here 755 | int drm_universal_plane_init(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:95:8: error: redefinition of ‘struct drm_format_name_buf’ 95 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:16, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_fourcc.h:142:8: note: originally defined here 142 | struct drm_format_name_buf { | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h: In function ‘_kcl_drm_gem_object_lookup’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:42: error: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [-Werror=incompatible-pointer-types] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ~~~~~~~~~~~^~~~~ | | | struct drm_device * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:49: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [-Wint-conversion] 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~ | | | struct drm_file * In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: expected ‘u32’ {aka ‘unsigned int’} but argument is of type ‘struct drm_file *’ 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:161:9: error: too many arguments to function ‘drm_gem_object_lookup’ 161 | return drm_gem_object_lookup(filp->minor->dev, filp, handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_gem.h:405:24: note: declared here 405 | struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/idr.h:15, from ./include/linux/kernfs.h:13, from ./include/linux/sysfs.h:16, from ./include/linux/kobject.h:20, from ./include/linux/of.h:17, from ./include/linux/irqdomain.h:35, from ./include/linux/acpi.h:13, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:13, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:8:21: error: redefinition of ‘drm_debug_enabled’ 8 | static inline bool drm_debug_enabled(unsigned int category) | ^~~~~~~~~~~~~~~~~ In file included from ./include/drm/drm_mm.h:49, from ./include/drm/drm_vma_manager.h:26, from ./include/drm/drm_gem.h:40, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:11, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/drm/drm_print.h:322:20: note: previous definition of ‘drm_debug_enabled’ was here 322 | static inline bool drm_debug_enabled(enum drm_debug_category category) | ^~~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c: In function ‘ttm_bo_man_debug’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.c:170:2: error: implicit declaration of function ‘drm_mm_debug_table’; did you mean ‘drm_debug_enabled’? [-Werror=implicit-function-declaration] 170 | drm_mm_debug_table(&rman->mm, prefix); | ^~~~~~~~~~~~~~~~~~ | drm_debug_enabled In file included from ./include/linux/rcupdate.h:24, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h: In function ‘drm_debug_enabled’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:10:18: error: ‘drm_debug’ undeclared (first use in this function); did you mean ‘pr_debug’? 10 | return unlikely(drm_debug & category); | ^~~~~~~~~ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_print.h:10:18: note: each undeclared identifier is reported only once for each function it appears in 10 | return unlikely(drm_debug & category); | ^~~~~~~~~ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:14, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fs.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fs.h:11:20: error: static declaration of ‘compat_ptr_ioctl’ follows non-static declaration 11 | static inline long compat_ptr_ioctl(struct file *file, unsigned int cmd, | ^~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ In file included from ./include/linux/huge_mm.h:8, from ./include/linux/mm.h:726, from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/fs.h:1954:13: note: previous declaration of ‘compat_ptr_ioctl’ was here 1954 | extern long compat_ptr_ioctl(struct file *file, unsigned int cmd, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:10:3: error: conflicting types for ‘pfn_t’ 10 | } pfn_t; | ^~~~~ In file included from ./include/asm-generic/memory_model.h:5, from ./arch/x86/include/asm/page.h:76, from ./arch/x86/include/asm/thread_info.h:12, from ./include/linux/thread_info.h:59, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/rcupdate.h:27, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/pfn.h:15:3: note: previous declaration of ‘pfn_t’ was here 15 | } pfn_t; | ^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:33:13: error: conflicting types for ‘vm_fault_t’ 33 | typedef int vm_fault_t; | ^~~~~~~~~~ In file included from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/idr.h:15, from ./include/linux/kernfs.h:13, from ./include/linux/sysfs.h:16, from ./include/linux/kobject.h:20, from ./include/linux/of.h:17, from ./include/linux/irqdomain.h:35, from ./include/linux/acpi.h:13, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm_types.h:702:32: note: previous declaration of ‘vm_fault_t’ was here 702 | typedef __bitwise unsigned int vm_fault_t; | ^~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:35:26: error: conflicting types for ‘vmf_insert_mixed’ 35 | static inline vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2800:12: note: previous declaration of ‘vmf_insert_mixed’ was here 2800 | vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/io.h:13, from ./include/acpi/acpi_io.h:5, from ./include/linux/acpi.h:35, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/idr.h:15, from ./include/linux/kernfs.h:13, from ./include/linux/sysfs.h:16, from ./include/linux/kobject.h:20, from ./include/linux/of.h:17, from ./include/linux/irqdomain.h:35, from ./include/linux/acpi.h:13, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:16, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/dma-fence.h:20, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:16, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_mixed’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:41:8: error: implicit declaration of function ‘vm_insert_mixed’; did you mean ‘vmf_insert_mixed’? [-Werror=implicit-function-declaration] 41 | err = vm_insert_mixed(vma, addr, pfn_t_to_pfn(pfn)); | ^~~~~~~~~~~~~~~ | vmf_insert_mixed /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:53:26: error: conflicting types for ‘vmf_insert_pfn’ 53 | static inline vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2796:12: note: previous declaration of ‘vmf_insert_pfn’ was here 2796 | vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.o] Error 1 make[1]: *** [scripts/Makefile.build:524: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm] Error 2 In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:14, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h: In function ‘vmf_insert_pfn’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_types.h:56:13: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration] 56 | int err = vm_insert_pfn(vma, addr, pfn); | ^~~~~~~~~~~~~ | vmf_insert_pfn In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:21:21: error: redefinition of ‘kvmalloc’ 21 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:802:21: note: previous definition of ‘kvmalloc’ was here 802 | static inline void *kvmalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kvmalloc’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:26:9: error: too many arguments to function ‘__vmalloc’ 26 | out = __vmalloc(size, flags, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/io.h:13, from ./include/acpi/acpi_io.h:5, from ./include/linux/acpi.h:35, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/vmalloc.h:131:14: note: declared here 131 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:31:21: error: redefinition of ‘kvzalloc’ 31 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:810:21: note: previous definition of ‘kvzalloc’ was here 810 | static inline void *kvzalloc(size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:44:20: error: static declaration of ‘kvfree’ follows non-static declaration 44 | static inline void kvfree(const void *addr) | ^~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:830:13: note: previous declaration of ‘kvfree’ was here 830 | extern void kvfree(const void *addr); | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:64:21: error: redefinition of ‘kvmalloc_array’ 64 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:815:21: note: previous definition of ‘kvmalloc_array’ was here 815 | static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags) | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:77:21: error: redefinition of ‘kvcalloc’ 77 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:825:21: note: previous definition of ‘kvcalloc’ was here 825 | static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) | ^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:84:20: error: redefinition of ‘mmgrab’ 84 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:34:20: note: previous definition of ‘mmgrab’ was here 34 | static inline void mmgrab(struct mm_struct *mm) | ^~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:95:28: error: redefinition of ‘memalloc_nofs_save’ 95 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:246:28: note: previous definition of ‘memalloc_nofs_save’ was here 246 | static inline unsigned int memalloc_nofs_save(void) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:100:20: error: redefinition of ‘memalloc_nofs_restore’ 100 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_sched_mm_h.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : ./include/linux/sched/mm.h:261:20: note: previous definition of ‘memalloc_nofs_restore’ was here 261 | static inline void memalloc_nofs_restore(unsigned int flags) | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: In function ‘kcl_get_user_pages’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:24: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~ | | | struct task_struct * In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:29: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~ | | | struct mm_struct * In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:40: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~ | | | long unsigned int In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1842:46: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 1842 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:136:4: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 136 | write, force, pages, vmas); | ^~~~~ | | | int In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1843:32: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’ 1843 | struct vm_area_struct **vmas); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:135:9: error: too many arguments to function ‘get_user_pages’ 135 | return get_user_pages(tsk, mm, start, nr_pages, | ^~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:1841:6: note: declared here 1841 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:141:29: error: redefinition of ‘zone_managed_pages’ 141 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from ./include/linux/gfp.h:6, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:19, from ./include/linux/idr.h:15, from ./include/linux/kernfs.h:13, from ./include/linux/sysfs.h:16, from ./include/linux/kobject.h:20, from ./include/linux/of.h:17, from ./include/linux/irqdomain.h:35, from ./include/linux/acpi.h:13, from ./include/linux/i2c.h:13, from ./include/drm/drm_crtc.h:28, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mmzone.h:642:29: note: previous definition of ‘zone_managed_pages’ was here 642 | static inline unsigned long zone_managed_pages(struct zone *zone) | ^~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:157:12: error: conflicting types for ‘vmf_insert_mixed_prot’ 157 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2802:12: note: previous declaration of ‘vmf_insert_mixed_prot’ was here 2802 | vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:15, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_mm.h:168:12: error: conflicting types for ‘vmf_insert_pfn_prot’ 168 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/kallsyms.h:12, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:29, from ./include/linux/kgdb.h:19, from ./include/linux/fb.h:5, from ./include/drm/drm_crtc.h:31, from ./include/drm/drm_atomic_helper.h:31, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_drm_backport.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:11, from : ./include/linux/mm.h:2798:12: note: previous declaration of ‘vmf_insert_pfn_prot’ was here 2798 | vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:16, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:7:28: error: redefinition of ‘kref_read’ 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from ./include/linux/dma-fence.h:20, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:10, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/linux/kref.h:34:28: note: previous definition of ‘kref_read’ was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:16, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h: In function ‘kref_read’: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_kref.h:9:21: error: passing argument 1 of ‘atomic_read’ from incompatible pointer type [-Werror=incompatible-pointer-types] 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~~~~~ | | | const refcount_t * {aka const struct refcount_struct *} In file included from ./include/linux/atomic.h:82, from ./include/linux/rcupdate.h:25, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_rcupdate.h:4, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/include/kcl/kcl_fence_backport.h:3, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:10, from : ./include/asm-generic/atomic-instrumented.h:25:29: note: expected ‘const atomic_t *’ {aka ‘const struct *’} but argument is of type ‘const refcount_t *’ {aka ‘const struct refcount_struct *’} 25 | atomic_read(const atomic_t *v) | ~~~~~~~~~~~~~~~~^ In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/dm_services_types.h:29, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/include/dm_pp_interface.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu.h:64, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/include/kcl/kcl_amdgpu.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:17, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/os_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/os_types.h:58:10: fatal error: asm/i387.h: No such file or directory 58 | #include | ^~~~~~~~~~~~ cc1: some warnings being treated as errors compilation terminated. make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu_kms.o] Error 1 In file included from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/dm_services_types.h:29, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/include/dm_pp_interface.h:26, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu.h:64, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/include/kcl/kcl_amdgpu.h:5, from /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/backport/backport.h:17, from : /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/os_types.h: At top level: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/display/dc/os_types.h:58:10: fatal error: asm/i387.h: No such file or directory 58 | #include | ^~~~~~~~~~~~ cc1: some warnings being treated as errors compilation terminated. make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu/amdgpu_atombios.o] Error 1 make[1]: *** [scripts/Makefile.build:524: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdgpu] Error 2 make: *** [Makefile:1879: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build] Error 2 make: Leaving directory '/usr/src/linux-headers-5.13.0-27-generic'