rcu: Replace ________p1 and _________p1 with __UNIQUE_ID(rcu)
authorChun-Hung Tseng <henrybear327@gmail.com>
Wed, 15 Sep 2021 09:02:18 +0000 (17:02 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 1 Dec 2021 01:25:20 +0000 (17:25 -0800)
commit24ba53017e188e031f9cb8b290286fad52d2af00
tree15790489bf7e8977f17fefd28d7c2fb9053c1f26
parent8c0abfd6d2f6b0221194241ac2908751a2a0385f
rcu: Replace ________p1 and _________p1 with __UNIQUE_ID(rcu)

This commit replaces both ________p1 and _________p1 with __UNIQUE_ID(rcu),
and also adjusts the callers of the affected macros.

__UNIQUE_ID(rcu) will generate unique variable names during compilation,
which eliminates the need of ________p1 and _________p1 (both having 4
occurrences prior to the code change).  This also avoids the variable
name shadowing issue, or at least makes those wishing to cause shadowing
problems work much harder to do so.

The same idea is used for the min/max macros (commit 589a978 and commit
e9092d0).

Signed-off-by: Jim Huang <jserv@ccns.ncku.edu.tw>
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/rcupdate.h
include/linux/srcu.h