mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
soc: qcom: smp2p: Fix two warnings
drivers/soc/qcom/smp2p.c: In function 'qcom_smp2p_do_ssr_ack':
drivers/soc/qcom/smp2p.c:214:2: error:
suggest parentheses around assignment used as truth
value [-Werror=parentheses]
drivers/soc/qcom/smp2p.c: In function 'qcom_smp2p_notify_in':
drivers/soc/qcom/smp2p.c:176:23: error:
format '%x' expects argument of type 'unsigned int', but argument 6
has type 'long unsigned int' [-Werror=format=]
drivers/soc/qcom/smp2p.c:281:3: note: in expansion of macro 'SMP2P_INFO'.
Fixes: 322d40176558 ("soc: qcom: smp2p: Add snapshot of smp2p driver")
Change-Id: Ic0dedbadbe4e61dd53e7bb22c54c2eb2ca94eb48
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
parent
11a1ec6583
commit
a221c54d72
1 changed files with 3 additions and 2 deletions
|
|
@ -205,7 +205,8 @@ static void qcom_smp2p_do_ssr_ack(struct qcom_smp2p *smp2p)
|
|||
u32 ack;
|
||||
u32 val;
|
||||
|
||||
smp2p->ssr_ack = ack = !smp2p->ssr_ack;
|
||||
ack = !smp2p->ssr_ack;
|
||||
smp2p->ssr_ack = ack;
|
||||
ack = ack << SMP2P_FLAGS_RESTART_ACK_BIT;
|
||||
|
||||
val = out->flags & ~BIT(SMP2P_FLAGS_RESTART_ACK_BIT);
|
||||
|
|
@ -272,7 +273,7 @@ static void qcom_smp2p_notify_in(struct qcom_smp2p *smp2p)
|
|||
if (!status)
|
||||
continue;
|
||||
|
||||
SMP2P_INFO("%d: %s: status:%0x val:%0x\n",
|
||||
SMP2P_INFO("%d: %s: status:%0lx val:%0x\n",
|
||||
smp2p->remote_pid, entry->name, status, val);
|
||||
|
||||
for_each_set_bit(i, &status, 32) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue