From: Paul E. McKenney Date: Thu, 19 Apr 2018 16:05:50 +0000 (-0700) Subject: rcu: Cleanup, don't put ->completed into an int X-Git-Tag: Ubuntu-5.13.0-19.19~10922^2~1^2^3~9 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a508aa597ec2f046c00b8809f887f90cf1aaa47f;p=mirror_ubuntu-jammy-kernel.git rcu: Cleanup, don't put ->completed into an int It is true that currently only the low-order two bits are used, so there should be no problem given modern machines and compilers, but good hygiene and maintainability dictates use of an unsigned long instead of an int. This commit therefore makes this change. Signed-off-by: Paul E. McKenney Tested-by: Nicholas Piggin --- diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index fbacc486ed4c..c7b1e6b2a3da 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -1765,7 +1765,7 @@ out: */ static bool rcu_future_gp_cleanup(struct rcu_state *rsp, struct rcu_node *rnp) { - int c = rnp->completed; + unsigned long c = rnp->completed; bool needmore; struct rcu_data *rdp = this_cpu_ptr(rsp->rda);