projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ddda25
)
backports: add S8_MIN
author
Hauke Mehrtens
<hauke@hauke-m.de>
Mon, 13 Oct 2014 21:58:19 +0000
(23:58 +0200)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Mon, 20 Oct 2014 21:36:04 +0000
(23:36 +0200)
This is needed by the iwlwifi river.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/kernel.h
patch
|
blob
|
history
diff --git
a/backport/backport-include/linux/kernel.h
b/backport/backport-include/linux/kernel.h
index 160689a318a260c4e6e26f4c9dd8309ce812fdb3..9d31d0f5438a3ab6456d734fcd276d1750ea409e 100644
(file)
--- 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