[Yaffs] [PATCH YAFFS2 01/15] missing-config.h

Startseite
Anhänge:
Nachricht
+ (text/plain)
+ 01-missing-config.h.diff (text/plain)
Nachricht löschen
Nachricht beantworten
Autor: Luc Van Oostenryck
Datum:  
To: yaffs
Alte Treads: [Yaffs] [PATCH YAFFS2 0/15] Pending patches.
Betreff: [Yaffs] [PATCH YAFFS2 01/15] missing-config.h
Add missing #include <linux/config.h>.




-- Luc Van Oostenryck
diff --git a/fs/yaffs2/yaffs_ecc.c b/fs/yaffs2/yaffs_ecc.c
--- a/fs/yaffs2/yaffs_ecc.c
+++ b/fs/yaffs2/yaffs_ecc.c
@@ -31,6 +31,9 @@

const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.2 2005/03/16 04:00:36 charles Exp $";

+#ifdef    __KERNEL__
+#include <linux/config.h>
+#endif


#include "yaffs_ecc.h"

diff --git a/fs/yaffs2/yaffs_ramem.c b/fs/yaffs2/yaffs_ramem.c
--- a/fs/yaffs2/yaffs_ramem.c
+++ b/fs/yaffs2/yaffs_ramem.c
@@ -19,6 +19,8 @@ const char *yaffs_ramem_c_version = "$Id

#ifndef __KERNEL__
#define CONFIG_YAFFS_RAM_ENABLED
+#else
+#include <linux/config.h>
#endif

#ifdef CONFIG_YAFFS_RAM_ENABLED
diff --git a/fs/yaffs2/yaffs_ramem2k.c b/fs/yaffs2/yaffs_ramem2k.c
--- a/fs/yaffs2/yaffs_ramem2k.c
+++ b/fs/yaffs2/yaffs_ramem2k.c
@@ -19,6 +19,8 @@ const char *yaffs_ramem2k_c_version = "$

#ifndef __KERNEL__
#define CONFIG_YAFFS_RAM_ENABLED
+#else
+#include <linux/config.h>
#endif

#ifdef CONFIG_YAFFS_RAM_ENABLED