As part of my current project, I am trying to compile some proprietary device drivers (originally compiled successfully for Redhat6 kernel version 2.6.32-504.el6.x86_64 using the vendor supplied Makefile which invokes gcc), on Redhat8. The kernel version that I am using is 4.18.0-240.15.1.el8_3.x86_64.
The compilation results in a bunch of errors in system header files such as <linux/printk.h>, <linux/kernel.h> et al.
I do not wish to flood this post with specific errors, but rather what I am trying to figure out is why is it that I am seeing the compilation errors in the kernel header files with an updated kernel version for the same driver code, which could be compiled successfully with an older kernel version as stated above?
Any thoughts would be highly appreciated.