From: Danny Kukawka <danny.kukawka@bisect.de>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Danny Kukawka <dkukawka@suse.de>,
linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] fs/nfs/dns_resolve.c: included linux/sunrpc/clnt.h twice
Date: Thu, 16 Feb 2012 14:55:01 +0100 [thread overview]
Message-ID: <1329400501-31682-1-git-send-email-danny.kukawka@bisect.de> (raw)
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
reply other threads:[~2012-02-16 13:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1329400501-31682-1-git-send-email-danny.kukawka@bisect.de \
--to=danny.kukawka@bisect.de \
--cc=Trond.Myklebust@netapp.com \
--cc=dkukawka@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).