[OpenAFS-devel] MODVERSIONS patch

Michael Welsh Duggan md5i@cs.cmu.edu
23 Jan 2001 15:37:45 -0500


--=-=-=

I run a kernel with versioned symbols, and after a while, I got tired
of errors like the following:

"depmod: *** Unresolved symbols in /lib/modules/2.4.0/fs/openafs.o",

so I created the following patch.  I am not much of a kernel hacker at
this point, so there might be a better way to do this, but it seems to
have worked for me.  Something similar should probably be done for
param.i386_linux22.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline

--- /usr/local/src/openafs-1.0.2.2001.01.21/src/config/param.i386_linux24.h    Mon Nov  6 13:55:50 2000
+++ param.i386_linux24.h        Tue Jan 23 13:57:49 2001
@@ -52,6 +52,11 @@
 #define AFS_GLOBAL_SUNLOCK
 #endif
 
+#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
+#define MODVERSIONS
+#include <linux/modversions.h>
+#endif
+
 #endif /* __KERNEL__  && !DUMP_KERNEL*/
 
 #ifdef KERNEL

--=-=-=

-- 
Michael Duggan
(md5i@cs.cmu.edu)

--=-=-=--