]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
blackfin: don't use 'bool' when it causes problems
authorWolfgang Denk <wd@denx.de>
Tue, 19 Nov 2013 07:01:44 +0000 (08:01 +0100)
committerTom Rini <trini@ti.com>
Mon, 25 Nov 2013 15:41:55 +0000 (10:41 -0500)
The use of 'bool' data types in globally used header files cases build
errors like this:

In file included from arch/blackfin/include/asm/blackfin.h:13:0,
                 from include/common.h:92,
                 from cmd_test.c:17:
arch/blackfin/include/asm/blackfin_local.h:54:1: error: unknown type name 'bool'

Use plain 'int' instead to avoid such kind of trouble.

Signed-off-by: Wolfgang Denk <wd@denx.de>
arch/blackfin/cpu/os_log.c
arch/blackfin/include/asm/blackfin_local.h

index e1c8e2948dede6feeb6c7dd7cc73f5e46a1ac808..2092d9e3b6efa559f0af463b29f0ce78f4e760ad 100644 (file)
 #define OS_LOG_MAGIC_ADDR  ((unsigned long *)0x4f0)
 #define OS_LOG_PTR_ADDR    ((char **)0x4f4)
 
-bool bfin_os_log_check(void)
+int bfin_os_log_check(void)
 {
        if (*OS_LOG_MAGIC_ADDR != OS_LOG_MAGIC)
-               return false;
+               return 0;
        *OS_LOG_MAGIC_ADDR = 0;
-       return true;
+       return 1;
 }
 
 void bfin_os_log_dump(void)
index ab31dcb815130181fc8f3cf09c09cbbc3049e106..8ea8cde691af46d3dac02ab3cdf79c0e137ec9c8 100644 (file)
@@ -51,7 +51,7 @@ extern u_long get_dclk(void);
 
 # define bfin_revid() (bfin_read_CHIPID() >> 28)
 
-extern bool bfin_os_log_check(void);
+extern int bfin_os_log_check(void);
 extern void bfin_os_log_dump(void);
 
 extern void blackfin_icache_flush_range(const void *, const void *);