ieee802154: add missing ULL definition
authorAlexander Aring <alex.aring@gmail.com>
Sun, 2 Nov 2014 20:43:01 +0000 (21:43 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 2 Nov 2014 20:52:02 +0000 (21:52 +0100)
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: Alexander Aring <alex.aring@gmail.com>
Reported-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/linux/ieee802154.h

index 9bba5ca7f0ad0bf52a7415febf49e6d363f093d0..9da7c011fbbac597ceb7286297b139f0f5e857ae 100644 (file)
@@ -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 */