From ae1a3323e4dee438db4548db5cb2d138d01d619a Mon Sep 17 00:00:00 2001 From: luc Date: Fri, 29 Jul 2005 19:57:38 +0000 Subject: [PATCH 1/1] Add missing #include Needed to compile the code with a Makefile from the Linux tree. --- yaffs_ecc.c | 5 ++++- yaffs_ramem.c | 4 +++- yaffs_ramem2k.c | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/yaffs_ecc.c b/yaffs_ecc.c index 820041a..e1400c3 100644 --- a/yaffs_ecc.c +++ b/yaffs_ecc.c @@ -29,8 +29,11 @@ // Bit 0 of each entry indicates whether the entry has an odd or even parity, and therefore // this bytes influence on the line parity. -const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.2 2005-03-16 04:00:36 charles Exp $"; +const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.3 2005-07-29 19:57:38 luc Exp $"; +#ifdef __KERNEL__ +#include +#endif #include "yaffs_ecc.h" diff --git a/yaffs_ramem.c b/yaffs_ramem.c index da9a2ad..f416616 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.3 2005-07-29 19:57:38 luc Exp $"; #ifndef __KERNEL__ #define CONFIG_YAFFS_RAM_ENABLED +#else +#include #endif #ifdef CONFIG_YAFFS_RAM_ENABLED diff --git a/yaffs_ramem2k.c b/yaffs_ramem2k.c index 67f604b..f32afe5 100644 --- a/yaffs_ramem2k.c +++ b/yaffs_ramem2k.c @@ -15,10 +15,12 @@ //yaffs_ramem2k.c: RAM emulation in-kernel for 2K pages (YAFFS2) -const char *yaffs_ramem2k_c_version = "$Id: yaffs_ramem2k.c,v 1.2 2005-04-24 09:26:08 charles Exp $"; +const char *yaffs_ramem2k_c_version = "$Id: yaffs_ramem2k.c,v 1.3 2005-07-29 19:57:38 luc Exp $"; #ifndef __KERNEL__ #define CONFIG_YAFFS_RAM_ENABLED +#else +#include #endif #ifdef CONFIG_YAFFS_RAM_ENABLED -- 2.30.2