From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751324AbdBLVHy (ORCPT ); Sun, 12 Feb 2017 16:07:54 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:40644 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750999AbdBLVHx (ORCPT ); Sun, 12 Feb 2017 16:07:53 -0500 X-ME-Sender: X-Sasl-enc: xSmcAkE/MT2s9aSWO+3FZoXI/MwfOODwdgdn0K1ZKm5o 1486933671 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 v2 0/2] x86/purgatory: Fix sparse warnings Date: Mon, 13 Feb 2017 08:07:30 +1100 Message-Id: <1486933652-28245-1-git-send-email-me@tobin.cc> 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 Sparse emits multiple warnings of type 'symbol was not declared'. Separate fixes into two patches. In first patch add static keyword to functions and variables which have file scope only. In the second patch add a header file with the function declaration. Include the header file in the C source file defining the function in order to fix the sparse warning. Include the header file in ASM file containing the call site thereby adding documentation of usage. Tobin C. Harding (2): x86/purgatory: Fix sparse warning, symbol not declared x86/purgatory: Fix sparse warning, symbol not declared arch/x86/purgatory/purgatory.c | 11 ++++++----- arch/x86/purgatory/purgatory.h | 7 +++++++ arch/x86/purgatory/setup-x86_64.S | 3 ++- 3 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 arch/x86/purgatory/purgatory.h -- 2.7.4