* [PATCH] MIPS: ZBOOT: add missing <linux/string.h> include
@ 2014-07-20 17:38 Aurelien Jarno
2014-07-20 17:50 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Aurelien Jarno @ 2014-07-20 17:38 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips, Aurelien Jarno
Commit dc4d7b37 moves the string related functions into a separate file,
which might cause the following build error, depending on the
configuration:
| CC arch/mips/boot/compressed/decompress.o
| In file included from linux/arch/mips/boot/compressed/../../../../lib/decompress_unxz.c:234:0,
| from linux/arch/mips/boot/compressed/decompress.c:67:
| linux/arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c: In function 'fill_temp':
| linux/arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c:162:2: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]
| cc1: some warnings being treated as errors
| linux/scripts/Makefile.build:308: recipe for target 'arch/mips/boot/compressed/decompress.o' failed
| make[6]: *** [arch/mips/boot/compressed/decompress.o] Error 1
| linux/arch/mips/Makefile:308: recipe for target 'vmlinuz' failed
It doesn't not fail with the standard configuration, as when
CONFIG_DYNAMIC_DEBUG is not set <linux/string.h> gets included in
include/linux/dynamic_debug.h. There might be other way for it to
get indirectly included.
We can't add the include should not be added directly in xz_dec_stream.c
as some architectures might want to use a different version for the
boot/ directory (see for example arch/x86/boot/string.h).
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
arch/mips/boot/compressed/decompress.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/boot/compressed/decompress.c b/arch/mips/boot/compressed/decompress.c
index c00c4dd..5244cec 100644
--- a/arch/mips/boot/compressed/decompress.c
+++ b/arch/mips/boot/compressed/decompress.c
@@ -13,6 +13,7 @@
#include <linux/types.h>
#include <linux/kernel.h>
+#include <linux/string.h>
#include <asm/addrspace.h>
--
2.0.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MIPS: ZBOOT: add missing <linux/string.h> include
2014-07-20 17:38 [PATCH] MIPS: ZBOOT: add missing <linux/string.h> include Aurelien Jarno
@ 2014-07-20 17:50 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2014-07-20 17:50 UTC (permalink / raw)
To: Aurelien Jarno, Ralf Baechle; +Cc: linux-mips
Hello.
On 07/20/2014 09:38 PM, Aurelien Jarno wrote:
> Commit dc4d7b37 moves the string related functions into a separate file,
Please also specify that commit's summary line in parens.
> which might cause the following build error, depending on the
> configuration:
> | CC arch/mips/boot/compressed/decompress.o
> | In file included from linux/arch/mips/boot/compressed/../../../../lib/decompress_unxz.c:234:0,
> | from linux/arch/mips/boot/compressed/decompress.c:67:
> | linux/arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c: In function 'fill_temp':
> | linux/arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c:162:2: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]
> | cc1: some warnings being treated as errors
> | linux/scripts/Makefile.build:308: recipe for target 'arch/mips/boot/compressed/decompress.o' failed
> | make[6]: *** [arch/mips/boot/compressed/decompress.o] Error 1
> | linux/arch/mips/Makefile:308: recipe for target 'vmlinuz' failed
> It doesn't not fail with the standard configuration, as when
> CONFIG_DYNAMIC_DEBUG is not set <linux/string.h> gets included in
> include/linux/dynamic_debug.h. There might be other way for it to
> get indirectly included.
> We can't add the include should not be added directly in xz_dec_stream.c
I can't parse that. :-)
> as some architectures might want to use a different version for the
> boot/ directory (see for example arch/x86/boot/string.h).
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
WBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-20 17:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-20 17:38 [PATCH] MIPS: ZBOOT: add missing <linux/string.h> include Aurelien Jarno
2014-07-20 17:50 ` Sergei Shtylyov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.