[PATCH] hazptr: Modify name of global variable that creates confusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe perfbook" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux