X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=yportenv.h;h=ae2c5b6ecfe133b92554fecd0c204f0bf40dafad;hb=840ce61cdedfb6ef8ebe4707f1697423a01fa0f1;hp=097b2a6756bfcc820f78a0f8e00b37f0ce70ca35;hpb=e8cfe05cf0d057f6978c37943e51b17bb14664e3;p=yaffs2.git diff --git a/yportenv.h b/yportenv.h index 097b2a6..ae2c5b6 100644 --- a/yportenv.h +++ b/yportenv.h @@ -51,6 +51,7 @@ #define YCHAR char #define YUCHAR unsigned char #define _Y(x) x +#define yaffs_strcat(a,b) strcat(a,b) #define yaffs_strcpy(a,b) strcpy(a,b) #define yaffs_strncpy(a,b,c) strncpy(a,b,c) #define yaffs_strncmp(a,b,c) strncmp(a,b,c) @@ -64,7 +65,7 @@ #define YAFFS_LOSTNFOUND_PREFIX "obj" /* #define YPRINTF(x) printk x */ -#define YMALLOC(x) kmalloc(x,GFP_KERNEL) +#define YMALLOC(x) kmalloc(x,GFP_NOFS) #define YFREE(x) kfree(x) #define YMALLOC_ALT(x) vmalloc(x) #define YFREE_ALT(x) vfree(x) @@ -89,6 +90,7 @@ #define TENDSTR "\n" #define TSTR(x) KERN_WARNING x +#define TCONT(x) x #define TOUT(p) printk p #define yaffs_trace(mask, fmt, args...) \ @@ -124,6 +126,7 @@ #define YCHAR char #define YUCHAR unsigned char #define _Y(x) x +#define yaffs_strcat(a,b) strcat(a,b) #define yaffs_strcpy(a,b) strcpy(a,b) #define yaffs_strncpy(a,b,c) strncpy(a,b,c) #define yaffs_strlen(s) strlen(s)