Changeset 9187
- Timestamp:
- 02/09/12 14:38:24 (16 months ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
io/bmi/bmi_tcp/bmi-tcp.c (modified) (2 diffs)
-
kernel/linux-2.6/dcache.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/io/bmi/bmi_tcp/bmi-tcp.c
r9093 r9187 183 183 #define BMI_TCP_ENC_HDR(hdr) \ 184 184 do { \ 185 *((uint32_t*)&((hdr).enc_hdr[0])) = htobmi32((hdr).magic_nr); \ 185 uint32_t *tmp32; \ 186 tmp32 = (uint32_t *)&(hdr).enc_hdr[0]; \ 187 *(tmp32) = htobmi32((hdr).magic_nr); \ 186 188 *((uint32_t*)&((hdr).enc_hdr[4])) = htobmi32((hdr).mode); \ 187 189 *((uint64_t*)&((hdr).enc_hdr[8])) = htobmi64((hdr).tag); \ … … 191 193 #define BMI_TCP_DEC_HDR(hdr) \ 192 194 do { \ 193 (hdr).magic_nr = bmitoh32(*((uint32_t*)&((hdr).enc_hdr[0]))); \ 194 (hdr).mode = bmitoh32(*((uint32_t*)&((hdr).enc_hdr[4]))); \ 195 (hdr).tag = bmitoh64(*((uint64_t*)&((hdr).enc_hdr[8]))); \ 196 (hdr).size = bmitoh64(*((uint64_t*)&((hdr).enc_hdr[16]))); \ 195 uint32_t tmp32; \ 196 memcpy(&tmp32,&(hdr).enc_hdr[0],sizeof(uint32_t)); \ 197 (hdr).magic_nr = bmitoh32(tmp32); \ 198 (hdr).mode = bmitoh32(*((uint32_t*)&((hdr).enc_hdr[4]))); \ 199 (hdr).tag = bmitoh64(*((uint64_t*)&((hdr).enc_hdr[8]))); \ 200 (hdr).size = bmitoh64(*((uint64_t*)&((hdr).enc_hdr[16]))); \ 197 201 } while(0) 202 198 203 199 204 /* enumerate states that we care about */ -
trunk/src/kernel/linux-2.6/dcache.c
r8842 r9187 197 197 198 198 if (nd && (nd->flags & LOOKUP_FOLLOW) && 199 ( !nd->flags & LOOKUP_CREATE))199 ((!nd->flags) & (LOOKUP_CREATE)) ) 200 200 { 201 201 gossip_debug(GOSSIP_DCACHE_DEBUG,
