mtd/fs/jffs2/ecos/src jffs2port.h,1.2,1.3

David Woodhouse dwmw2 at infradead.org
Tue Jan 21 13:13:25 EST 2003


Update of /home/cvs/mtd/fs/jffs2/ecos/src
In directory phoenix.infradead.org:/tmp/cvs-serv886/ecos/src

Modified Files:
	jffs2port.h 
Log Message:
More stuff moved into linux compat headers

Index: jffs2port.h
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/ecos/src/jffs2port.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- jffs2port.h	9 Jan 2003 13:53:44 -0000	1.2
+++ jffs2port.h	21 Jan 2003 18:13:22 -0000	1.3
@@ -32,31 +32,9 @@
 #include <pkgconf/fs_jffs2.h>
 #include <linux/types.h>
 #include <linux/list.h>
-
-// ARM related constants
-#define PAGE_SHIFT 0xC
-#define PAGE_SIZE  (0x1 << PAGE_SHIFT)
-#define PAGE_CACHE_SHIFT        PAGE_SHIFT
-#define PAGE_CACHE_SIZE         PAGE_SIZE
-
-//#define BITS_PER_LONG 32
-
+#include <asm/bug.h>
 // Linux types
 #define printf diag_printf
-#define BUG() diag_printf("BUG()\n")
-
-#define min(x,y) (x<y?x:y)
-#define max(x,y) (x<y?y:x)
-#define min_t(t, x,y) ((t)x<(t)y?(t)x:(t)y)
-
-#define PageLocked(pg) 1
-#define Page_Uptodate(pg) 0
-#define UnlockPage(pg) 
-#define PAGE_BUG(pg) BUG()
-#define ClearPageUptodate(pg)
-#define SetPageError(pg)
-#define ClearPageError(pg)
-#define SetPageUptodate(pg)
 
 // Structures used by VFS
 





More information about the linux-mtd-cvs mailing list