From 867f569106ed228e5ba634779abd9892db95f0bb Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Thu, 10 Jul 2014 22:33:45 +0200 Subject: [PATCH] backports: add U16_MAX 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 933686f8a103..160689a318a2 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 U16_MAX +#define U16_MAX ((u16)~0U) +#endif + #ifndef U32_MAX #define U32_MAX ((u32)~0U) #endif -- 2.30.2