Received: with ECARTIS (v1.0.0; list linux-mips); Sun, 20 Jul 2014 19:58:35 +0200 (CEST) Received: from hall.aurel32.net ([195.154.112.97]:44069 "EHLO hall.aurel32.net" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6822330AbaGTR6aAgMIU (ORCPT ); Sun, 20 Jul 2014 19:58:30 +0200 Received: from [2001:470:d4ed:0:5e26:aff:fe2b:6f5b] (helo=volta.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1X8vNV-0003Fr-C9; Sun, 20 Jul 2014 19:58:29 +0200 Received: from aurel32 by volta.rr44.fr with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1X8vNU-0007fw-2x; Sun, 20 Jul 2014 19:58:28 +0200 From: Aurelien Jarno To: Ralf Baechle Cc: linux-mips@linux-mips.org, Aurelien Jarno , stable@vger.kernel.org Subject: [PATCH v3] MIPS: ZBOOT: add missing include Date: Sun, 20 Jul 2014 19:58:23 +0200 Message-Id: <1405879103-29463-1-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 2.0.0 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 41352 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: aurelien@aurel32.net Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Commit dc4d7b37 (MIPS: ZBOOT: gather string functions into string.c) moved 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 does not fail with the standard configuration, as when CONFIG_DYNAMIC_DEBUG is not enabled gets included in include/linux/dynamic_debug.h. There might be other ways for it to get indirectly included. We can't add the include 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). Cc: stable@vger.kernel.org Signed-off-by: Aurelien Jarno --- arch/mips/boot/compressed/decompress.c | 1 + 1 file changed, 1 insertion(+) v2 -> v3: - Add commit dc4d7b37 summary line in parens v1 -> v2: - Fixed commit description - Added a Cc: stable@vger.kernel.org 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 #include +#include #include -- 2.0.0