diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-12 22:33:16 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-12 22:33:16 +0100 |
commit | 7bfb8575b82cd1facde3dc5be2b125f408171646 (patch) | |
tree | 9df1049fe7491df41efe02109b7192334881176c /net/ceph | |
parent | 6c869d301bda3f672f001e2c9fcb01685000fc83 (diff) | |
parent | 61864d844c296933d40c02683252bbea5193b101 (diff) | |
download | linux-rt-7bfb8575b82cd1facde3dc5be2b125f408171646.tar.gz |
Merge branch 'topic/line6' into for-next
Diffstat (limited to 'net/ceph')
-rw-r--r-- | net/ceph/auth_x.c | 2 | ||||
-rw-r--r-- | net/ceph/mon_client.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ceph/auth_x.c b/net/ceph/auth_x.c index 15845814a0f2..ba6eb17226da 100644 --- a/net/ceph/auth_x.c +++ b/net/ceph/auth_x.c @@ -676,7 +676,7 @@ static int calcu_signature(struct ceph_x_authorizer *au, int ret; char tmp_enc[40]; __le32 tmp[5] = { - 16u, msg->hdr.crc, msg->footer.front_crc, + cpu_to_le32(16), msg->hdr.crc, msg->footer.front_crc, msg->footer.middle_crc, msg->footer.data_crc, }; ret = ceph_x_encrypt(&au->session_key, &tmp, sizeof(tmp), diff --git a/net/ceph/mon_client.c b/net/ceph/mon_client.c index a83062ceeec9..f2148e22b148 100644 --- a/net/ceph/mon_client.c +++ b/net/ceph/mon_client.c @@ -717,7 +717,7 @@ static int get_poolop_reply_buf(const char *src, size_t src_len, if (src_len != sizeof(u32) + dst_len) return -EINVAL; - buf_len = le32_to_cpu(*(u32 *)src); + buf_len = le32_to_cpu(*(__le32 *)src); if (buf_len != dst_len) return -EINVAL; |