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>
This commit is contained in:
mfrischknecht 2024-11-27 07:09:37 +01:00 committed by GitHub
parent ab1b348480
commit 54ffd6a012
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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>