public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] x86/purgatory: Fix sparse warnings
@ 2017-02-12 21:07 Tobin C. Harding
  2017-02-12 21:07 ` [PATCH v2 1/2] x86/purgatory: Fix sparse warning, symbol not declared Tobin C. Harding
  2017-02-12 21:07 ` [PATCH v2 2/2] " Tobin C. Harding
  0 siblings, 2 replies; 4+ messages in thread
From: Tobin C. Harding @ 2017-02-12 21:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86,
	Tobin C. Harding

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-12 22:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-12 21:07 [PATCH v2 0/2] x86/purgatory: Fix sparse warnings Tobin C. Harding
2017-02-12 21:07 ` [PATCH v2 1/2] x86/purgatory: Fix sparse warning, symbol not declared Tobin C. Harding
2017-02-12 21:07 ` [PATCH v2 2/2] " Tobin C. Harding
2017-02-12 22:08   ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox