linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs/nfs/dns_resolve.c: included linux/sunrpc/clnt.h twice
@ 2012-02-16 13:55 Danny Kukawka
  0 siblings, 0 replies; only message in thread
From: Danny Kukawka @ 2012-02-16 13:55 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: Danny Kukawka, linux-nfs, linux-kernel

fs/nfs/dns_resolve.c included 'linux/sunrpc/clnt.h' twice.
No need to include it in the '#ifdef CONFIG_NFS_USE_KERNEL_DNS'
and the '#else' block, include it at top of the file, since
the file is always needed.

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

diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c
index a6e711a..ab08011 100644
--- a/fs/nfs/dns_resolve.c
+++ b/fs/nfs/dns_resolve.c
@@ -6,9 +6,10 @@
  * Resolves DNS hostnames into valid ip addresses
  */
 
+#include <linux/sunrpc/clnt.h>
+
 #ifdef CONFIG_NFS_USE_KERNEL_DNS
 
-#include <linux/sunrpc/clnt.h>
 #include <linux/dns_resolver.h>
 
 ssize_t nfs_dns_resolve_name(char *name, size_t namelen,
@@ -37,7 +38,6 @@ ssize_t nfs_dns_resolve_name(char *name, size_t namelen,
 #include <linux/socket.h>
 #include <linux/seq_file.h>
 #include <linux/inet.h>
-#include <linux/sunrpc/clnt.h>
 #include <linux/sunrpc/cache.h>
 #include <linux/sunrpc/svcauth.h>
 
-- 
1.7.8.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-16 13:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-16 13:55 [PATCH] fs/nfs/dns_resolve.c: included linux/sunrpc/clnt.h twice Danny Kukawka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).