@poke
Hello, I wanted to compile assembly 5.26 with outdated drivers 390.132, but an error occurs during compilation.
`>>> batocera-nvidia-driver 390.132 Building
batocera-nvidia-driver 390.132 Building kernel module(s)
PATH=“/home/antidot/batocera.linux/output/x86_64/host/bin:/home/antidot/batocera.linux/output/x86_64/host/sbin:/home/antidot/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin” PKG_CONFIG=“/home/antidot/batocera.linux/output/x86_64/host/bin/pkg-config” PKG_CONFIG_SYSROOT_DIR=“/” PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR=“/home/antidot/batocera.linux/output/x86_64/host/lib/pkgconfig:/home/antidot/batocera.linux/output/x86_64/host/share/pkgconfig” BR_BINARIES_DIR=/home/antidot/batocera.linux/output/x86_64/images KCFLAGS=-Wno-attribute-alias /usr/bin/make -j13 -C /home/antidot/batocera.linux/output/x86_64/build/linux-5.6.7 HOSTCC=“/usr/bin/gcc -O2 -I/home/antidot/batocera.linux/output/x86_64/host/include -L/home/antidot/batocera.linux/output/x86_64/host/lib -Wl,-rpath,/home/antidot/batocera.linux/output/x86_64/host/lib” ARCH=x86_64 INSTALL_MOD_PATH=/home/antidot/batocera.linux/output/x86_64/target CROSS_COMPILE=“/home/antidot/batocera.linux/output/x86_64/host/bin/x86_64-buildroot-linux-gnu-” DEPMOD=/home/antidot/batocera.linux/output/x86_64/host/sbin/depmod INSTALL_MOD_STRIP=1 NV_KERNEL_SOURCES=“/home/antidot/batocera.linux/output/x86_64/build/linux-5.6.7” NV_KERNEL_OUTPUT=“/home/antidot/batocera.linux/output/x86_64/build/linux-5.6.7” NV_KERNEL_MODULES=“nvidia nvidia-modeset nvidia-drm nvidia-uvm” PWD=/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel M=/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel modules
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-frontend.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-instance.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-gpu-numa.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-acpi.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-chrdev.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-cray.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-dma.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-gvi.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-i2c.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-mempool.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-p2p.o
CC [M] /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-mmap.o
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-gpu-numa.c:24:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-instance.c:13:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-frontend.c:13:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-chrdev.c:15:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-acpi.c:15:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-instance.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-instance.o] Error 1
make[3]: *** Ожидание завершения заданий…
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv.c:13:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-mempool.c:15:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-chrdev.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-chrdev.o] Error 1
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-mempool.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-mempool.o] Error 1
cc1: некоторые предупреждения считаются ошибками
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-dma.c:15:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-gpu-numa.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-gpu-numa.o] Error 1
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-frontend.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-frontend.o] Error 1
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-cray.c:15:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-cray.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-cray.o] Error 1
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-p2p.c:15:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-mmap.c:15:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-mmap.c: В функции «nv_encode_caching»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-mmap.c:255:16: предупреждение: этот оператор может провалиться [-Wimplicit-fallthrough=]
255 | if (NV_ALLOW_CACHING(memory_type))
| ^
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-mmap.c:257:9: замечание: здесь
257 | default:
| ~~~
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-acpi.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-acpi.o] Error 1
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-dma.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-dma.o] Error 1
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-gvi.c:15:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-mmap.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-mmap.o] Error 1
In file included from /home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-i2c.c:15:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h: В функции «nv_ioremap_nocache»:
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: ошибка: неявная декларация функции «ioremap_nocache»; имелось в виду «ioremap_cache»? [-Werror=implicit-function-declaration]
556 | void *ptr = ioremap_nocache(phys, size);
| ~~~~~~~~~~~
| ioremap_cache
/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/common/inc/nv-linux.h:556:17: предупреждение: initialization of «void *» from «int» makes pointer from integer without a cast [-Wint-conversion]
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-p2p.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-p2p.o] Error 1
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-gvi.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-gvi.o] Error 1
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-i2c.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv-i2c.o] Error 1
cc1: некоторые предупреждения считаются ошибками
scripts/Makefile.build:267: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv.o’ failed
make[3]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel/nvidia/nv.o] Error 1
Makefile:1683: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel’ failed
make[2]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/kernel] Error 2
package/pkg-generic.mk:268: recipe for target ‘/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/.stamp_built’ failed
make[1]: *** [/home/antidot/batocera.linux/output/x86_64/build/batocera-nvidia-driver-390.132/.stamp_built] Error 2
Makefile:23: recipe for target ‘all’ failed
make: *** [all] Error 2
`
, assembly with 440.82 driver compiles fine…