From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753646AbdC2HAd (ORCPT ); Wed, 29 Mar 2017 03:00:33 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33849 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753274AbdC2HAb (ORCPT ); Wed, 29 Mar 2017 03:00:31 -0400 From: Zhengyi Shen To: hpa@zytor.com Cc: tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, keescook@chromium.org, linux-kernel@vger.kernel.org Subject: [PATCH] arch:x86/boot/compressed/error: Add declaration for necessary head file Date: Wed, 29 Mar 2017 15:00:20 +0800 Message-Id: <1490770820-24472-1-git-send-email-shenzhengyi@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add declaration for the error.h file to correct the sparse warnings. Sparse warnings: arch/x86/boot/compressed/error.c:8:6: warning: symbol 'warn' was not declared. Should it be static? arch/x86/boot/compressed/error.c:15:6: warning: symbol 'error' was not declared. Should it be static? Signed-off-by: Zhengyi Shen --- arch/x86/boot/compressed/error.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/boot/compressed/error.c b/arch/x86/boot/compressed/error.c index 6248740..3192202 100644 --- a/arch/x86/boot/compressed/error.c +++ b/arch/x86/boot/compressed/error.c @@ -4,6 +4,7 @@ * memcpy() and memmove() are defined for the compressed boot environment. */ #include "misc.h" +#include "error.h" void warn(char *m) { -- 2.7.4