[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tkrat.c698a40fc77b434b@s5r6.in-berlin.de>
Date: Sun, 11 Oct 2009 02:54:01 +0200 (CEST)
From: Stefan Richter <stefanr@...6.in-berlin.de>
To: Trond Myklebust <Trond.Myklebust@...app.com>
cc: linux-kernel@...r.kernel.org
Subject: [PATCH] NFS: suppress a build warning
struct sockaddr_storage * can safely be used as struct sockaddr *.
Suppress an "incompatible pointer type" warning.
Signed-off-by: Stefan Richter <stefanr@...6.in-berlin.de>
---
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 6dabf6f..f54afbf 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1848,8 +1848,8 @@ nfs_compare_remount_data(struct nfs_server *nfss,
data->timeo != (10U * nfss->client->cl_timeout->to_initval / HZ) ||
data->nfs_server.port != nfss->port ||
data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen ||
- !rpc_cmp_addr(&data->nfs_server.address,
- &nfss->nfs_client->cl_addr))
+ !rpc_cmp_addr((struct sockaddr *)&data->nfs_server.address,
+ (struct sockaddr *)&nfss->nfs_client->cl_addr))
return -EINVAL;
return 0;
--
Stefan Richter
-=====-==--= =-=- -=-==
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists