lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 12 Oct 2009 12:23:53 +0200
From:	Mikael Pettersson <mikpe@...uu.se>
To:	Trond Myklebust <Trond.Myklebust@...app.com>
Cc:	linux-nfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 2.6.32-rc4] fix nfs_compare_remount_data() compile warnings

Commit bcd2ea17da6a329a7276cde7286d802f009af332
"NFS: Fix port initialisation in nfs_remount()"
replaced a memcmp() with a call to rpc_cmp_addr(),
resulting in the following compile warnings:

fs/nfs/super.c: In function 'nfs_compare_remount_data':
fs/nfs/super.c:1852: warning: passing argument 1 of 'rpc_cmp_addr' from incompatible pointer type
fs/nfs/super.c:1852: warning: passing argument 2 of 'rpc_cmp_addr' from incompatible pointer type

The operands are of type 'struct sockaddr_storage*' while
rpc_cmp_addr() expects 'struct sockaddr*'. Those operands
are often cast to 'struct sockaddr*' elsewhere in super.c,
so doing the same here seems reasonable.

Signed-off-by: Mikael Pettersson <mikpe@...uu.se>
---
 fs/nfs/super.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.32-rc4/fs/nfs/super.c.~1~	2009-10-12 10:43:45.000000000 +0200
+++ linux-2.6.32-rc4/fs/nfs/super.c	2009-10-12 11:44:13.000000000 +0200
@@ -1848,8 +1848,8 @@ nfs_compare_remount_data(struct nfs_serv
 	    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;
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ