If kernel/config.h is included in yportenv.h, then yportenv.h must be
authormarty <marty>
Sun, 31 Jul 2005 06:47:12 +0000 (06:47 +0000)
committermarty <marty>
Sun, 31 Jul 2005 06:47:12 +0000 (06:47 +0000)
always included.  Move it outside of ifdef CONFIG_YAFFS_MTD_ENABLED.

added in additional configuration conditionals to shut up gcc about
defined but not used functions in yaffs_fs.c

added in NOTYET around functions that aren't currently used in
yaffs_tagscompat.c to shut up gcc about defined but not used function.

yaffs_fs.c
yaffs_mtdif.c
yaffs_mtdif2.c
yaffs_tagscompat.c

index ca7839136474a7dee097387f6059179415c9e4f5..d5ca95bb1eab40db0d24372f0f371e9e6909f38d 100644 (file)
@@ -30,7 +30,7 @@
  */
 
 
-const char *yaffs_fs_c_version = "$Id: yaffs_fs.c,v 1.18 2005-07-31 04:09:26 marty Exp $";
+const char *yaffs_fs_c_version = "$Id: yaffs_fs.c,v 1.19 2005-07-31 06:47:12 marty Exp $";
 extern const char *yaffs_guts_c_version;
 
 
@@ -1826,6 +1826,7 @@ static int  yaffs_proc_read(
        return buf-page < count ? buf-page : count;
 }
 
+#ifdef CONFIG_YAFFS2_RAM_ENABLED
 static int  yaffs_proc_ram_write(
         char *page,
        char **start,
@@ -1839,8 +1840,7 @@ static int  yaffs_proc_ram_write(
        printk(KERN_DEBUG "yaffs write size %d\n",count);
        return count;
 }
-
-
+#endif
 
 // Stuff to handle installation of file systems
 struct file_system_to_install
index 69d58fb96a5cf41114a6703520e706741eee7655..eeb0d8aff6c382d5ed3447b9b63db76655c12be7 100644 (file)
  *
  */
 
-const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.4 2005-07-31 04:08:08 marty Exp $";
-
-#ifdef CONFIG_YAFFS_MTD_ENABLED
+const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.5 2005-07-31 06:47:12 marty Exp $";
  
 #include "yportenv.h"
 
+#ifdef CONFIG_YAFFS_MTD_ENABLED
+
 #include "yaffs_mtdif.h"
 
 #include "linux/mtd/mtd.h"
index c1554333d89f1016bb116bca5676af06943c4b47..f21b1167ac76d5392caceef0f511c7959df3989e 100644 (file)
 
 // mtd interface for YAFFS2
 
-const char *yaffs_mtdif2_c_version = "$Id: yaffs_mtdif2.c,v 1.3 2005-07-20 18:57:05 charles Exp $";
-
-#ifdef CONFIG_YAFFS_MTD_ENABLED
+const char *yaffs_mtdif2_c_version = "$Id: yaffs_mtdif2.c,v 1.4 2005-07-31 06:47:12 marty Exp $";
  
 #include "yportenv.h"
 
+#ifdef CONFIG_YAFFS_MTD_ENABLED
+
 #include "yaffs_mtdif2.h"
 
 #include "linux/mtd/mtd.h"
index 98b7b0420a89b1d072ab7d163cdcf92ae7161eb1..b9970eda0b82d88a407c02e929309e7f884519ec 100644 (file)
@@ -10,7 +10,7 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  *
- * $Id: yaffs_tagscompat.c,v 1.2 2005-03-16 04:00:36 charles Exp $
+ * $Id: yaffs_tagscompat.c,v 1.3 2005-07-31 06:47:12 marty Exp $
  */
 
 #include "yaffs_guts.h"
 #include "yaffs_ecc.h"
 
 static void yaffs_HandleReadDataError(yaffs_Device *dev,int chunkInNAND);
+#ifdef NOTYET
 static void yaffs_CheckWrittenBlock(yaffs_Device *dev,int chunkInNAND);
 static void yaffs_HandleWriteChunkOk(yaffs_Device *dev,int chunkInNAND,const __u8 *data, const yaffs_Spare *spare);
 static void yaffs_HandleUpdateChunk(yaffs_Device *dev,int chunkInNAND, const yaffs_Spare *spare);
 static void yaffs_HandleWriteChunkError(yaffs_Device *dev,int chunkInNAND);
-
+#endif
 
 
 static const char yaffs_countBitsTable[256] =
@@ -305,8 +306,7 @@ static int yaffs_ReadChunkFromNAND(struct yaffs_DeviceStruct *dev,
        return retVal;
 }
 
-
-
+#ifdef NOTYET
 static int yaffs_CheckChunkErased(struct yaffs_DeviceStruct *dev,int chunkInNAND)
 {
 
@@ -331,7 +331,7 @@ static int yaffs_CheckChunkErased(struct yaffs_DeviceStruct *dev,int chunkInNAND
        return YAFFS_OK;
 
 }
-
+#endif
 
 #if 0
 int yaffs_EraseBlockInNAND(struct yaffs_DeviceStruct *dev,int blockInNAND)
@@ -480,6 +480,7 @@ static void yaffs_HandleReadDataError(yaffs_Device *dev,int chunkInNAND)
 }
 
 
+#ifdef NOTYET
 static void yaffs_CheckWrittenBlock(yaffs_Device *dev,int chunkInNAND)
 {
 }
@@ -530,6 +531,7 @@ static int yaffs_VerifyCompare(const __u8 *d0, const __u8 * d1, const yaffs_Spar
 
        return 1;
 }
+#endif /* NOTYET */
 
 #if 0
 typedef struct