error: implicit declaration of function ‘pud_large’
ashterenli opened this issue · comments
make[2]: Entering directory '/dev/shm/ape/1716881881/xpmem-2.7.3/kernel'
make -C /lib/modules/6.9.1-2.el9.elrepo.x86_64/build/ M=/dev/shm/ape/1716881881/xpmem-2.7.3/kernel
make[3]: Entering directory '/usr/src/kernels/6.9.1-2.el9.elrepo.x86_64'
CC [M] /dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_main.o
/dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_main.c:404:1: warning: no previous prototype for ‘xpmem_init’ [-Wmissing-prototypes]
404 | xpmem_init(void)
| ^~~~~~~~~~
/dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_main.c:492:1: warning: no previous prototype for ‘xpmem_exit’ [-Wmissing-prototypes]
492 | xpmem_exit(void)
| ^~~~~~~~~~
CC [M] /dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_make.o
CC [M] /dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_get.o
CC [M] /dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_attach.o
CC [M] /dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_pfn.o
/dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_pfn.c: In function ‘xpmem_vaddr_to_pte_offset’:
/dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_pfn.c:51:24: error: implicit declaration of function ‘pud_large’; did you mean ‘pud_page’? [-Werror=implicit-function-declaration]
51 | #define pud_is_huge(p) pud_large(p)
| ^~~~~~~~~
/dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_pfn.c:151:18: note: in expansion of macro ‘pud_is_huge’
151 | else if (pud_is_huge(*pud)) {
| ^~~~~~~~~~~
/dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_pfn.c:50:24: error: implicit declaration of function ‘pmd_large’; did you mean ‘pmd_page’? [-Werror=implicit-function-declaration]
50 | #define pmd_is_huge(p) pmd_large(p)
| ^~~~~~~~~
/dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_pfn.c:161:18: note: in expansion of macro ‘pmd_is_huge’
161 | else if (pmd_is_huge(*pmd)) {
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
make[5]: *** [scripts/Makefile.build:244: /dev/shm/ape/1716881881/xpmem-2.7.3/kernel/xpmem_pfn.o] Error 1
Please advise
This should be addressed by #52.