X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_ramem.c;h=21c936f1e309c1a286cd4174a82789caeeeb8caa;hp=da9a2adf14d9b526ab2305c8b5ff9ba1fba7e421;hb=1e8821b8e9b62329d6cc1c59c1edc01c6169c378;hpb=0f3e5663a6c6d1fe5b8c8abc1b44c7221c62f808 diff --git a/yaffs_ramem.c b/yaffs_ramem.c index da9a2ad..21c936f 100644 --- a/yaffs_ramem.c +++ b/yaffs_ramem.c @@ -15,10 +15,12 @@ //yaffs_ramem.c // Since this creates the RAM block at start up it is pretty useless for testing the scanner. -const char *yaffs_ramem_c_version = "$Id: yaffs_ramem.c,v 1.2 2005-07-19 20:41:59 charles Exp $"; +const char *yaffs_ramem_c_version = "$Id: yaffs_ramem.c,v 1.4 2005-07-31 04:08:08 marty Exp $"; #ifndef __KERNEL__ #define CONFIG_YAFFS_RAM_ENABLED +#else +#include #endif #ifdef CONFIG_YAFFS_RAM_ENABLED @@ -98,7 +100,7 @@ static void nandemul_ReallyEraseBlock(int blockNumber) } -int nandemul_CalcNBlocks(void) +static int nandemul_CalcNBlocks(void) { switch(sizeInMB) { @@ -257,7 +259,7 @@ int nandemul_ReadChunkFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *data, ya } -int nandemul_CheckChunkErased(yaffs_Device *dev,int chunkInNAND) +static int nandemul_CheckChunkErased(yaffs_Device *dev,int chunkInNAND) { int blk; int pg;