- single KERNEL_VERSION(a,b,c) macro in platform.h
- rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day
This commit is contained in:
parent
e3c150bc67
commit
e2e56c7c41
8 changed files with 27 additions and 21 deletions
|
@ -38,7 +38,7 @@ static inline void filename2modname(char *modname, const char *afterslash)
|
|||
|
||||
#if ENABLE_FEATURE_2_4_MODULES
|
||||
int kr_chk = 1;
|
||||
if (get_kernel_revision() <= 2*65536+6*256)
|
||||
if (get_linux_version_code() <= KERNEL_VERSION(2,6,0))
|
||||
kr_chk = 0;
|
||||
#else
|
||||
#define kr_chk 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue