Make log
đ§Š Syntax:
[aapo@aapo-fedora ~]$ sudo cat /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/make.log
DKMS make.log for amdgpu-5.18.13-1510348.el8 for kernel 6.6.12-100.fc38.x86_64 (x86_64)
Tue Jan 23 03:27:57 PM EET 2024
make: Entering directory '/usr/src/kernels/6.6.12-100.fc38.x86_64'
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/drm_gem_ttm_helper.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/scheduler/sched_main.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_tt.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/main.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/scheduler/sched_fence.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_bo.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/symbols.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/scheduler/sched_entity.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_bo_util.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_bo_vm.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_common.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_drv.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_module.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_kernel_params.o
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/kasan-checks.h:5,
from ./include/asm-generic/rwonce.h:26,
from ./arch/x86/include/generated/asm/rwonce.h:1,
from ./include/linux/compiler.h:246,
from ./include/linux/export.h:5,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:56,
from ./include/linux/kref.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_kref.h:15,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:6,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:18:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:9:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/kasan-checks.h:5,
from ./include/asm-generic/rwonce.h:26,
from ./arch/x86/include/generated/asm/rwonce.h:1,
from ./include/linux/compiler.h:246,
from ./include/linux/export.h:5,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:56,
from ./include/linux/kref.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_kref.h:15,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:6,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:18:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:9:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/uapi/linux/sched.h:5,
from ./include/linux/sched.h:10,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_kthread_backport.h:4,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/scheduler/backport/backport.h:7,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/kasan-checks.h:5,
from ./include/asm-generic/rwonce.h:26,
from ./arch/x86/include/generated/asm/rwonce.h:1,
from ./include/linux/compiler.h:246,
from ./include/linux/export.h:5,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:56,
from ./include/linux/kref.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_kref.h:15,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:6,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/uapi/linux/sched.h:5,
from ./include/linux/sched.h:10,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_kthread_backport.h:4,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/scheduler/backport/backport.h:7,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:18:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:9:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/uapi/linux/sched.h:5,
from ./include/linux/sched.h:10,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_kthread_backport.h:4,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/scheduler/backport/backport.h:7,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/kasan-checks.h:5,
from ./include/asm-generic/rwonce.h:26,
from ./arch/x86/include/generated/asm/rwonce.h:1,
from ./include/linux/compiler.h:246,
from ./include/linux/export.h:5,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:56,
from ./include/linux/kref.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_kref.h:15,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:6,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:18:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:9:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/scheduler/sched_fence.o] Error 1
make[3]: *** Waiting for unfinished jobs....
./include/linux/mm.h:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_execbuf_util.o
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_bo_vm.c: In function âamdttm_bo_mmap_objâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_bo_vm.c:601:23: error: assignment of read-only member âvm_flagsâ
601 | vma->vm_flags |= VM_PFNMAP;
| ^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_bo_vm.c:602:23: error: assignment of read-only member âvm_flagsâ
602 | vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP;
| ^~
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/scheduler/sched_entity.o] Error 1
cc1: some warnings being treated as errors
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_range_manager.o
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_bo.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/kasan-checks.h:5,
from ./include/asm-generic/rwonce.h:26,
from ./arch/x86/include/generated/asm/rwonce.h:1,
from ./include/linux/compiler.h:246,
from ./include/linux/export.h:5,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:56,
from ./include/linux/kref.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_kref.h:15,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:6,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_device.o
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:18:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:9:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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),
| ^~~~~~~~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_bo_vm.o] Error 1
./include/linux/mm.h:2419:6: note: declared here
2419 | 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:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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),
| ^~~~~~~~~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/dma-buf/dma-resv.o
./include/linux/mm.h:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/kasan-checks.h:5,
from ./include/asm-generic/rwonce.h:26,
from ./arch/x86/include/generated/asm/rwonce.h:1,
from ./include/linux/compiler.h:246,
from ./include/linux/export.h:5,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:56,
from ./include/linux/kref.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_kref.h:15,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:6,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:18:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:9:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_backlight.o
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_bo_util.o] Error 1
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_kms.o
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_module.o] Error 1
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_ioctl.o
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/drm_gem_ttm_helper.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_tt.o] Error 1
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_atombios.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_kthread.o
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/scheduler/sched_main.o] Error 1
make[2]: *** [scripts/Makefile.build:480: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/scheduler] Error 2
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_io.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/atombios_crtc.o
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:38,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:14:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:20,
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/5.18.13-1510348.el8/build/include/kcl/kcl_moduleparam.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:7:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/limits.h:6,
from ./include/linux/kernel.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:6:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h: At top level:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:25,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:63:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_fb.h:76:44: warning: âstruct apertures_structâ declared inside parameter list will not be visible outside of this definition or declaration
76 | extern bool is_firmware_framebuffer(struct apertures_struct *a);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h: In function â_kcl_drm_helper_mode_fill_fb_structâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:34:11: error: invalid use of undefined type âstruct drm_framebufferâ
34 | fb->dev = dev;
| ^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:35:9: error: implicit declaration of function âdrm_helper_mode_fill_fb_structâ; did you mean â_kcl_drm_helper_mode_fill_fb_structâ? [-Werror=implicit-function-declaration]
35 | drm_helper_mode_fill_fb_struct(fb, mode_cmd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| _kcl_drm_helper_mode_fill_fb_struct
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:84:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h: At top level:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field âbaseâ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function âkcl_drm_gem_fb_set_objâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type âstruct drm_framebufferâ
12 | fb->obj[index] = obj;
| ^~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/kasan-checks.h:5,
from ./include/asm-generic/rwonce.h:26,
from ./arch/x86/include/generated/asm/rwonce.h:1,
from ./include/linux/compiler.h:246,
from ./include/linux/export.h:5,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:56,
from ./include/linux/kref.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_kref.h:15,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:6,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:18:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:9:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_perf_event.o
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_execbuf_util.o] Error 1
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_seq_file.o
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/kasan-checks.h:5,
from ./include/asm-generic/rwonce.h:26,
from ./arch/x86/include/generated/asm/rwonce.h:1,
from ./include/linux/compiler.h:246,
from ./include/linux/export.h:5,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:56,
from ./include/linux/kref.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_kref.h:15,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:6,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:18:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/backport/backport.h:9:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm/ttm_range_manager.o] Error 1
make[2]: *** [scripts/Makefile.build:480: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/ttm] Error 2
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_connectors.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_suspend.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/atom.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_pci.o
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_drv.c: At top level:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_drv.c:2893:31: error: âdrm_gem_prime_handle_to_fdâ undeclared here (not in a function)
2893 | .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:38,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:14:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:20,
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/5.18.13-1510348.el8/build/include/kcl/kcl_moduleparam.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:7:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_fence.o
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/limits.h:6,
from ./include/linux/kernel.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:6:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h: At top level:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:38,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:14:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:20,
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/5.18.13-1510348.el8/build/include/kcl/kcl_moduleparam.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:7:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:25,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:63:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_fb.h:76:44: warning: âstruct apertures_structâ declared inside parameter list will not be visible outside of this definition or declaration
76 | extern bool is_firmware_framebuffer(struct apertures_struct *a);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h: In function â_kcl_drm_helper_mode_fill_fb_structâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:34:11: error: invalid use of undefined type âstruct drm_framebufferâ
34 | fb->dev = dev;
| ^~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/limits.h:6,
from ./include/linux/kernel.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:6:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h: At top level:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:25,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:63:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_fb.h:76:44: warning: âstruct apertures_structâ declared inside parameter list will not be visible outside of this definition or declaration
76 | extern bool is_firmware_framebuffer(struct apertures_struct *a);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h: In function â_kcl_drm_helper_mode_fill_fb_structâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:34:11: error: invalid use of undefined type âstruct drm_framebufferâ
34 | fb->dev = dev;
| ^~
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_mm.o
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:38,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:14:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:20,
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/5.18.13-1510348.el8/build/include/kcl/kcl_moduleparam.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:7:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_drv.c:2894:31: error: âdrm_gem_prime_fd_to_handleâ undeclared here (not in a function)
2894 | .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_drv.c:2918:10: error: âstruct drm_driverâ has no member named âgem_prime_mmapâ; did you mean âgem_prime_importâ?
2918 | .gem_prime_mmap = amdkcl_drm_gem_prime_mmap,
| ^~~~~~~~~~~~~~
| gem_prime_import
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_drv.c:2918:27: error: initialization of âstruct drm_gem_object * (*)(struct drm_device *, struct dma_buf_attachment *, struct sg_table *)â from incompatible pointer type âint (*)(struct drm_gem_object *, struct vm_area_struct *)â [-Werror=incompatible-pointer-types]
2918 | .gem_prime_mmap = amdkcl_drm_gem_prime_mmap,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_drv.c:2918:27: note: (near initialization for âamdgpu_kms_driver.gem_prime_import_sg_tableâ)
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:35:9: error: implicit declaration of function âdrm_helper_mode_fill_fb_structâ; did you mean â_kcl_drm_helper_mode_fill_fb_structâ? [-Werror=implicit-function-declaration]
35 | drm_helper_mode_fill_fb_struct(fb, mode_cmd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| _kcl_drm_helper_mode_fill_fb_struct
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:38,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:14:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:20,
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/5.18.13-1510348.el8/build/include/kcl/kcl_moduleparam.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:7:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/limits.h:6,
from ./include/linux/kernel.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:6:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h: At top level:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_drv.o] Error 1
make[3]: *** Waiting for unfinished jobs....
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_memory.o
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:25,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:63:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_fb.h:76:44: warning: âstruct apertures_structâ declared inside parameter list will not be visible outside of this definition or declaration
76 | extern bool is_firmware_framebuffer(struct apertures_struct *a);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h: In function â_kcl_drm_helper_mode_fill_fb_structâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:34:11: error: invalid use of undefined type âstruct drm_framebufferâ
34 | fb->dev = dev;
| ^~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/limits.h:6,
from ./include/linux/kernel.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:6:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h: At top level:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:35:9: error: implicit declaration of function âdrm_helper_mode_fill_fb_structâ; did you mean â_kcl_drm_helper_mode_fill_fb_structâ? [-Werror=implicit-function-declaration]
35 | drm_helper_mode_fill_fb_struct(fb, mode_cmd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| _kcl_drm_helper_mode_fill_fb_struct
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:84:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h: At top level:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field âbaseâ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:25,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:63:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_fb.h:76:44: warning: âstruct apertures_structâ declared inside parameter list will not be visible outside of this definition or declaration
76 | extern bool is_firmware_framebuffer(struct apertures_struct *a);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h: In function â_kcl_drm_helper_mode_fill_fb_structâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:34:11: error: invalid use of undefined type âstruct drm_framebufferâ
34 | fb->dev = dev;
| ^~
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_sched.o
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:84:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h: At top level:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field âbaseâ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function âkcl_drm_gem_fb_set_objâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type âstruct drm_framebufferâ
12 | fb->obj[index] = obj;
| ^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:35:9: error: implicit declaration of function âdrm_helper_mode_fill_fb_structâ; did you mean â_kcl_drm_helper_mode_fill_fb_structâ? [-Werror=implicit-function-declaration]
35 | drm_helper_mode_fill_fb_struct(fb, mode_cmd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| _kcl_drm_helper_mode_fill_fb_struct
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function âkcl_drm_gem_fb_set_objâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type âstruct drm_framebufferâ
12 | fb->obj[index] = obj;
| ^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:35:9: error: implicit declaration of function âdrm_helper_mode_fill_fb_structâ; did you mean â_kcl_drm_helper_mode_fill_fb_structâ? [-Werror=implicit-function-declaration]
35 | drm_helper_mode_fill_fb_struct(fb, mode_cmd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| _kcl_drm_helper_mode_fill_fb_struct
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:84:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h: At top level:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field âbaseâ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
cc1: some warnings being treated as errors
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:84:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h: At top level:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field âbaseâ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function âkcl_drm_gem_fb_set_objâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type âstruct drm_framebufferâ
12 | fb->obj[index] = obj;
| ^~
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_kms.o] Error 1
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_fence.o
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function âkcl_drm_gem_fb_set_objâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type âstruct drm_framebufferâ
12 | fb->obj[index] = obj;
| ^~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/atombios_crtc.o] Error 1
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_fence_array.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_reservation.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_drm_cache.o
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_atombios.o] Error 1
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_drm_auth.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_drm_fb.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_drm_print.o
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:38,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:14:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:20,
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/5.18.13-1510348.el8/build/include/kcl/kcl_moduleparam.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:7:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_device.c: In function âamdgpu_device_initâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_device.c:3758:9: error: implicit declaration of function âpci_enable_pcie_error_reportingâ [-Werror=implicit-function-declaration]
3758 | pci_enable_pcie_error_reporting(adev->pdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/limits.h:6,
from ./include/linux/kernel.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:6:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h: At top level:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:25,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:63:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_fb.h:76:44: warning: âstruct apertures_structâ declared inside parameter list will not be visible outside of this definition or declaration
76 | extern bool is_firmware_framebuffer(struct apertures_struct *a);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h: In function â_kcl_drm_helper_mode_fill_fb_structâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:34:11: error: invalid use of undefined type âstruct drm_framebufferâ
34 | fb->dev = dev;
| ^~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:38,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:14:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:20,
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/5.18.13-1510348.el8/build/include/kcl/kcl_moduleparam.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:7:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_memory.c: In function âvmf_insert_pfn_pmd_protâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/amd/amdkcl/kcl_memory.c: In function âvmf_insert_pfn_pud_protâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_memory.c:105:18: error: assignment of member âvmaâ in read-only object
105 | cvmf.vma = &cvma;
| ^
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/limits.h:6,
from ./include/linux/kernel.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:6:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h: At top level:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_memory.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:25,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:63:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_fb.h:76:44: warning: âstruct apertures_structâ declared inside parameter list will not be visible outside of this definition or declaration
76 | extern bool is_firmware_framebuffer(struct apertures_struct *a);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h: In function â_kcl_drm_helper_mode_fill_fb_structâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:34:11: error: invalid use of undefined type âstruct drm_framebufferâ
34 | fb->dev = dev;
| ^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:35:9: error: implicit declaration of function âdrm_helper_mode_fill_fb_structâ; did you mean â_kcl_drm_helper_mode_fill_fb_structâ? [-Werror=implicit-function-declaration]
35 | drm_helper_mode_fill_fb_struct(fb, mode_cmd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| _kcl_drm_helper_mode_fill_fb_struct
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_device.o] Error 1
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:84:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h: At top level:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field âbaseâ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:38,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_mm_backport.h: In function âkcl_get_user_pages_remoteâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:14:
./include/linux/mm.h:2419:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2420:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2420 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2421:66: note: expected âstruct page **â but argument is of type âintâ
2421 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2422:33: note: expected âint *â but argument is of type âintâ
2422 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2419:6: note: declared here
2419 | 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:20,
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/5.18.13-1510348.el8/build/include/kcl/kcl_moduleparam.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:7:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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/5.18.13-1510348.el8/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:2452:35: note: expected âlong unsigned intâ but argument is of type âstruct task_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:56: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2453:59: note: expected âstruct page **â but argument is of type âlong unsigned intâ
2453 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/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:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:35:9: error: implicit declaration of function âdrm_helper_mode_fill_fb_structâ; did you mean â_kcl_drm_helper_mode_fill_fb_structâ? [-Werror=implicit-function-declaration]
35 | drm_helper_mode_fill_fb_struct(fb, mode_cmd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| _kcl_drm_helper_mode_fill_fb_struct
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function âkcl_drm_gem_fb_set_objâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type âstruct drm_framebufferâ
12 | fb->obj[index] = obj;
| ^~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/limits.h:6,
from ./include/linux/kernel.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:6:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h: At top level:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:25,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:63:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_fb.h:76:44: warning: âstruct apertures_structâ declared inside parameter list will not be visible outside of this definition or declaration
76 | extern bool is_firmware_framebuffer(struct apertures_struct *a);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h: In function â_kcl_drm_helper_mode_fill_fb_structâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:34:11: error: invalid use of undefined type âstruct drm_framebufferâ
34 | fb->dev = dev;
| ^~
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:84:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h: At top level:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field âbaseâ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
cc1: some warnings being treated as errors
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function âkcl_drm_gem_fb_set_objâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type âstruct drm_framebufferâ
12 | fb->obj[index] = obj;
| ^~
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_connectors.o] Error 1
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/backport/kcl_drm_fb.h:35:9: error: implicit declaration of function âdrm_helper_mode_fill_fb_structâ; did you mean â_kcl_drm_helper_mode_fill_fb_structâ? [-Werror=implicit-function-declaration]
35 | drm_helper_mode_fill_fb_struct(fb, mode_cmd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| _kcl_drm_helper_mode_fill_fb_struct
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:84:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h: At top level:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field âbaseâ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/limits.h:6,
from ./include/linux/kernel.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_common.h:5,
from <command-line>:
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro âdrm_dev_dbgâ
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
./include/linux/stddef.h:8:14: error: expected declaration specifiers or â...â before â(â token
8 | #define NULL ((void *)0)
| ^
./include/drm/drm_print.h:410:23: note: in expansion of macro âNULLâ
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_drm_print.c:153:6: note: in expansion of macro âdrm_dev_dbgâ
153 | void drm_dev_dbg(const struct device *dev, int category,
| ^~~~~~~~~~~
In file included from ./include/linux/linkage.h:7,
from ./include/linux/kernel.h:17:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_drm_print.c:175:15: error: âdrm_dev_dbgâ undeclared here (not in a function); did you mean âdrm_dev_putâ?
175 | EXPORT_SYMBOL(drm_dev_dbg);
| ^~~~~~~~~~~
./include/linux/export.h:74:23: note: in definition of macro â__EXPORT_SYMBOLâ
74 | extern typeof(sym) sym; \
| ^~~
./include/linux/export.h:86:41: note: in expansion of macro â_EXPORT_SYMBOLâ
86 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "")
| ^~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_drm_print.c:175:1: note: in expansion of macro âEXPORT_SYMBOLâ
175 | EXPORT_SYMBOL(drm_dev_dbg);
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function âkcl_drm_gem_fb_set_objâ:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type âstruct drm_framebufferâ
12 | fb->obj[index] = obj;
| ^~
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_drm_print.o] Error 1
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/atom.o] Error 1
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu/amdgpu_fence.o] Error 1
make[2]: *** [scripts/Makefile.build:480: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdgpu] Error 2
In file included from /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl/kcl_drm_fb.c:36:
/var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/include/kcl/kcl_drm_fb.h:76:44: warning: âstruct apertures_structâ declared inside parameter list will not be visible outside of this definition or declaration
76 | extern bool is_firmware_framebuffer(struct apertures_struct *a);
| ^~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:480: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build/amd/amdkcl] Error 2
make[1]: *** [/usr/src/kernels/6.6.12-100.fc38.x86_64/Makefile:1931: /var/lib/dkms/amdgpu/5.18.13-1510348.el8/build] Error 2
make: *** [Makefile:246: __sub-make] Error 2
make: Leaving directory '/usr/src/kernels/6.6.12-100.fc38.x86_64'