From f78bcbae0b737c6c4249d4cda68fa6a40aae072b Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 13 Oct 2014 23:58:19 +0200 Subject: [PATCH] backports: add S8_MIN This is needed by the iwlwifi river. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/kernel.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/backport/backport-include/linux/kernel.h b/backport/backport-include/linux/kernel.h index 160689a318a2..9d31d0f5438a 100644 --- a/backport/backport-include/linux/kernel.h +++ b/backport/backport-include/linux/kernel.h @@ -45,6 +45,18 @@ #define SHRT_MIN ((s16)(-SHRT_MAX - 1)) #endif +#ifndef U8_MAX +#define U8_MAX ((u8)~0U) +#endif + +#ifndef S8_MAX +#define S8_MAX ((s8)(U8_MAX>>1)) +#endif + +#ifndef S8_MIN +#define S8_MIN ((s8)(-S8_MAX - 1)) +#endif + #ifndef U16_MAX #define U16_MAX ((u16)~0U) #endif -- 2.30.2