mirror of
https://github.com/gnif/vendor-reset.git
synced 2026-03-28 05:02:44 +01:00
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:
@@ -29,7 +29,11 @@
|
|||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/version.h>
|
#include <linux/version.h>
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)
|
||||||
|
#include <asm/unaligned.h>
|
||||||
|
#else
|
||||||
#include <linux/unaligned.h>
|
#include <linux/unaligned.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
//#include <drm/drm_util.h>
|
//#include <drm/drm_util.h>
|
||||||
//#include <drm/drm_print.h>
|
//#include <drm/drm_print.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user