Commit 753ed90d authored by Al Viro's avatar Al Viro Committed by David S. Miller

[SUNRPC]: more sunrpc endianness annotations

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d8ed029d
...@@ -620,7 +620,7 @@ svc_safe_getnetobj(struct kvec *argv, struct xdr_netobj *o) ...@@ -620,7 +620,7 @@ svc_safe_getnetobj(struct kvec *argv, struct xdr_netobj *o)
static inline int static inline int
svc_safe_putnetobj(struct kvec *resv, struct xdr_netobj *o) svc_safe_putnetobj(struct kvec *resv, struct xdr_netobj *o)
{ {
u32 *p; u8 *p;
if (resv->iov_len + 4 > PAGE_SIZE) if (resv->iov_len + 4 > PAGE_SIZE)
return -1; return -1;
...@@ -630,7 +630,7 @@ svc_safe_putnetobj(struct kvec *resv, struct xdr_netobj *o) ...@@ -630,7 +630,7 @@ svc_safe_putnetobj(struct kvec *resv, struct xdr_netobj *o)
if (resv->iov_len > PAGE_SIZE) if (resv->iov_len > PAGE_SIZE)
return -1; return -1;
memcpy(p, o->data, o->len); memcpy(p, o->data, o->len);
memset((u8 *)p + o->len, 0, round_up_to_quad(o->len) - o->len); memset(p + o->len, 0, round_up_to_quad(o->len) - o->len);
return 0; return 0;
} }
...@@ -1219,8 +1219,8 @@ svcauth_gss_wrap_resp_priv(struct svc_rqst *rqstp) ...@@ -1219,8 +1219,8 @@ svcauth_gss_wrap_resp_priv(struct svc_rqst *rqstp)
struct rpc_gss_wire_cred *gc = &gsd->clcred; struct rpc_gss_wire_cred *gc = &gsd->clcred;
struct xdr_buf *resbuf = &rqstp->rq_res; struct xdr_buf *resbuf = &rqstp->rq_res;
struct page **inpages = NULL; struct page **inpages = NULL;
__be32 *p; __be32 *p, *len;
int offset, *len; int offset;
int pad; int pad;
p = gsd->body_start; p = gsd->body_start;
......
...@@ -249,10 +249,10 @@ static int ip_map_show(struct seq_file *m, ...@@ -249,10 +249,10 @@ static int ip_map_show(struct seq_file *m,
seq_printf(m, "%s %d.%d.%d.%d %s\n", seq_printf(m, "%s %d.%d.%d.%d %s\n",
im->m_class, im->m_class,
htonl(addr.s_addr) >> 24 & 0xff, ntohl(addr.s_addr) >> 24 & 0xff,
htonl(addr.s_addr) >> 16 & 0xff, ntohl(addr.s_addr) >> 16 & 0xff,
htonl(addr.s_addr) >> 8 & 0xff, ntohl(addr.s_addr) >> 8 & 0xff,
htonl(addr.s_addr) >> 0 & 0xff, ntohl(addr.s_addr) >> 0 & 0xff,
dom dom
); );
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment