diff mbox series

NFS: Remove duplicate include

Message ID 20230209032432.48440-1-jiapeng.chong@linux.alibaba.com (mailing list archive)
State New, archived
Headers show
Series NFS: Remove duplicate include | expand

Commit Message

Jiapeng Chong Feb. 9, 2023, 3:24 a.m. UTC
./fs/nfs/dns_resolve.c: linux/module.h is included more than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4009
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 fs/nfs/dns_resolve.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c
index 6603b5cee029..320441f10c01 100644
--- a/fs/nfs/dns_resolve.c
+++ b/fs/nfs/dns_resolve.c
@@ -7,9 +7,10 @@ 
  * Resolves DNS hostnames into valid ip addresses
  */
 
+#include <linux/module.h>
+
 #ifdef CONFIG_NFS_USE_KERNEL_DNS
 
-#include <linux/module.h>
 #include <linux/sunrpc/clnt.h>
 #include <linux/sunrpc/addr.h>
 #include <linux/dns_resolver.h>
@@ -35,7 +36,6 @@  ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen,
 
 #else
 
-#include <linux/module.h>
 #include <linux/hash.h>
 #include <linux/string.h>
 #include <linux/kmod.h>