ProblemType: Package DKMSBuildLog: DKMS make.log for amdgpu-6.2.4-1697730.22.04 for kernel 6.5.0-15-generic (x86_64) Do 1. Feb 17:50:22 WAT 2024 make: Entering directory '/usr/src/linux-headers-6.5.0-15-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/scheduler/sched_main.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/scheduler/sched_fence.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/scheduler/sched_entity.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdxcp/amdgpu_xcp_drv.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdxcp/./backport/kcl_drm_drv.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/drm_gem_ttm_helper.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_tt.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_bo.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_bo_util.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_bo_vm.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_module.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/main.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_execbuf_util.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_common.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/drm_buddy.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdgpu/amdgpu_drv.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdgpu/amdgpu_device.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_range_manager.o In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:15, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:8: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:79, from ./include/linux/spinlock.h:56, from ./include/linux/mmzone.h:8, from ./include/linux/gfp.h:7, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_kernel.h:6, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:6: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:15, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:8: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:79, from ./include/linux/spinlock.h:56, from ./include/linux/mmzone.h:8, from ./include/linux/gfp.h:7, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_kernel.h:6, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:6: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:15, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:8: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:15, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: In file included from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:79, from ./include/linux/spinlock.h:56, from ./include/linux/mmzone.h:8, from ./include/linux/gfp.h:7, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_kernel.h:6, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:6: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:8: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:79, from ./include/linux/spinlock.h:56, from ./include/linux/mmzone.h:8, from ./include/linux/gfp.h:7, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_kernel.h:6, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:6: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:15, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:8: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:79, from ./include/linux/spinlock.h:56, from ./include/linux/mmzone.h:8, from ./include/linux/gfp.h:7, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_kernel.h:6, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:6: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:15, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:8: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:79, from ./include/linux/spinlock.h:56, from ./include/linux/mmzone.h:8, from ./include/linux/gfp.h:7, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_kernel.h:6, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:6: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:15, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:8: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:79, from ./include/linux/spinlock.h:56, from ./include/linux/mmzone.h:8, from ./include/linux/gfp.h:7, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_kernel.h:6, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:6: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_bo_vm.c: In function ‘amdttm_bo_mmap_obj’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_bo_vm.c:602:23: error: assignment of read-only member ‘vm_flags’ 602 | vma->vm_flags |= VM_PFNMAP; | ^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_bo_vm.c:603:23: error: assignment of read-only member ‘vm_flags’ 603 | vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP; | ^~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_bo_util.o] Error 1 make[3]: *** Waiting for unfinished jobs.... cc1: some warnings being treated as errors CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_kernel_params.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdgpu/amdgpu_kms.o cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/drm_gem_ttm_helper.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cc1: some warnings being treated as errors CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/dma-buf/dma-resv.o make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_execbuf_util.o] Error 1 make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_bo_vm.o] Error 1 CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdgpu/amdgpu_atombios.o cc1: some warnings being treated as errors CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_backlight.o make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_module.o] Error 1 CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_ioctl.o cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_bo.o] Error 1 CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_kthread.o cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_tt.o] Error 1 CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_io.o LD [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdxcp/amdxcp.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_seq_file.o In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:34, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:12: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/nospec-branch.h:15, from ./arch/x86/include/asm/paravirt_types.h:27, from ./arch/x86/include/asm/ptrace.h:97, from ./arch/x86/include/asm/math_emu.h:5, from ./arch/x86/include/asm/processor.h:13, from ./arch/x86/include/asm/timex.h:5, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/stat.h:19, from ./include/linux/module.h:13, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_moduleparam.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:7: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_suspend.o In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:15, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:8: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:79, from ./include/linux/spinlock.h:56, from ./include/linux/mmzone.h:8, from ./include/linux/gfp.h:7, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_kernel.h:6, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/backport/backport.h:6: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm/ttm_range_manager.o] Error 1 make[2]: *** [scripts/Makefile.build:488: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/ttm] Error 2 CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_pci.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_mm.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_memory.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_sched.o cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdgpu/amdgpu_drv.o] Error 1 make[3]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_fence.o In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:34, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:12: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/nospec-branch.h:15, from ./arch/x86/include/asm/paravirt_types.h:27, from ./arch/x86/include/asm/ptrace.h:97, from ./arch/x86/include/asm/math_emu.h:5, from ./arch/x86/include/asm/processor.h:13, from ./arch/x86/include/asm/timex.h:5, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/stat.h:19, from ./include/linux/module.h:13, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_moduleparam.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:7: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_reservation.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_drm_cache.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_drm_fb.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_drm_print.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_drm_crtc.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_drm_connector.o In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:34, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:12: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/nospec-branch.h:15, from ./arch/x86/include/asm/paravirt_types.h:27, from ./arch/x86/include/asm/ptrace.h:97, from ./arch/x86/include/asm/math_emu.h:5, from ./arch/x86/include/asm/processor.h:13, from ./arch/x86/include/asm/timex.h:5, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/stat.h:19, from ./include/linux/module.h:13, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_moduleparam.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:7: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:34, from : /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~ | | | struct task_struct * In file included from ./include/linux/scatterlist.h:8, from ./include/linux/dma-mapping.h:11, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_dma_mapping.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:12: ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’ 2397 | long get_user_pages_remote(struct mm_struct *mm, | ~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~ | | | struct mm_struct * ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2398 | unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’ 2399 | unsigned int gup_flags, struct page **pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion] 37 | !!(gup_flags & FOLL_FORCE), pages, vmas); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’ 2400 | int *locked); | ~~~~~^~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’ 36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~~~~~~~~ ./include/linux/mm.h:2397:6: note: declared here 2397 | long get_user_pages_remote(struct mm_struct *mm, | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/nospec-branch.h:15, from ./arch/x86/include/asm/paravirt_types.h:27, from ./arch/x86/include/asm/ptrace.h:97, from ./arch/x86/include/asm/math_emu.h:5, from ./arch/x86/include/asm/processor.h:13, from ./arch/x86/include/asm/timex.h:5, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/stat.h:19, from ./include/linux/module.h:13, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/kcl_moduleparam.h:5, from /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/backport/backport.h:7: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’: ./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 44 | #define current get_current() | ^~~~~~~~~~~~~ | | | struct task_struct * /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~ ./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), ./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ~~~~~~~~~~~~~~^~~~~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion] 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~ | | | long unsigned int ./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’ 2431 | unsigned int gup_flags, struct page **pages); | ~~~~~~~~~~~~~~^~~~~ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’ 54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE), | ^~~~~~~~~~~~~~ ./include/linux/mm.h:2430:6: note: declared here 2430 | long get_user_pages(unsigned long start, unsigned long nr_pages, | ^~~~~~~~~~~~~~ CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_drm_atomic_helper.o CC [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_device_cgroup.o /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_memory.c: In function ‘vmf_insert_pfn_pmd_prot’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_memory.c:86:18: error: assignment of member ‘vma’ in read-only object 86 | cvmf.vma = &cvma; | ^ /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_memory.c: In function ‘vmf_insert_pfn_pud_prot’: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_memory.c:105:18: error: assignment of member ‘vma’ in read-only object 105 | cvmf.vma = &cvma; | ^ make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl/kcl_memory.o] Error 1 make[3]: *** Waiting for unfinished jobs.... cc1: some warnings being treated as errors cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdgpu/amdgpu_kms.o] Error 1 cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdgpu/amdgpu_atombios.o] Error 1 make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdgpu/amdgpu_device.o] Error 1 make[2]: *** [scripts/Makefile.build:488: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdgpu] Error 2 LD [M] /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/scheduler/amd-sched.o make[2]: *** [scripts/Makefile.build:488: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/amd/amdkcl] Error 2 make[1]: *** [/usr/src/linux-headers-6.5.0-15-generic/Makefile:2037: /var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build] Error 2 make: *** [Makefile:234: __sub-make] Error 2 make: Leaving directory '/usr/src/linux-headers-6.5.0-15-generic' DKMSKernelVersion: 6.5.0-15-generic Date: Thu Feb 1 17:50:25 2024 DuplicateSignature: dkms:amdgpu-dkms:1:6.2.4.50703-1697730.22.04:/var/lib/dkms/amdgpu/6.2.4-1697730.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] Package: amdgpu-dkms 1:6.2.4.50703-1697730.22.04 PackageVersion: 1:6.2.4.50703-1697730.22.04 SourcePackage: amdgpu-dkms Title: amdgpu-dkms 1:6.2.4.50703-1697730.22.04: amdgpu kernel module failed to build