* [PATCH] hazptr: Modify name of global variable that creates confusion
@ 2015-03-19 19:52 Andreea-Cristina Bernat
0 siblings, 0 replies; only message in thread
From: Andreea-Cristina Bernat @ 2015-03-19 19:52 UTC (permalink / raw)
To: paulmckrcu, perfbook
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-19 19:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19 19:52 [PATCH] hazptr: Modify name of global variable that creates confusion Andreea-Cristina Bernat
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.