mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
The patch below contains a script that removes C preprocessor tests on the LINUX_VERSION_CODE macro, depending on the kernel version that was passed as an argument to that script. Furthermore, the generate-kernel-patch script has been modified such that its output is filtered by the specialize-patch script. This eliminates another class of checkpatch errors. Note: due to the way the specialize-patch script is implemented, #if 0 and #if 1 statements are also processed. The patch below has been verified as follows: - Checked that checkpatch does no longer complain about LINUX_VERSION_CODE on the generated patch. - Checked that the generated kernel patch applies cleanly to the 2.6.25.4 kernel. - Checked that the patched kernel compiles and installs cleanly, and that after reboot it was possible to load the iscsi-scst and ib_srpt kernel modules. I will wait with sending more patches until this and the previous two patches have been reviewed and/or applied. Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@384 d57e44dd-8a1f-0410-8b47-8ef2f437770f