Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4164eb4 authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann
Browse files

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: default avatarAlexander Aring <alex.aring@gmail.com>
Reported-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 882809fb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 */