diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2016-07-10 15:25:15 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2016-07-13 19:15:33 +0200 |
commit | 4ea05090ed467278fe290a04060a002706ab63fc (patch) | |
tree | 8b26ff6c8b2ea2862e20ebf275f9ac20cca2b005 /backport/backport-include | |
parent | 0c033122c9cc40d2253b22ef9acc9ef5272f2024 (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.h | 8 |
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 |