diff -Nru libvpoll-eventfd-0.1/debian/changelog libvpoll-eventfd-0.1/debian/changelog --- libvpoll-eventfd-0.1/debian/changelog 2023-06-13 09:44:12.000000000 +0000 +++ libvpoll-eventfd-0.1/debian/changelog 2023-11-28 13:59:33.000000000 +0000 @@ -1,3 +1,10 @@ +libvpoll-eventfd (0.1-2ubuntu2) jammy; urgency=medium + + * Support Linux 6.5 (LP: #2045034): + - debian/patches/0002-Linux-6.5-support-class-create.patch + + -- Andrea Righi Tue, 28 Nov 2023 13:59:33 +0000 + libvpoll-eventfd (0.1-2ubuntu1) jammy; urgency=medium * Support Linux 6.2 (LP: #2007534): diff -Nru libvpoll-eventfd-0.1/debian/patches/0002-Linux-6.5-support-class-create.patch libvpoll-eventfd-0.1/debian/patches/0002-Linux-6.5-support-class-create.patch --- libvpoll-eventfd-0.1/debian/patches/0002-Linux-6.5-support-class-create.patch 1970-01-01 00:00:00.000000000 +0000 +++ libvpoll-eventfd-0.1/debian/patches/0002-Linux-6.5-support-class-create.patch 2023-11-28 13:59:26.000000000 +0000 @@ -0,0 +1,28 @@ +From: Andrea Righi +Subject: support new linux 6.5 class_create() ABI +origin: upstream + +--- a/linux_module/vpoll.c 2023-11-28 13:52:54.000000000 +0000 ++++ b/linux_module/vpoll.c 2023-06-18 09:24:20.000000000 +0000 +@@ -107,6 +107,12 @@ static char *vpoll_devnode(const struct + return NULL; + } + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0) ++#define vpoll_class_create() class_create(NAME) ++#else ++#define vpoll_class_create() class_create(THIS_MODULE, NAME) ++#endif ++ + static int myinit(void) + { + int ret; +@@ -114,7 +120,7 @@ static int myinit(void) + + if ((ret = alloc_chrdev_region(&major, 0, 1, NAME)) < 0) + return ret; +- vpoll_class = class_create(THIS_MODULE, NAME); ++ vpoll_class = vpoll_class_create(); + if (IS_ERR(vpoll_class)) { + ret = PTR_ERR(vpoll_class); + goto error_unregister_chrdev_region; diff -Nru libvpoll-eventfd-0.1/debian/patches/series libvpoll-eventfd-0.1/debian/patches/series --- libvpoll-eventfd-0.1/debian/patches/series 2023-06-13 09:44:12.000000000 +0000 +++ libvpoll-eventfd-0.1/debian/patches/series 2023-11-28 13:59:26.000000000 +0000 @@ -1 +1,2 @@ 0001-Linux-6.2-fix-vpoll_devnode-parameter.patch +0002-Linux-6.5-support-class-create.patch