[pnfs] [PATCH] missing include in nfs4filelayoutdev.c

Benny Halevy bhalevy at panasas.com
Mon Oct 22 05:03:11 EDT 2007


Sorry, this is pnfs specific so the following patch is more appropriate.
Benny

diff --git a/fs/nfs/nfs4filelayoutdev.c b/fs/nfs/nfs4filelayoutdev.c
index dda1e55..06d6213 100644
--- a/fs/nfs/nfs4filelayoutdev.c
+++ b/fs/nfs/nfs4filelayoutdev.c
@@ -48,6 +48,7 @@
 #include <asm/div64.h>

 #ifdef CONFIG_PNFS
+#include <linux/utsname.h>

 #include "nfs4filelayout.h"
 #include "nfs4_fs.h"

On Oct. 22, 2007, 10:22 +0200, Benny Halevy <bhalevy at panasas.com> wrote:
> need to include <linux/utsname.h> for system_utsname
> (introduced in 604236c9aa5a4dfaa8a8f40ee77f45836af6292f)
> 
> Signed-off-by: Benny Halevy <bhalevy at panasas.com>
> ---
>  fs/nfs/nfs4filelayoutdev.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/nfs/nfs4filelayoutdev.c b/fs/nfs/nfs4filelayoutdev.c
> index dda1e55..7c77ce1 100644
> --- a/fs/nfs/nfs4filelayoutdev.c
> +++ b/fs/nfs/nfs4filelayoutdev.c
> @@ -40,6 +40,7 @@
>  #include <linux/sched.h>
>  #include <linux/spinlock.h>
>  #include <linux/hash.h>
> +#include <linux/utsname.h>
>  
>  #include <linux/nfs4.h>
>  #include <linux/nfs_fs.h>



More information about the pNFS mailing list