From 9951d5c9d0ac2391181026d31951ab4d48cae6d5 Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Tue, 30 Nov 1999 20:49:45 +0000 Subject: [PATCH] A few files not committed for some reason in the previous run git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@641 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/include/compat.h | 3 +++ mkpatch/mkpatch.pl | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/kernel/include/compat.h b/kernel/include/compat.h index c9569908..3521d902 100644 --- a/kernel/include/compat.h +++ b/kernel/include/compat.h @@ -43,6 +43,9 @@ #define MODULE_PARM_DESC(no,description) #endif #endif /* def MODULE */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) +#define THIS_MODULE NULL +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) #define EXPORT_SYMBOL(noexport) diff --git a/mkpatch/mkpatch.pl b/mkpatch/mkpatch.pl index 3cf4f47d..1e3a4fbf 100755 --- a/mkpatch/mkpatch.pl +++ b/mkpatch/mkpatch.pl @@ -740,6 +740,15 @@ sub main EOF + if (`grep THIS_MODULE "$package_root/$package_file"`) { + print OUTPUT << 'EOF'; +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) +/* This is safe, because we won't use it for any kernels below 2.3.27 */ +#define THIS_MODULE NULL +#endif + +EOF + } if (`grep KERNEL_VERSION "$package_root/$package_file"`) { print OUTPUT << 'EOF'; #include