From 980f6250683d4c398f3ee753356eb956f29c7832 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 8 Jun 2014 17:44:47 +0200 Subject: [PATCH] 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 --- backport/backport-include/linux/kernel.h | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.30.2