NFS: suppress a build warning
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 12 Oct 2009 15:26:12 +0000 (11:26 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Oct 2009 17:25:12 +0000 (10:25 -0700)
struct sockaddr_storage * can safely be used as struct sockaddr *.
Suppress an "incompatible pointer type" warning.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfs/super.c

index 6dabf6feec94a6a0727a77f17dbcec58c2cbcdf8..a2c18acb856837f157a9e871fe1e511abc0911cc 100644 (file)
@@ -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;