Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165551
b: refs/heads/master
c: 97363c6
h: refs/heads/master
i:
  165549: 681f3c1
  165547: 9bec4a9
  165543: c525b67
  165535: af4b68d
v: v3
  • Loading branch information
Benny Halevy authored and Trond Myklebust committed Sep 23, 2009
1 parent bab75b8 commit 172ad6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9423a08ad5773d0a7612d434700561dc8346b6d6
refs/heads/master: 97363c6a4f93a20380b4a9e11f35e27fed68a517
5 changes: 3 additions & 2 deletions trunk/include/linux/sunrpc/xdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <linux/uio.h>
#include <asm/byteorder.h>
#include <asm/unaligned.h>
#include <linux/scatterlist.h>

/*
Expand Down Expand Up @@ -117,14 +118,14 @@ static inline __be32 *xdr_encode_array(__be32 *p, const void *s, unsigned int le
static inline __be32 *
xdr_encode_hyper(__be32 *p, __u64 val)
{
*(__be64 *)p = cpu_to_be64(val);
put_unaligned_be64(val, p);
return p + 2;
}

static inline __be32 *
xdr_decode_hyper(__be32 *p, __u64 *valp)
{
*valp = be64_to_cpup((__be64 *)p);
*valp = get_unaligned_be64(p);
return p + 2;
}

Expand Down

0 comments on commit 172ad6a

Please sign in to comment.