提交 a4164eb4 编写于 作者: A Alexander Aring 提交者: Marcel Holtmann

ieee802154: add missing ULL definition

Running make C=2 occurs warning:

constant 0xffffffffffffffff is so big it is unsigned long

This patch fix this warning by adding a ULL to the constant definitions.
Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
Reported-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 882809fb
......@@ -208,7 +208,8 @@ static inline bool ieee802154_is_valid_extended_addr(const __le64 addr)
* This is currently a workaround because neighbor discovery can't
* deal with short addresses types right now.
*/
return ((addr != 0x0000000000000000) || (addr != 0xffffffffffffffff));
return ((addr != 0x0000000000000000ULL) ||
(addr != 0xffffffffffffffffULL));
}
#endif /* LINUX_IEEE802154_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册