Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 26 lines 525 B view raw
1https://github.com/torvalds/linux/commit/5f60d5f6bbc12e782fac78110b0ee62698f3b576 2--- 3 veikk_vdev.c | 6 ++++++ 4 1 file changed, 6 insertions(+) 5 6diff --git a/veikk_vdev.c b/veikk_vdev.c 7index 9d0b49f..83e9efa 100644 8--- a/veikk_vdev.c 9+++ b/veikk_vdev.c 10@@ -6,7 +6,13 @@ 11 * - Set up the module parameters 12 */ 13 14+#include <linux/version.h> 15+ 16+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0) 17 #include <asm/unaligned.h> 18+#else 19+#include <linux/unaligned.h> 20+#endif 21 #include <linux/module.h> 22 #include "veikk.h" 23 24-- 252.49.0 26