From nobody Sat Feb 7 10:07:43 2026 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F4E61311AA for ; Mon, 25 Mar 2024 16:55:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711385721; cv=none; b=Ubgj+8k1HwAtKRpNNMq06YUSWmNucPQmF/ICD6+PIz5YJ7oqT0uZ36KpYw9aXaB9ysEuBmwydI+HJ1qba0hHBtLX7qg2x7LtDkP3xjpC+l+6wTgMP0JV1Ct4gDh1QdeW5rYvNrtAhxGHZJUPkEneJUVay6HB+FCFzC1UqN/602c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711385721; c=relaxed/simple; bh=yu6iyNbbLBn5lwo405cEgoNMiuIhYFY5CeNh0z/cPGs=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=GK0puiDABGB7lEqQVeFpUZkECQWLs9XbnsW4Z9yD3unwnSk8J4m3znluCbB72H3GvvREe3PkM/QvcM4+1nlfkmmNHCkLFQIMU0PV6U8gt8jFdKgeqIa00MqqNRC5xpiSf7hxW1/TyZDNAEpEYSX1P4DnROk56lHJPHf0a5Fxbj0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=sJ+3121D; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="sJ+3121D" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 42PGt9kj056059; Mon, 25 Mar 2024 11:55:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1711385709; bh=7BGhw+x9Vbv5zmisO7BnWlr/a0jukwZDhsfi6iEDmKs=; h=From:To:CC:Subject:Date; b=sJ+3121DuG2joAbeAShe1abUFFtdubEr9/UUqWY0hC5mXRtytt0U5nVhEQFOxIftE IburLa+1DDCoCDlpLg6BXhrdE+1/0/MMCzhk1CdNiQit3Wr71qNoioBXD1vHq0ERql 5TdNpS4I2ERWTr9W74kdBOu/xIb0Aak8Y4J2kuWU= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 42PGt9Jt060618 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 25 Mar 2024 11:55:09 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 25 Mar 2024 11:55:09 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 25 Mar 2024 11:55:09 -0500 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 42PGt8Ye111072; Mon, 25 Mar 2024 11:55:08 -0500 From: Andrew Davis To: Nishanth Menon , Vignesh Raghavendra , Santosh Shilimkar CC: , , Andrew Davis Subject: [PATCH] soc: ti: wkup_m3_ipc: Send NULL dummy message instead of pointer message Date: Mon, 25 Mar 2024 11:55:07 -0500 Message-ID: <20240325165507.30323-1-afd@ti.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Content-Type: text/plain; charset="utf-8" mbox_send_message() sends a u32 bit message, not a pointer to a message. We only convert to a pointer type as a generic type. If we want to send a dummy message of 0, then simply send 0 (NULL). Signed-off-by: Andrew Davis --- drivers/soc/ti/wkup_m3_ipc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/soc/ti/wkup_m3_ipc.c b/drivers/soc/ti/wkup_m3_ipc.c index 6a1c6b34c414a..88f774db92084 100644 --- a/drivers/soc/ti/wkup_m3_ipc.c +++ b/drivers/soc/ti/wkup_m3_ipc.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -314,7 +313,6 @@ static irqreturn_t wkup_m3_txev_handler(int irq, void *= ipc_data) static int wkup_m3_ping(struct wkup_m3_ipc *m3_ipc) { struct device *dev =3D m3_ipc->dev; - mbox_msg_t dummy_msg =3D 0; int ret; =20 if (!m3_ipc->mbox) { @@ -330,7 +328,7 @@ static int wkup_m3_ping(struct wkup_m3_ipc *m3_ipc) * the RX callback to avoid multiple interrupts being received * by the CM3. */ - ret =3D mbox_send_message(m3_ipc->mbox, &dummy_msg); + ret =3D mbox_send_message(m3_ipc->mbox, NULL); if (ret < 0) { dev_err(dev, "%s: mbox_send_message() failed: %d\n", __func__, ret); @@ -352,7 +350,6 @@ static int wkup_m3_ping(struct wkup_m3_ipc *m3_ipc) static int wkup_m3_ping_noirq(struct wkup_m3_ipc *m3_ipc) { struct device *dev =3D m3_ipc->dev; - mbox_msg_t dummy_msg =3D 0; int ret; =20 if (!m3_ipc->mbox) { @@ -361,7 +358,7 @@ static int wkup_m3_ping_noirq(struct wkup_m3_ipc *m3_ip= c) return -EIO; } =20 - ret =3D mbox_send_message(m3_ipc->mbox, &dummy_msg); + ret =3D mbox_send_message(m3_ipc->mbox, NULL); if (ret < 0) { dev_err(dev, "%s: mbox_send_message() failed: %d\n", __func__, ret); --=20 2.39.2