[Skiboot] [PATCH] sparse: fix bt_lock should be static

Stewart Smith stewart at linux.ibm.com
Thu Jun 13 13:15:53 AEST 2019


Fix this sparse warning:
  core/stack.c:123:13: warning: symbol 'bt_lock' was not declared. Should it be static?

Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
 core/stack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/stack.c b/core/stack.c
index d33d2fe771f7..b5a352d1ad71 100644
--- a/core/stack.c
+++ b/core/stack.c
@@ -120,7 +120,7 @@ void backtrace_print(struct bt_entry *entries, struct bt_metadata *metadata,
  * a backtrace they garble each other. To prevent this we use a seperate
  * lock to serialise printing of the dumps.
  */
-struct lock bt_lock = LOCK_UNLOCKED;
+static struct lock bt_lock = LOCK_UNLOCKED;
 
 void backtrace(void)
 {
-- 
2.21.0



More information about the Skiboot mailing list