4848#define LINUX_VERSION_CODE KERNEL_VERSION(2,6,35)
4949*/
5050
51- #define UIO_PCI_DMA_VERSION "0.12 .0"
51+ #define UIO_PCI_DMA_VERSION "0.13 .0"
5252#define UIO_PCI_DMA_MINOR "0"
5353
5454#define UIO_PCI_DMA_SUCCESS 0
@@ -325,11 +325,10 @@ BIN_ATTR_MAP_CALLBACK( map_sg );
325325 **/
326326#ifdef RHEL_RELEASE_CODE
327327 #if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION (9 , 6 )
328- #define RHEL_FIX_KERNEL_202505
328+ #define RHEL_RELEASE_9_6
329329 #endif
330330#endif
331331
332-
333332/**
334333 * Kernel 4.6 introduced six-argument get_user_pages()
335334 * https://github.com/torvalds/linux/commit/c12d2da56d0e07d230968ee2305aaa86b93a6832
@@ -341,7 +340,7 @@ BIN_ATTR_MAP_CALLBACK( map_sg );
341340 * Kernel 6.5 removes unused vmas parameter from get_user_pages()
342341 * https://github.com/torvalds/linux/commit/54d020692b342f7bd02d7f5795fb5c401caecfcc
343342 **/
344- #if LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 5 , 0 ) || defined(RHEL_FIX_KERNEL_202505 )
343+ #if LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 5 , 0 ) || defined(RHEL_RELEASE_9_6 )
345344#define PDA_FOURARG_GUP
346345#elif LINUX_VERSION_CODE >= KERNEL_VERSION (4 , 9 , 0 )
347346#define PDA_FIVEARG_GUP
@@ -356,7 +355,7 @@ BIN_ATTR_MAP_CALLBACK( map_sg );
356355 * Kernel 6.8 renames MAX_ORDER to MAX_PAGE_ORDER
357356 * https://github.com/torvalds/linux/commit/5e0a760b44417f7cadd79de2204d6247109558a0
358357 **/
359- #if LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 8 , 0 ) || defined(RHEL_FIX_KERNEL_202505 )
358+ #if LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 8 , 0 ) || defined(RHEL_RELEASE_9_6 )
360359#define PDA_MAX_PAGE_ORDER_RENAMED
361360#elif LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 4 , 0 )
362361#define PDA_MAX_PAGE_ORDER_INCLUSIVE
0 commit comments