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

Commit 31860f19 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

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: 322d4017 ("soc: qcom: smp2p: Add snapshot of smp2p driver")
Change-Id: Ic0dedbadbe4e61dd53e7bb22c54c2eb2ca94eb48
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 4b1da898
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015, Sony Mobile Communications AB.
 * Copyright (c) 2012-2013, 2018 The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2013, 2018-2019 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -211,7 +211,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);
@@ -278,7 +279,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) {