mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
tipc: endianness annotations
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
ec6b486fa9
commit
becf3da20e
1 changed files with 3 additions and 4 deletions
|
@ -70,10 +70,9 @@ static inline void msg_set_bits(struct tipc_msg *m, u32 w,
|
||||||
u32 pos, u32 mask, u32 val)
|
u32 pos, u32 mask, u32 val)
|
||||||
{
|
{
|
||||||
val = (val & mask) << pos;
|
val = (val & mask) << pos;
|
||||||
val = htonl(val);
|
mask = mask << pos;
|
||||||
mask = htonl(mask << pos);
|
m->hdr[w] &= ~htonl(mask);
|
||||||
m->hdr[w] &= ~mask;
|
m->hdr[w] |= htonl(val);
|
||||||
m->hdr[w] |= val;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue