Skip to content

Commit

Permalink
[module] fix build on linux 6.13
Browse files Browse the repository at this point in the history
  • Loading branch information
VMFortress committed Feb 3, 2025
1 parent e25492a commit cb7e962
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module/dkms.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGE_NAME="kvmfr"
PACKAGE_VERSION="0.0.11"
PACKAGE_VERSION="0.0.12"
BUILT_MODULE_NAME[0]="${PACKAGE_NAME}"
MAKE[0]="make KDIR=${kernel_source_dir}"
CLEAN="make KDIR=${kernel_source_dir} clean"
Expand Down
4 changes: 3 additions & 1 deletion module/kvmfr.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,9 @@ MODULE_DEVICE_TABLE(pci, kvmfr_pci_ids);
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Geoffrey McRae <[email protected]>");
MODULE_AUTHOR("Guanzhong Chen <[email protected]>");
MODULE_VERSION("0.0.9");
MODULE_VERSION("0.0.12");
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,16,0)
MODULE_IMPORT_NS(DMA_BUF);
#elif LINUX_VERSION_CODE >= KERNEL_VERISON(6,13,0)
MODULE_IMPORT_NS("DMA_BUF");
#endif

0 comments on commit cb7e962

Please sign in to comment.