mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 13:11:14 +00:00
[SUNRPC]: trivial endianness annotations
pure s/u32/__be32/ [AV: large part based on Alexey's patches] Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7699431301
commit
d8ed029d60
22 changed files with 146 additions and 143 deletions
|
@ -145,7 +145,7 @@ static void ip_map_request(struct cache_detail *cd,
|
|||
{
|
||||
char text_addr[20];
|
||||
struct ip_map *im = container_of(h, struct ip_map, h);
|
||||
__u32 addr = im->m_addr.s_addr;
|
||||
__be32 addr = im->m_addr.s_addr;
|
||||
|
||||
snprintf(text_addr, 20, "%u.%u.%u.%u",
|
||||
ntohl(addr) >> 24 & 0xff,
|
||||
|
@ -410,7 +410,7 @@ svcauth_unix_set_client(struct svc_rqst *rqstp)
|
|||
}
|
||||
|
||||
static int
|
||||
svcauth_null_accept(struct svc_rqst *rqstp, u32 *authp)
|
||||
svcauth_null_accept(struct svc_rqst *rqstp, __be32 *authp)
|
||||
{
|
||||
struct kvec *argv = &rqstp->rq_arg.head[0];
|
||||
struct kvec *resv = &rqstp->rq_res.head[0];
|
||||
|
@ -472,7 +472,7 @@ struct auth_ops svcauth_null = {
|
|||
|
||||
|
||||
static int
|
||||
svcauth_unix_accept(struct svc_rqst *rqstp, u32 *authp)
|
||||
svcauth_unix_accept(struct svc_rqst *rqstp, __be32 *authp)
|
||||
{
|
||||
struct kvec *argv = &rqstp->rq_arg.head[0];
|
||||
struct kvec *resv = &rqstp->rq_res.head[0];
|
||||
|
@ -491,7 +491,7 @@ svcauth_unix_accept(struct svc_rqst *rqstp, u32 *authp)
|
|||
slen = XDR_QUADLEN(svc_getnl(argv)); /* machname length */
|
||||
if (slen > 64 || (len -= (slen + 3)*4) < 0)
|
||||
goto badcred;
|
||||
argv->iov_base = (void*)((u32*)argv->iov_base + slen); /* skip machname */
|
||||
argv->iov_base = (void*)((__be32*)argv->iov_base + slen); /* skip machname */
|
||||
argv->iov_len -= slen*4;
|
||||
|
||||
cred->cr_uid = svc_getnl(argv); /* uid */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue