[PATCH] fs/nfs/dns_resolve.c: included linux/sunrpc/clnt.h twice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux