This PR adds a macro to check for kernel version, and if greater than or equal to 5.6.0, uses proc_ops instead of file_operations as the latter has been deprecated.
Additionally I moved all variable instantiation before assignment to get rid of the C90 warnings from the compiler.
I put both of these in one PR since fixing the compiler warnings was trivial, hope that's OK.
This PR adds a macro to check for kernel version, and if greater than or equal to 5.6.0, uses proc_ops instead of file_operations as the latter has been deprecated. Additionally I moved all variable instantiation before assignment to get rid of the C90 warnings from the compiler. I put both of these in one PR since fixing the compiler warnings was trivial, hope that's OK.