[linux-yocto] [PATCH 2/2] yaffs: fix yaffs_vfs.c warnings.

Zhang Xiao xiao.zhang at windriver.com
Tue Aug 26 22:34:16 PDT 2014


fs/yaffs2/yaffs_vfs.c:3036:14: warning: 'yaffs_dump_dev_part0' defined but not used [-Wunused-function]
fs/yaffs2/yaffs_vfs.c:3074:14: warning: 'yaffs_dump_dev_part1' defined but not used [-Wunused-function]
fs/yaffs2/yaffs_vfs.c:3192:3: warning: 'mask_flags' defined but not used [-Wunused-variable]

Signed-off-by: Zhang Xiao <xiao.zhang at windriver.com>
---
 fs/yaffs2/yaffs_vfs.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/yaffs2/yaffs_vfs.c b/fs/yaffs2/yaffs_vfs.c
index d372a4e..2abb127 100644
--- a/fs/yaffs2/yaffs_vfs.c
+++ b/fs/yaffs2/yaffs_vfs.c
@@ -3140,7 +3140,6 @@ static DECLARE_FSTYPE(yaffs2_fs_type, "yaffs2", yaffs2_read_super,
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0))
 static struct proc_dir_entry *my_proc_entry;
-#endif
 
 static char *yaffs_dump_dev_part0(char *buf, struct yaffs_dev *dev)
 {
@@ -3229,7 +3228,6 @@ static char *yaffs_dump_dev_part1(char *buf, struct yaffs_dev *dev)
 	return buf;
 }
 
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0))
 static int yaffs_proc_read(char *page,
 			   char **start,
 			   off_t offset, int count, int *eof, void *data)
@@ -3285,7 +3283,6 @@ static int yaffs_proc_read(char *page,
 
 	return buf - page < count ? buf - page : count;
 }
-#endif
 
 /**
  * Set the verbosity of the warnings and error messages.
@@ -3328,7 +3325,6 @@ static struct {
 	{NULL, 0},
 };
 
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0))
 #define MAX_MASK_NAME_LENGTH 40
 static int yaffs_proc_write_trace_options(struct file *file, const char *buf,
 					  unsigned long count, void *data)
-- 
1.8.5.2.233.g932f7e4



More information about the linux-yocto mailing list