From: Ben Dooks <ben.dooks@codethink.co.uk>
To: linux-kernel@vger.kernel.org
Cc: peterz@infradead.org, mingo@redhat.com, will@kernel.org,
longman@redhat.com, boqun.feng@gmail.com,
Ben Dooks <ben.dooks@codethink.co.uk>
Subject: [PATCH] lockdep: make variable check_consistency static
Date: Wed, 22 Nov 2023 10:53:36 +0000 [thread overview]
Message-ID: <20231122105336.256919-1-ben.dooks@codethink.co.uk> (raw)
The variable check_consistency is not used outside of this
file so make it static to fix the following sparse warning:
kernel/locking/lockdep.c:1148:5: warning: symbol 'check_consistency' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
kernel/locking/lockdep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index e85b5ad3e206..73aeee69ebd1 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -1145,7 +1145,7 @@ static bool __check_data_structures(void)
return true;
}
-int check_consistency = 0;
+static int check_consistency = 0;
module_param(check_consistency, int, 0644);
static void check_data_structures(void)
--
2.37.2.352.g3c44437643
reply other threads:[~2023-11-22 10:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231122105336.256919-1-ben.dooks@codethink.co.uk \
--to=ben.dooks@codethink.co.uk \
--cc=boqun.feng@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®