lkml.org 
[lkml]   [2023]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] NFS: Remove duplicate include
Date
./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 --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>
--
2.20.1.7.g153144c
\
 
 \ /
  Last update: 2023-03-27 00:15    [W:0.096 / U:1.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site