summaryrefslogtreecommitdiff
path: root/backport/backport-include
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2016-07-10 15:25:15 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2016-07-13 19:15:33 +0200
commit4ea05090ed467278fe290a04060a002706ab63fc (patch)
tree8b26ff6c8b2ea2862e20ebf275f9ac20cca2b005 /backport/backport-include
parent0c033122c9cc40d2253b22ef9acc9ef5272f2024 (diff)
header: add missing S16_MIN and S16_MAX
These are now needed by the iwlwifi driver and were added in commit 89a0714106a "kernel.h: define u8, s8, u32, etc. limits" Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport/backport-include')
-rw-r--r--backport/backport-include/linux/kernel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/backport/backport-include/linux/kernel.h b/backport/backport-include/linux/kernel.h
index f47b21f9..fd7aa2b1 100644
--- a/backport/backport-include/linux/kernel.h
+++ b/backport/backport-include/linux/kernel.h
@@ -61,6 +61,14 @@
#define U16_MAX ((u16)~0U)
#endif
+#ifndef S16_MAX
+#define S16_MAX ((s16)(U16_MAX>>1))
+#endif
+
+#ifndef S16_MIN
+#define S16_MIN ((s16)(-S16_MAX - 1))
+#endif
+
#ifndef U32_MAX
#define U32_MAX ((u32)~0U)
#endif