On Wednesday 20 June 2007 14:36:10 Michael Menge wrote:
> Hi,
>
> something is still missing. After patching lustre-1.6.0.1 with
>
> 2.6.21-sysctl.patch
> export_truncate_page.diff
> patchless-2.6.21-rhel5.diff
>
[...]
> /tmp/lustre-1.6.0.1/lnet/lnet/router.c: In function `kpr_upcall':
> /tmp/lustre-1.6.0.1/lnet/lnet/router.c:115: error: `INIT_WORK'
> undeclared (first use in this function)
> /tmp/lustre-1.6.0.1/lnet/lnet/router.c:115: error: (Each undeclared
> identifier is reported only once
> /tmp/lustre-1.6.0.1/lnet/lnet/router.c:115: error: for each function
> it appears in.)
[...]
See attachement.
>
> which other patches do i need?
Probably several ;)
You may fetch a working repository for linux-2.6.20 from
http://www.pci.uni-heidelberg.de/tc/usr/bernd/downloads/lustre/1.6/
Untar it, you may then find the patches in .hg/patches.
If my tests go fine, I will upload a new ql-release for linux-2.6.21 in about
2h and a release with 2.6.22 support tomorrow (the #idef's KERNEL_VERSION are
not yet in the patches for 2.6.22).
Please note: Our releases and patches presently only test for the kernel
version, so if you are using a redhat kernel that backports features from
vanilla kernels these simple tests will fail.
--
Bernd Schubert
Q-Leap Networks GmbH
diff -r cbe872af733d lnet/include/libcfs/linux/kp30.h
--- a/lnet/include/libcfs/linux/kp30.h Thu May 24 13:49:37 2007 +0200
+++ b/lnet/include/libcfs/linux/kp30.h Thu May 24 16:25:54 2007 +0200
@@ -72,10 +72,19 @@ static inline void our_cond_resched(void
#else
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20))
#define prepare_work(wq,cb,cbdata) \
do { \
INIT_WORK((wq), (void *)(cb), (void *)(cbdata)); \
} while (0)
+
+#else
+#define prepare_work(wq,cb,cbdata) \
+do { \
+ INIT_WORK((wq), (void *)(cb)); \
+} while (0)
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20) */
+
#define wait_on_page wait_on_page_locked
#define our_recalc_sigpending(current) recalc_sigpending()
#define strtok(a,b) strpbrk(a, b)
_______________________________________________
Lustre-discuss mailing list
[email protected]
https://mail.clusterfs.com/mailman/listinfo/lustre-discuss