mirror of
https://github.com/frank-w/u-boot.git
synced 2025-12-18 05:14:59 +08:00
hush: re-sequence includes
'make tests' on a 32bit ARM system leads to
In file included from ../common/cli_hush.c:79:
../include/malloc.h:364:7: error: conflicting types for ‘memset’
void* memset(void*, int, size_t);
^~~~~~
In file included from ../include/compiler.h:126,
from ../include/env.h:12,
from ../common/cli_hush.c:78:
../include/linux/string.h:103:15:
note: previous declaration of ‘memset’ was here
extern void * memset(void *,int,__kernel_size_t);
^~~~~~
In file included from ../common/cli_hush.c:79:
../include/malloc.h:365:7: error: conflicting types for ‘memcpy’
void* memcpy(void*, const void*, size_t);
^~~~~~
In file included from ../include/compiler.h:126,
from ../include/env.h:12,
from ../common/cli_hush.c:78:
../include/linux/string.h:106:15:
note: previous declaration of ‘memcpy’ was here
extern void * memcpy(void *,const void *,__kernel_size_t);
^~~~~~
According to the U-Boot coding style guide common.h should be the first
include.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
committed by
Tom Rini
parent
bb71a2d9dc
commit
68c0912bf2
@@ -75,10 +75,10 @@
|
||||
|
||||
#define __U_BOOT__
|
||||
#ifdef __U_BOOT__
|
||||
#include <common.h> /* readline */
|
||||
#include <env.h>
|
||||
#include <malloc.h> /* malloc, free, realloc*/
|
||||
#include <linux/ctype.h> /* isalpha, isdigit */
|
||||
#include <common.h> /* readline */
|
||||
#include <console.h>
|
||||
#include <bootretry.h>
|
||||
#include <cli.h>
|
||||
|
||||
Reference in New Issue
Block a user