linux-next: build failure after merge of the vfs tree

From: Stephen Rothwell
Date: Wed Dec 10 2014 - 02:45:53 EST


Hi Al,

After merging the vfs tree, today's linux-next build (powerpc
allnoconfig) failed like this:

fs/nsfs.c: In function 'ns_get_path':
fs/nsfs.c:83:2: error: implicit declaration of function 'current_kernel_time' [-Werror=implicit-function-declaration]
inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME;
^
fs/nsfs.c:83:51: error: incompatible types when assigning to type 'struct timespec' from type 'int'
inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME;
^

Caused by commit 87fb64a6c1f7 ("take the targets of /proc/*/ns/*
symlinks to separate fs").

I have applied the following patch for today.

From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Date: Wed, 10 Dec 2014 18:37:32 +1100
Subject: [PATCH] nsfs: need include/ktime.h and timekeeping.h for CURRENT_TIME

Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
---
fs/nsfs.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/fs/nsfs.c b/fs/nsfs.c
index 0791d086804d..7d98db03c2ce 100644
--- a/fs/nsfs.c
+++ b/fs/nsfs.c
@@ -3,6 +3,8 @@
#include <linux/fs.h>
#include <linux/proc_ns.h>
#include <linux/magic.h>
+#include <linux/ktime.h>
+#include <linux/timekeeping.h>

static struct vfsmount *nsfs_mnt;

--
2.1.3

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx

Attachment: pgpmRdnsdWdmi.pgp
Description: OpenPGP digital signature