I added #if statements to check against kernel version in a few places, because certain functions had arguments removed in newer kernel versions. Also, I made CROSS_COMPILE in the makefile default to empty and made the KERNELDIR variable default to /lib/modules/KERNEL VERSION/build to make it so you can build with just make provided you have the correct linux headers package installed.
I added
#if
statements to check against kernel version in a few places, because certain functions had arguments removed in newer kernel versions. Also, I madeCROSS_COMPILE
in the makefile default to empty and made theKERNELDIR
variable default to/lib/modules/KERNEL VERSION/build
to make it so you can build with justmake
provided you have the correct linux headers package installed.