1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
From de4232c81899959e9f0e8e93af3a8511deb1dd0e Mon Sep 17 00:00:00 2001
From: Zhang Xiao <xiao.zhang@windriver.com>
Date: Wed, 27 Aug 2014 13:34:16 +0800
Subject: [PATCH 2/2] yaffs: fix yaffs_vfs.c warnings.
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@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@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 d372a4e1d9bf..2abb12706eb6 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.1.2
|