Here is the deal. I want to write a kernel module which depends on the kernel type (32 or 64 bit).
There are some lines of code which I want to be included in the module if and only if the kernel is 32 bit and some lines of code which should be included iff kernel is 64 bit.
Is there anything like #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) for this case ?
You can check for CONFIG_X86_64 and CONFIG_X86_32 – If the arch is x86. For other architectures there are similiar CONFIG options.