From e2e56c7c4129de7d20df42e8239fd304c81ef29b Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 19 May 2006 11:54:02 +0000 Subject: - single KERNEL_VERSION(a,b,c) macro in platform.h - rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day --- modutils/rmmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modutils') diff --git a/modutils/rmmod.c b/modutils/rmmod.c index 5302ab222..36bea3486 100644 --- a/modutils/rmmod.c +++ b/modutils/rmmod.c @@ -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 -- cgit v1.2.3