This is needed by the iwlwifi river.

Signed-off-by: Hauke Mehrtens <ha...@hauke-m.de>
---
 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 160689a..9d31d0f 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
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to