From: Hauke Mehrtens Date: Sun, 8 Jun 2014 15:44:47 +0000 (+0200) Subject: backports: add U32_MAX X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=980f6250683d4c398f3ee753356eb956f29c7832;p=openwrt%2Fstaging%2Fblogic.git backports: add U32_MAX This was added in: commit 89a0714106aac7309c7dfa0f004b39e1e89d2942 Author: Alex Elder Date: Thu Jan 23 15:54:00 2014 -0800 kernel.h: define u8, s8, u32, etc. limits Signed-off-by: Hauke Mehrtens --- diff --git a/backport/backport-include/linux/kernel.h b/backport/backport-include/linux/kernel.h index e695842b9fff..933686f8a103 100644 --- a/backport/backport-include/linux/kernel.h +++ b/backport/backport-include/linux/kernel.h @@ -45,6 +45,10 @@ #define SHRT_MIN ((s16)(-SHRT_MAX - 1)) #endif +#ifndef U32_MAX +#define U32_MAX ((u32)~0U) +#endif + #ifndef __round_mask #define __round_mask(x, y) ((__typeof__(x))((y)-1)) #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1)