Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1579278

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

From "Tobin C. Harding" <me@tobin.cc>
Newsgroups linux.kernel
Subject [PATCH v2 0/2] x86/purgatory: Fix sparse warnings
Date 2017-02-12 22:10 +0100
Message-ID <ta9zb-2Qd-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] x86/purgatory: Fix sparse warnings "Tobin C. Harding" <me@tobin.cc> - 2017-02-12 22:10 +0100
  [PATCH v2 2/2] x86/purgatory: Fix sparse warning, symbol not declared "Tobin C. Harding" <me@tobin.cc> - 2017-02-12 22:10 +0100
    Re: [PATCH v2 2/2] x86/purgatory: Fix sparse warning, symbol not  declared kbuild test robot <lkp@intel.com> - 2017-02-12 23:10 +0100

csiph-web