From: Andreea-Cristina Bernat <bernat.ada@gmail.com>
To: paulmckrcu@gmail.com, perfbook@vger.kernel.org
Subject: [PATCH] hazptr: Modify name of global variable that creates confusion
Date: Thu, 19 Mar 2015 21:52:05 +0200 [thread overview]
Message-ID: <20150319195205.GA30570@ada> (raw)
Since the former global variable plist was assigned to the local
variable plist from the hazptr_init() function, the following warning
was generated:
'plist' defined but not used.
Therefore, this patch renames the global variable plist to gplist.
Signed-off-by: Andreea-Cristina Bernat <bernat.ada@gmail.com>
---
CodeSamples/defer/hazptr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/CodeSamples/defer/hazptr.c b/CodeSamples/defer/hazptr.c
index e8c8cbc..2e8f819 100644
--- a/CodeSamples/defer/hazptr.c
+++ b/CodeSamples/defer/hazptr.c
@@ -23,7 +23,7 @@
static hazptr_head_t __thread *rlist;
static unsigned long __thread rcount;
-static hazptr_head_t __thread **plist;
+static hazptr_head_t __thread **gplist;
void hazptr_init(void)
{
@@ -94,7 +94,7 @@ void hazptr_scan()
hazptr_head_t *tmplist;
/* List of hazard pointers, and its size. */
- hazptr_head_t **plist = plist;
+ hazptr_head_t **plist = gplist;
unsigned long psize;
if (plist == NULL) {
--
1.9.1
reply other threads:[~2015-03-19 19:52 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=20150319195205.GA30570@ada \
--to=bernat.ada@gmail.com \
--cc=paulmckrcu@gmail.com \
--cc=perfbook@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.