Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ea5c6af9 authored by Stephen Boyd's avatar Stephen Boyd
Browse files

soc: qcom: smp2p: Silence warning in spinlock test



If the RTB logging wrappers aren't present this warning will
appear:

drivers/soc/qcom/smp2p_spinlock_test.c:
In function 'smp2p_ut_remote_spinlock_rpm':
drivers/soc/qcom/smp2p_spinlock_test.c:422:4:
warning: operation on 'data_ptr->apps_lock_count' may be
undefined [-Wsequence-point]

because the writel_relaxed() macro evaluates to a single 'str'
instruction that can't have any side effects (like the
pre-increment of apps_lock_count. Fix it by doing the increment
before the writel_relaxed().

Change-Id: I51ab23b6b30aa2de31bb55e1b6824644ba98fe06
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent a9b38801
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