projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f6d42b
)
Fix SIZE_MAX compiler warning when using stdint.h
author
Simon Glass
<sjg@chromium.org>
Tue, 25 Nov 2014 04:18:21 +0000
(21:18 -0700)
committer
Simon Glass
<sjg@chromium.org>
Tue, 25 Nov 2014 13:33:58 +0000
(06:33 -0700)
This new symbol may be defined by the compiler. If it is, avoid a compiler
warning when USE_STDINT is defined.
Signed-off-by: Simon Glass <sjg@chromium.org>
include/linux/kernel.h
patch
|
blob
|
history
diff --git
a/include/linux/kernel.h
b/include/linux/kernel.h
index 89fcae0983c1d011cc2420efe1dec837c8f3e1a7..0b616713cc3b77d8d9f8d3da7e6445f5bf72879d 100644
(file)
--- a/
include/linux/kernel.h
+++ b/
include/linux/kernel.h
@@
-16,7
+16,9
@@
#define LLONG_MAX ((long long)(~0ULL>>1))
#define LLONG_MIN (-LLONG_MAX - 1)
#define ULLONG_MAX (~0ULL)
+#ifndef SIZE_MAX
#define SIZE_MAX (~(size_t)0)
+#endif
#define U8_MAX ((u8)~0U)
#define S8_MAX ((s8)(U8_MAX>>1))