From: Bart V. A. <bva...@ac...> - 2010-09-04 10:09:25
|
Signed-off-by: Bart Van Assche <bva...@ac...> Index: scst/src/scst_pres.c =================================================================== --- scst/src/scst_pres.c (revision 2047) +++ scst/src/scst_pres.c (working copy) @@ -607,7 +607,7 @@ uint64_t sign, version; mm_segment_t old_fs; uint8_t pr_is_set, aptpl; - uint64_t key; + __be64 key; uint16_t rel_tgt_id; TRACE_ENTRY(); @@ -736,7 +736,7 @@ tid = &buf[pos]; pos += tid_size(tid); - key = get_unaligned((uint64_t *)&buf[pos]); + key = (__force __be64)get_unaligned((uint64_t *)&buf[pos]); pos += sizeof(key); rel_tgt_id = get_unaligned((uint16_t *)&buf[pos]); |