From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272AbdBLGpl (ORCPT ); Sun, 12 Feb 2017 01:45:41 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59563 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751234AbdBLGpk (ORCPT ); Sun, 12 Feb 2017 01:45:40 -0500 X-ME-Sender: X-Sasl-enc: Lbx/k3Ou0iOGxLQQs2jeBpHX/8MVWCgojXelkXL3VN4p 1486881914 From: "Tobin C. Harding" To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, "Tobin C. Harding" Subject: [PATCH 2/2] arch/x86: Fix sparse warning symbol not declared Date: Sun, 12 Feb 2017 17:44:30 +1100 Message-Id: <1486881870-2490-3-git-send-email-me@tobin.cc> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486881870-2490-1-git-send-email-me@tobin.cc> References: <1486881870-2490-1-git-send-email-me@tobin.cc> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds function declaration in order to quiet sparse symbol not declared warning. Signed-off-by: Tobin C. Harding --- Unsure why adding declaration quiets sparse. This may not be the correct solution. Only testing done is building and booting kernel. Since 'purgatory' is called from assembler and does not need forward declaration the only advantage to this patch seems to be to save the next newbie from investigating the sparse warning. arch/x86/purgatory/purgatory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/purgatory/purgatory.c b/arch/x86/purgatory/purgatory.c index 2a2cbe5..129433c 100644 --- a/arch/x86/purgatory/purgatory.c +++ b/arch/x86/purgatory/purgatory.c @@ -18,6 +18,8 @@ struct sha_region { unsigned long len; }; +void purgatory(void); + static unsigned long backup_dest = 0; static unsigned long backup_src = 0; static unsigned long backup_sz = 0; -- 2.7.4