public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs/nfs/dns_resolve.c: included linux/nfs_fs.h twice
@ 2012-02-16 13:54 Danny Kukawka
  2012-02-16 14:18 ` Bryan Schumaker
  0 siblings, 1 reply; 3+ messages in thread
From: Danny Kukawka @ 2012-02-16 13:54 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: Danny Kukawka, linux-nfs, linux-kernel

fs/nfs/dns_resolve.c: included 'linux/nfs_fs.h' twice. No need
to include it in the 'CONFIG_NFS_USE_NEW_IDMAPPER not defined'
block since it's already included at the top of the file.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
---
 fs/nfs/idmap.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
index 2c05f19..1526b5f 100644
--- a/fs/nfs/idmap.c
+++ b/fs/nfs/idmap.c
@@ -374,8 +374,6 @@ int nfs_map_gid_to_group(const struct nfs_server *server, __u32 gid, char *buf,
 #include <linux/workqueue.h>
 #include <linux/sunrpc/rpc_pipe_fs.h>
 
-#include <linux/nfs_fs.h>
-
 #include "nfs4_fs.h"
 
 #define IDMAP_HASH_SZ          128
-- 
1.7.8.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] fs/nfs/dns_resolve.c: included linux/nfs_fs.h twice
  2012-02-16 13:54 [PATCH] fs/nfs/dns_resolve.c: included linux/nfs_fs.h twice Danny Kukawka
@ 2012-02-16 14:18 ` Bryan Schumaker
  2012-02-16 14:23   ` Bryan Schumaker
  0 siblings, 1 reply; 3+ messages in thread
From: Bryan Schumaker @ 2012-02-16 14:18 UTC (permalink / raw)
  To: Danny Kukawka; +Cc: Trond Myklebust, Danny Kukawka, linux-nfs, linux-kernel

On 02/16/12 08:54, Danny Kukawka wrote:

> fs/nfs/dns_resolve.c: included 'linux/nfs_fs.h' twice. No need

         ^^^^^^^^^^^^^
You probably meant idamp.c here...

Good catch.  My idmapper fallback changes from a few weeks ago should have already done this see:

e6499c6f4b5f56a16f8b8ef60529c1da28b13aea  NFS: Fall back on old idmapper if request_key() fails
3cd0f37a2cc9e4d6188df10041a2441eaa41d991  NFS: Keep idmapper include files in one place

in Trond's nfs-for-next branch.

- Bryan

> to include it in the 'CONFIG_NFS_USE_NEW_IDMAPPER not defined'
> block since it's already included at the top of the file.
> 
> Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
> ---
>  fs/nfs/idmap.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
> index 2c05f19..1526b5f 100644
> --- a/fs/nfs/idmap.c
> +++ b/fs/nfs/idmap.c
> @@ -374,8 +374,6 @@ int nfs_map_gid_to_group(const struct nfs_server *server, __u32 gid, char *buf,
>  #include <linux/workqueue.h>
>  #include <linux/sunrpc/rpc_pipe_fs.h>
>  
> -#include <linux/nfs_fs.h>
> -
>  #include "nfs4_fs.h"
>  
>  #define IDMAP_HASH_SZ          128



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fs/nfs/dns_resolve.c: included linux/nfs_fs.h twice
  2012-02-16 14:18 ` Bryan Schumaker
@ 2012-02-16 14:23   ` Bryan Schumaker
  0 siblings, 0 replies; 3+ messages in thread
From: Bryan Schumaker @ 2012-02-16 14:23 UTC (permalink / raw)
  To: Danny Kukawka; +Cc: Trond Myklebust, Danny Kukawka, linux-nfs, linux-kernel

On 02/16/12 09:18, Bryan Schumaker wrote:

> On 02/16/12 08:54, Danny Kukawka wrote:
> 
>> fs/nfs/dns_resolve.c: included 'linux/nfs_fs.h' twice. No need
> 
>          ^^^^^^^^^^^^^
> You probably meant idamp.c here...
> 
> Good catch.  My idmapper fallback changes from a few weeks ago should have already done this see:
> 
> e6499c6f4b5f56a16f8b8ef60529c1da28b13aea  NFS: Fall back on old idmapper if request_key() fails
> 3cd0f37a2cc9e4d6188df10041a2441eaa41d991  NFS: Keep idmapper include files in one place
> 
> in Trond's nfs-for-next branch.


After looking closer, I see that I'm still including <linux/nfs_fs.h> twice even after those commits.  It's gone after the patches I plan on submitting today...

- Bryan

> 
> - Bryan
> 
>> to include it in the 'CONFIG_NFS_USE_NEW_IDMAPPER not defined'
>> block since it's already included at the top of the file.
>>
>> Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
>> ---
>>  fs/nfs/idmap.c |    2 --
>>  1 files changed, 0 insertions(+), 2 deletions(-)
>>
>> diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
>> index 2c05f19..1526b5f 100644
>> --- a/fs/nfs/idmap.c
>> +++ b/fs/nfs/idmap.c
>> @@ -374,8 +374,6 @@ int nfs_map_gid_to_group(const struct nfs_server *server, __u32 gid, char *buf,
>>  #include <linux/workqueue.h>
>>  #include <linux/sunrpc/rpc_pipe_fs.h>
>>  
>> -#include <linux/nfs_fs.h>
>> -
>>  #include "nfs4_fs.h"
>>  
>>  #define IDMAP_HASH_SZ          128
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-16 14:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-16 13:54 [PATCH] fs/nfs/dns_resolve.c: included linux/nfs_fs.h twice Danny Kukawka
2012-02-16 14:18 ` Bryan Schumaker
2012-02-16 14:23   ` Bryan Schumaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox