diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2019-06-13 11:44:06 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-06-13 11:44:06 +1000 |
commit | 728c73b8efb8dbdec78671b872f3518da59f5804 (patch) | |
tree | ba573e932810f74e864bc3fc4c209692cb5a773d | |
parent | df9d972c23086bc26efecc7519f008efab791419 (diff) | |
download | skiboot-728c73b8efb8dbdec78671b872f3518da59f5804.zip skiboot-728c73b8efb8dbdec78671b872f3518da59f5804.tar.gz skiboot-728c73b8efb8dbdec78671b872f3518da59f5804.tar.bz2 |
sparse: fix bt_lock should be static
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@linux.ibm.com>
-rw-r--r-- | core/stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stack.c b/core/stack.c index d33d2fe..b5a352d 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) { |