[PATCH] Re: [OpenAFS-devel] 1.4.1 build problem with 2.6.9 kernel
Derek Atkins
warlord@MIT.EDU
Tue, 18 Apr 2006 13:57:46 -0400
--=-=-=
Here's a patch that gets 1.4.1 to build against a 2.6.9 kernel
on FC3..
-derek
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=modparam.patch
Content-Description: Patch for module_param_array on 2.6.9
--- src/afs/LINUX/osi_probe.c~ 2006-04-07 01:23:11.000000000 -0400
+++ src/afs/LINUX/osi_probe.c 2006-04-18 19:34:06.181372224 -0400
@@ -117,7 +117,7 @@
/* Allow the user to specify sys_call_table addresses */
static unsigned long sys_call_table_addr[4] = { 0,0,0,0 };
-#ifdef module_param_array
+#if defined(module_param_array) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
module_param_array(sys_call_table_addr, long, NULL, 0);
#else
MODULE_PARM(sys_call_table_addr, "1-4l");
@@ -134,7 +134,7 @@
MODULE_PARM_DESC(probe_carefully, "Probe for system call tables carefully");
static int probe_ignore_syscalls[8] = { -1, -1, -1, -1, -1, -1, -1, -1 };
-#ifdef module_param_array
+#if defined(module_param_array) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
module_param_array(probe_ignore_syscalls, int, NULL, 0);
#else
MODULE_PARM(probe_ignore_syscalls, "1-8i");
@@ -161,7 +161,7 @@
MODULE_PARM_DESC(probe_debug, "Debugging level");
static unsigned long probe_debug_addr[4] = { 0,0,0,0 };
-#ifdef module_param_array
+#if defined(module_param_array) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
module_param_array(probe_debug_addr, long, NULL, 0);
#else
MODULE_PARM(probe_debug_addr, "1-4l");
--=-=-=
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available
--=-=-=--