2 Commits

Author SHA1 Message Date
mfrischknecht
556de55719 Merge 54ffd6a012 into 084881c6e9 2024-11-27 07:09:41 +01:00
mfrischknecht
54ffd6a012 Make new include path conditional
…so the module builds for both kernels below 6.12 and above. Thanks, @VoodaGod!

Co-authored-by: Jason Rensburger <l33tjas.0n@gmail.com>
2024-11-27 07:09:37 +01:00

View File

@@ -29,7 +29,11 @@
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)
#include <asm/unaligned.h>
#else
#include <linux/unaligned.h>
#endif
//#include <drm/drm_util.h>
//#include <drm/drm_print.h>