Hello everyone,
please i am trying to upgrade my Linux Kernel to 6.10.9 but it keeps on failing due to error when building xtrx-dkms...
HTML Code:
Setting up xtrx-dkms (0.0.1+git20190320.5ae3a3e-4~kali1) ...
Removing old xtrx-0.0.1+git20190320.5ae3a3e-4~kali1 DKMS files...
Module xtrx-0.0.1+git20190320.5ae3a3e-4~kali1 for kernel 5.15.44-Re4son-v8l+ (aarch64).
Before uninstall, this module version was ACTIVE on this kernel.

xtrx.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.44-Re4son-v8l+/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...
Deleting module xtrx-0.0.1+git20190320.5ae3a3e-4~kali1 completely from the DKMS tree.
Loading new xtrx-0.0.1+git20190320.5ae3a3e-4~kali1 DKMS files...
Building for 5.15.44-Re4son-v8l+ 6.10.9-arm64
Building initial module for 5.15.44-Re4son-v8l+
Done.

xtrx.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.15.44-Re4son-v8l+/updates/dkms/
depmod...
Building initial module for 6.10.9-arm64
Error! Bad return status for module build on kernel: 6.10.9-arm64 (aarch64)
Consult /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/make.log for more information.
dpkg: error processing package xtrx-dkms (--configure):
 installed xtrx-dkms package post-installation script subprocess returned error exit status 10
Setting up linux-image-6.10.9-arm64 (6.10.9-1kali1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.10.9-arm64.
Sign command: /lib/modules/6.10.9-arm64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
Building module(s)....(bad exit status: 2)
Failed command:
make -j4 KERNELRELEASE=6.10.9-arm64 -C /lib/modules/6.10.9-arm64/build M=/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build
Error! Bad return status for module build on kernel: 6.10.9-arm64 (aarch64)
Consult /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/make.log for more information.
dkms autoinstall on 6.10.9-arm64/aarch64 failed for xtrx(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.10.9-arm64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.10.9-arm64 (--configure):
 installed linux-image-6.10.9-arm64 package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-headers-6.10.9-arm64:
 linux-headers-6.10.9-arm64 depends on linux-image-6.10.9-arm64 (= 6.10.9-1kali1) | linux-image-6.10.9-arm64-unsigned (= 6.10.9-1kali1); however:
  Package linux-image-6.10.9-arm64 is not configured yet.
  Package linux-image-6.10.9-arm64-unsigned is not installed.

dpkg: error processing package linux-headers-6.10.9-arm64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-arm64:
 linux-headers-arm64 depends on linux-headers-6.10.9-arm64 (= 6.10.9-1kali1); however:
  Package linux-headers-6.10.9-arm64 is not configured yet.

dpkg: error processing package linux-headers-arm64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-arm64:
 linux-image-arm64 depends on linux-image-6.10.9-arm64 (= 6.10.9-1kali1); however:
  Package linux-image-6.10.9-arm64 is not configured yet.

dpkg: error processing package linux-image-arm64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 xtrx-dkms
 linux-image-6.10.9-arm64
 linux-headers-6.10.9-arm64
 linux-headers-arm64
 linux-image-arm64
E: Sub-process /usr/bin/dpkg returned an error code (1)
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/make.log:
HTML Code:
make: Entering directory '/usr/src/linux-headers-6.10.9-arm64'
  CC [M]  /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.o
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:547:27: error: initialization of ?void (*)(struct uart_port *, struct ktermios *, const struct ktermios *)? from incompatible pointer type ?void (*)(struct uart_port *, struct ktermios *, struct ktermios *)? [-Werror=incompatible-pointer-types]
  547 |         .set_termios    = xtrx_uart_set_termios,
      |                           ^~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:547:27: note: (near initialization for ?xtrx_uart_ops.set_termios?)
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c: In function ?xtrx_allocdma?:
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:653:33: error: implicit declaration of function ?pci_alloc_consistent? [-Werror=implicit-function-declaration]
  653 |                 pbufs[i].virt = pci_alloc_consistent(d->pdev, buflen, &pbufs[i].phys);
      |                                 ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:653:31: warning: assignment to ?void *? from ?int? makes pointer from integer without a cast [-Wint-conversion]
  653 |                 pbufs[i].virt = pci_alloc_consistent(d->pdev, buflen, &pbufs[i].phys);
      |                               ^
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:657:33: error: implicit declaration of function ?pci_free_consistent? [-Werror=implicit-function-declaration]
  657 |                                 pci_free_consistent(d->pdev, buflen, pbufs[i].virt, pbufs[i].phys);
      |                                 ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c: In function ?xtrxfd_mmap?:
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:1083:31: error: assignment of read-only member ?vm_flags?
 1083 |                 vma->vm_flags |= VM_LOCKED;
      |                               ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:1098:31: error: assignment of read-only member ?vm_flags?
 1098 |                 vma->vm_flags |= VM_IO;
      |                               ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:1123:31: error: assignment of read-only member ?vm_flags?
 1123 |                 vma->vm_flags |= VM_LOCKED;
      |                               ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c: In function ?xtrx_probe?:
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:1194:13: error: implicit declaration of function ?pci_set_consistent_dma_mask? [-Werror=implicit-function-declaration]
 1194 |         if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/alternative.h:9,
                 from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/lse.h:14,
                 from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/cmpxchg.h:14,
                 from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/atomic.h:16,
                 from /usr/src/linux-headers-6.10.9-common/include/linux/atomic.h:7,
                 from /usr/src/linux-headers-6.10.9-common/include/asm-generic/bitops/atomic.h:5,
                 from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/bitops.h:25,
                 from /usr/src/linux-headers-6.10.9-common/include/linux/bitops.h:63,
                 from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/cache.h:40,
                 from /usr/src/linux-headers-6.10.9-common/include/linux/cache.h:6,
                 from /usr/src/linux-headers-6.10.9-common/include/linux/time.h:5,
                 from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/stat.h:12,
                 from /usr/src/linux-headers-6.10.9-common/include/linux/stat.h:6,
                 from /usr/src/linux-headers-6.10.9-common/include/linux/module.h:13,
                 from /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:22:
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c: In function ?xtrx_init?:
/usr/src/linux-headers-6.10.9-common/include/linux/init.h:180:22: error: passing argument 1 of ?class_create? from incompatible pointer type [-Werror=incompatible-pointer-types]
  180 | #define THIS_MODULE (&__this_module)
      |                     ~^~~~~~~~~~~~~~~
      |                      |
      |                      struct module *
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:1527:35: note: in expansion of macro ?THIS_MODULE?
 1527 |         xtrx_class = class_create(THIS_MODULE, CLASS_NAME);
      |                                   ^~~~~~~~~~~
In file included from /usr/src/linux-headers-6.10.9-common/include/linux/device.h:31,
                 from /usr/src/linux-headers-6.10.9-common/include/linux/pci.h:37,
                 from /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:25:
/usr/src/linux-headers-6.10.9-common/include/linux/device/class.h:228:54: note: expected ?const char *? but argument is of type ?struct module *?
  228 | struct class * __must_check class_create(const char *name);
      |                                          ~~~~~~~~~~~~^~~~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.c:1527:22: error: too many arguments to function ?class_create?
 1527 |         xtrx_class = class_create(THIS_MODULE, CLASS_NAME);
      |                      ^~~~~~~~~~~~
/usr/src/linux-headers-6.10.9-common/include/linux/device/class.h:228:29: note: declared here
  228 | struct class * __must_check class_create(const char *name);
      |                             ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.10.9-common/scripts/Makefile.build:249: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/xtrx.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.10.9-common/Makefile:1959: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build] Error 2
make: *** [/usr/src/linux-headers-6.10.9-common/Makefile:252: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.10.9-arm64'