Re: next-20080808 fs/nfsctl.c build error

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Howells
Date: Friday, August 8, 2008 - 3:58 pm

James Morris <jmorris@namei.org> wrote:


Not good.  That makes sched.h and cred.h recursively dependent.  sched.h
really needs splitting up, and the include dependencies need sorting.

However, for the moment I recommend the attached patch.

David
---
From: David Howells <dhowells@redhat.com>

CRED: Fix inclusion problems

Under certain configurations, some .c files obtain linux/sched.h and/or
linux/cred.h through other include files, but not under all configurations.

A couple of places (one in Coda, one in nfsd) need extra includes.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 fs/coda/file.c |    1 +
 fs/nfsctl.c    |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/fs/coda/file.c b/fs/coda/file.c
index 5a87699..9d0d703 100644
--- a/fs/coda/file.c
+++ b/fs/coda/file.c
@@ -16,6 +16,7 @@
 #include <linux/errno.h>
 #include <linux/smp_lock.h>
 #include <linux/string.h>
+#include <linux/cred.h>
 #include <asm/uaccess.h>
 
 #include <linux/coda.h>
diff --git a/fs/nfsctl.c b/fs/nfsctl.c
index cc4ef26..358e469 100644
--- a/fs/nfsctl.c
+++ b/fs/nfsctl.c
@@ -14,6 +14,7 @@
 #include <linux/namei.h>
 #include <linux/mount.h>
 #include <linux/syscalls.h>
+#include <linux/sched.h>
 #include <asm/uaccess.h>
 
 /*

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for August 8, Stephen Rothwell, (Fri Aug 8, 12:16 am)
next-20080808 fs/nfsctl.c build error, Eduardo Habkost, (Fri Aug 8, 10:25 am)
Re: next-20080808 fs/nfsctl.c build error, Randy Dunlap, (Fri Aug 8, 10:38 am)
Re: next-20080808 fs/nfsctl.c build error, James Morris, (Fri Aug 8, 3:31 pm)
Re: next-20080808 fs/nfsctl.c build error, David Howells, (Fri Aug 8, 3:58 pm)
Re: next-20080808 fs/nfsctl.c build error, James Morris, (Fri Aug 8, 4:33 pm)