Patchwork [U-Boot] include: fix mips64 build warning

login
register
mail settings
Submitter Zhi-zhou Zhang
Date Sept. 29, 2012, 11:02 a.m.
Message ID <1348916527-13634-2-git-send-email-etou.zh@gmail.com>
Download mbox | patch
Permalink /patch/188027/
State Not Applicable
Delegated to: Daniel Schwierzeck
Headers show

Comments

Zhi-zhou Zhang - Sept. 29, 2012, 11:02 a.m.
fix warnings when building mips64, we define CONFIG_MIPS64 in config file. And this macro decides size_t.
hashtable.c: In function 'hexport_r':
hashtable.c:495:2: warning: format '%zu' expects argument of type 'size_t', but argument 5 has type 'unsigned int' [-Wformat]
hashtable.c:554:5: warning: format '%zu' expects argument of type 'size_t', but argument 2 has type 'unsigned int' [-Wformat]
hashtable.c:554:5: warning: format '%zu' expects argument of type 'size_t', but argument 3 has type 'unsigned int' [-Wformat]
hashtable.c: In function 'himport_r':
hashtable.c:654:3: warning: format '%zu' expects argument of type 'size_t', but argument 2 has type 'unsigned int' [-Wformat]

Signed-off-by: Zhi-zhou Zhang <etou.zh@gmail.com>
---
 include/linux/types.h |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/include/linux/types.h b/include/linux/types.h
index 1b0b4a4..33ee095 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -4,6 +4,7 @@ 
 #ifdef	__KERNEL__
 #include <linux/config.h>
 #endif
+#include <config.h>
 
 #include <linux/posix_types.h>
 #include <asm/types.h>