mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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@s5r6.in-berlin.de> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
eea7e17e0e
commit
a1be9eee29
1 changed files with 2 additions and 2 deletions
|
@ -1848,8 +1848,8 @@ nfs_compare_remount_data(struct nfs_server *nfss,
|
||||||
data->timeo != (10U * nfss->client->cl_timeout->to_initval / HZ) ||
|
data->timeo != (10U * nfss->client->cl_timeout->to_initval / HZ) ||
|
||||||
data->nfs_server.port != nfss->port ||
|
data->nfs_server.port != nfss->port ||
|
||||||
data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen ||
|
data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen ||
|
||||||
!rpc_cmp_addr(&data->nfs_server.address,
|
!rpc_cmp_addr((struct sockaddr *)&data->nfs_server.address,
|
||||||
&nfss->nfs_client->cl_addr))
|
(struct sockaddr *)&nfss->nfs_client->cl_addr))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue