Skip to content
Commit 24ba5301 authored by Chun-Hung Tseng's avatar Chun-Hung Tseng Committed by Paul E. McKenney
Browse files

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 589a9785 and commit
e9092d0d).

Signed-off-by: default avatarJim Huang <jserv@ccns.ncku.edu.tw>
Signed-off-by: default avatarChun-Hung Tseng <henrybear327@gmail.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 8c0abfd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment