diff -Nru xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/changelog xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/changelog --- xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/changelog 2023-06-22 05:35:52.000000000 +0000 +++ xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/changelog 2023-11-28 14:15:36.000000000 +0000 @@ -1,3 +1,10 @@ +xtrx-dkms (0.0.1+git20190320.5ae3a3e-3ubuntu1~22.04.3) jammy; urgency=medium + + * Support Linux 6.5 (LP: #2045039): + debian/patches/0004-Linux-6.4-build-fix.patch + + -- Andrea Righi Tue, 28 Nov 2023 14:15:36 +0000 + xtrx-dkms (0.0.1+git20190320.5ae3a3e-3ubuntu1~22.04.2) jammy; urgency=medium * Support linux 6.2 (LP: #2024635): diff -Nru xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/patches/0004-Linux-6.4-build-fix.patch xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/patches/0004-Linux-6.4-build-fix.patch --- xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/patches/0004-Linux-6.4-build-fix.patch 1970-01-01 00:00:00.000000000 +0000 +++ xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/patches/0004-Linux-6.4-build-fix.patch 2023-11-28 14:15:19.000000000 +0000 @@ -0,0 +1,26 @@ +From 0be94f80bc8c18db5d67f39a0b5df2a60990bc27 Mon Sep 17 00:00:00 2001 +From: Paolo Pisati +Date: Mon, 10 Jul 2023 13:38:43 +0000 +Subject: [PATCH] Linux 6.4 build fix + +Signed-off-by: Paolo Pisati +--- + xtrx.c | 4 ++++ + 1 file changed, 4 insertions(+) + +Index: xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c +=================================================================== +--- xtrx-dkms-0.0.1+git20190320.5ae3a3e.orig/xtrx.c ++++ xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c +@@ -1554,7 +1554,11 @@ static int __init xtrx_init(void) + goto failed_chrdev; + } + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0) + xtrx_class = class_create(THIS_MODULE, CLASS_NAME); ++#else ++ xtrx_class = class_create(CLASS_NAME); ++#endif + if (IS_ERR(xtrx_class)) { + printk(KERN_NOTICE PFX "Unable to register xtrx class\n"); + goto failed_setup_cdev; diff -Nru xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/patches/series xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/patches/series --- xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/patches/series 2023-06-22 05:35:52.000000000 +0000 +++ xtrx-dkms-0.0.1+git20190320.5ae3a3e/debian/patches/series 2023-11-28 14:15:11.000000000 +0000 @@ -2,3 +2,4 @@ 0001-xtrx-fix-PCI-DMA-allow-free-with-kernel-5.18.patch 0002-xtrx.c-fix-build-error-with-kernel-6.1.patch 0003-Linux-6.3-build-fix.patch +0004-Linux-6.4-build-fix.patch