Re: xfs don't compil in linux-2.5 BK

From: Grzegorz Jaskiewicz (gj@pointblue.com.pl)
Date: Mon May 26 2003 - 17:16:38 EST


On Mon, 2003-05-26 at 20:31, Gregoire Favre wrote:
> Hello,
>
> I don't know if I have fetched the source with BK the right way...
> Anyway the compil ends that way:
>
> CC fs/xfs/xfs_rw.o
> CC fs/xfs/pagebuf/page_buf.o
> In file included from fs/xfs/pagebuf/page_buf.c:65:
> fs/xfs/pagebuf/page_buf_internal.h:46:24: operator '<' has no left
> operand
> make[2]: *** [fs/xfs/pagebuf/page_buf.o] Error 1
> make[1]: *** [fs/xfs] Error 2
> make: *** [fs] Error 2
> 141.112u 14.914s 3:19.78 78.0% 0+0k 0+0io 492771pf+0w
> Exit 2

looks like LINUX_VERSION_CODE is not defined
try this (as 2.5.69 > than 2.5.9)

diff -ur 2/fs/xfs/pagebuf/page_buf_internal.h
1/fs/xfs/pagebuf/page_buf_internal.h
--- 2/fs/xfs/pagebuf/page_buf_internal.h 2003-05-05
00:53:14.000000000 +0100
+++ 1/fs/xfs/pagebuf/page_buf_internal.h 2003-05-26
22:59:27.000000000 +0100
@@ -43,11 +43,6 @@
#define PB_DEFINE_TRACES
#include "page_buf_trace.h"

-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,9)
-#define page_buffers(page) ((page)->buffers)
-#define page_has_buffers(page) ((page)->buffers)
-#endif
-
#ifdef PAGEBUF_LOCK_TRACKING
#define PB_SET_OWNER(pb) (pb->pb_last_holder = current->pid)
#define PB_CLEAR_OWNER(pb) (pb->pb_last_holder = -1)




--
Grzegorz Jaskiewicz <gj@xxxxxxxxxxxxxxxx>
K4 labs

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/