Skip to content

Commit

Permalink
[module] MODULE_IMPORT_NS now requires a string literal in 6.13
Browse files Browse the repository at this point in the history
This is supported since kernel v5.10, no #if version required.

Fixes: #1155
References: 33def8498fdde180023444b08e12b72a9efed41d
  • Loading branch information
ticpu committed Feb 4, 2025
1 parent e25492a commit 4251a5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ Zenithal <[email protected]> (ZenithalHourlyRate)
Kamplom <[email protected]> (kamplom)
Jacob McNamee <[email protected]> (jacobmcnamee)
Marco Antonio J. Costa <[email protected]> (majcosta)
rs189 <[email protected]> (rs189)
rs189 <[email protected]> (rs189)
Jérôme Poulin <[email protected]> (ticpu)
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: 2 additions & 2 deletions module/kvmfr.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ 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);
MODULE_IMPORT_NS("DMA_BUF");
#endif

0 comments on commit 4251a5c

Please sign in to comment.