Skip to contentSkip to conversation

fs: cbfs: Fix build of fs/cbfs/cbfs.c when building u-boot sandbox on x86 32-bit

PATCH New Guillaume GARDET 3 participants 3 messages Jun 17, 2016 – Jun 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: cbfs: Fix build of fs/cbfs/cbfs.c when building u-boot sandbox on x86 32-bit

Fix the following build errors when building sandbox on x86 32-bit:

	In file included from fs/cbfs/cbfs.c:8:0:
	include/malloc.h:364:7: error: conflicting types for 'memset'
	void* memset(void*, int, size_t);
	^
	In file included from include/compiler.h:123:0,
			from include/cbfs.h:10,
			from fs/cbfs/cbfs.c:7:
	include/linux/string.h:78:15: note: previous declaration of 'memset' was here
	extern void * memset(void *,int,__kernel_size_t);
		^
	In file included from fs/cbfs/cbfs.c:8:0:
	include/malloc.h:365:7: error: conflicting types for 'memcpy'
	void* memcpy(void*, const void*, size_t);
	^
	In file included from include/compiler.h:123:0,
			from include/cbfs.h:10,
			from fs/cbfs/cbfs.c:7:
	include/linux/string.h:81:15: note: previous declaration of 'memcpy' was here
	extern void * memcpy(void *,const void *,__kernel_size_t);
		^
	scripts/Makefile.build:280: recipe for target 'fs/cbfs/cbfs.o' failed
---
 fs/cbfs/cbfs.c | 1 +
 1 file changed, 1 insertion(+)
fs/cbfs/cbfs.c +1 -0
index c81b611..95a48a4 100644
@@ -4,6 +4,7 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 
+#include <common.h>
 #include <cbfs.h>
 #include <malloc.h>
 #include <asm/byteorder.h>
Signature · 1 line
1.8.4.5
#1 lore raw

PATCH 1/1 fs: cbfs: Fix build of fs/cbfs/cbfs.c when building u-boot sandbox on x86 32-bit

Quoted 25 lines · Guillaume GARDET

Fix the following build errors when building sandbox on x86 32-bit:

        In file included from fs/cbfs/cbfs.c:8:0:
        include/malloc.h:364:7: error: conflicting types for 'memset'
        void* memset(void*, int, size_t);
        ^
        In file included from include/compiler.h:123:0,
                        from include/cbfs.h:10,
                        from fs/cbfs/cbfs.c:7:
        include/linux/string.h:78:15: note: previous declaration of 'memset' was here
        extern void * memset(void *,int,__kernel_size_t);
                ^
        In file included from fs/cbfs/cbfs.c:8:0:
        include/malloc.h:365:7: error: conflicting types for 'memcpy'
        void* memcpy(void*, const void*, size_t);
        ^
        In file included from include/compiler.h:123:0,
                        from include/cbfs.h:10,
                        from fs/cbfs/cbfs.c:7:
        include/linux/string.h:81:15: note: previous declaration of 'memcpy' was here
        extern void * memcpy(void *,const void *,__kernel_size_t);
                ^
        scripts/Makefile.build:280: recipe for target 'fs/cbfs/cbfs.o' failed
Quoted 7 lines
---
 fs/cbfs/cbfs.c | 1 +
 1 file changed, 1 insertion(+)
#2 lore raw

PATCH 1/1 fs: cbfs: Fix build of fs/cbfs/cbfs.c when building u-boot sandbox on x86 32-bit

In reply to Guillaume GARDET
Quoted 25 lines · Guillaume GARDET

Fix the following build errors when building sandbox on x86 32-bit:

	In file included from fs/cbfs/cbfs.c:8:0:
	include/malloc.h:364:7: error: conflicting types for 'memset'
	void* memset(void*, int, size_t);
	^
	In file included from include/compiler.h:123:0,
			from include/cbfs.h:10,
			from fs/cbfs/cbfs.c:7:
	include/linux/string.h:78:15: note: previous declaration of 'memset' was here
	extern void * memset(void *,int,__kernel_size_t);
		^
	In file included from fs/cbfs/cbfs.c:8:0:
	include/malloc.h:365:7: error: conflicting types for 'memcpy'
	void* memcpy(void*, const void*, size_t);
	^
	In file included from include/compiler.h:123:0,
			from include/cbfs.h:10,
			from fs/cbfs/cbfs.c:7:
	include/linux/string.h:81:15: note: previous declaration of 'memcpy' was here
	extern void * memcpy(void *,const void *,__kernel_size_t);
		^
	scripts/Makefile.build:280: recipe for target 'fs/cbfs/cbfs.o' failed
Quoted 4 lines

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160619/77af3d80/attachment.sig>