aboutsummaryrefslogtreecommitdiffstats
path: root/features/yaffs2/yaffs2-v5.6-build-fixups.patch
blob: 375625b4f201176eef5df58cf2b974f63d2ef5ec (plain)
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
From 046fe0a1215486fa81327553215eca8acab9d546 Mon Sep 17 00:00:00 2001
From: Bruce Ashfield <bruce.ashfield@gmail.com>
Date: Mon, 16 Mar 2020 23:20:57 -0400
Subject: [PATCH] yaffs2: v5.6 build fixups

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
---
 fs/yaffs2/yaffs_vfs.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/fs/yaffs2/yaffs_vfs.c b/fs/yaffs2/yaffs_vfs.c
index 4fbd0a42ff3d..598ecd57a0ed 100644
--- a/fs/yaffs2/yaffs_vfs.c
+++ b/fs/yaffs2/yaffs_vfs.c
@@ -2059,11 +2059,11 @@ static void yaffs_fill_inode_from_obj(struct inode *inode,
 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 5, 0))
 
 		inode->i_rdev = old_decode_dev(obj->yst_rdev);
-		inode->i_atime.tv_sec = (time_t) (obj->yst_atime);
+		inode->i_atime.tv_sec = (time64_t) (obj->yst_atime);
 		inode->i_atime.tv_nsec = 0;
-		inode->i_mtime.tv_sec = (time_t) obj->yst_mtime;
+		inode->i_mtime.tv_sec = (time64_t) obj->yst_mtime;
 		inode->i_mtime.tv_nsec = 0;
-		inode->i_ctime.tv_sec = (time_t) obj->yst_ctime;
+		inode->i_ctime.tv_sec = (time64_t) obj->yst_ctime;
 		inode->i_ctime.tv_nsec = 0;
 #else
 		inode->i_rdev = obj->yst_rdev;
@@ -3692,12 +3692,11 @@ static int yaffs_proc_open(struct inode *inode, struct file *file)
 	return single_open(file, yaffs_proc_show, NULL);
 }
 
-static struct file_operations procfs_ops = {
-	.owner = THIS_MODULE,
-	.open  = yaffs_proc_open,
-	.read  = seq_read,
-	.write = yaffs_proc_write,
-	.release = single_release,
+static struct proc_ops procfs_ops = {
+	.proc_open  = yaffs_proc_open,
+	.proc_read  = seq_read,
+	.proc_write = yaffs_proc_write,
+	.proc_release = single_release,
 };
 
 static int yaffs_procfs_init(void)
-- 
2.19.1