Hi Jon,
Jon Paul Maloy schrieb:
2) The code has been optimized to minimize the number of run-time
endianness conversion operations by leveraging the fact that the
mask (and, in some cases, the value as well) is constant and the
necessary conversion can be performed by the compiler.
3) It can be checked by sparse, if you use proper types.
diff --git a/net/tipc/msg.h b/net/tipc/msg.h
index 62d5490..5c64e55 100644
--- a/net/tipc/msg.h
+++ b/net/tipc/msg.h
@@ -71,8 +71,11 @@ static inline void msg_set_word(struct tipc_msg *m, u32
w, u32 val) static inline void msg_set_bits(struct tipc_msg *m, u32 w,
u32 pos, u32 mask, u32 val)
static inlinevoid msg_set_bits(struct tipc_msg *m, u32 w,
u32 pos, __be32 mask, __be32 val)
Care to resubmit?
Best Regards
Ingo Oeser
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html