[PATCH v2 0/2] x86/purgatory: Fix sparse warnings

From: Tobin C. Harding
Date: Sun Feb 12 2017 - 16:10:27 EST


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