Compare commits

...

2 Commits

Author SHA1 Message Date
mfrischknecht
556de55719
Merge 54ffd6a012e7567b0288bc5fcc3678b545bd5aec into 084881c6e9e11bdadaf05798e669568848e698a3 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>