Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp161287lqj; Wed, 10 Apr 2024 07:07:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwV3D1JXDlLpEnMmq/WbVx0ARrn+ZBQwBdN11PSQOT0rfmX9+BvJUfwDCJskgdVqxRDYnPDP4eD8slzYRnX3/1ei8oRWY5FhHOKxwtow== X-Google-Smtp-Source: AGHT+IHfq75G1MOXzVN3TeOwTVZGBkG7fCatO4eprB9eWTgb0xh14scfTPqo/LpdxsoTIdxLJl1a X-Received: by 2002:a81:de4f:0:b0:618:518e:824b with SMTP id o15-20020a81de4f000000b00618518e824bmr1316286ywl.37.1712758037984; Wed, 10 Apr 2024 07:07:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712758037; cv=pass; d=google.com; s=arc-20160816; b=yLjvGpLYY7zhWM8pAMDUFA5lOoYkmCKfz/47T79ApUimTjwaW64IZ+MWF4EcK+hzlf tTn8PhxHaaPnHwZfxLN668OMROB8GmrqLgREv3FGEzn7/ZAHSJSLdKosl1YaJT3/G+U6 2/s4/9ULWVYBvFx+AXfHFudjR70rNp6fHzm36qMsbSCcI9TpyWw0nwQEnnTCnIGgwO5T uQNvbCBICwwvrKr4aA1dCLUz3VJfWCCnuuZApYeWBPh1oitdBK0s8h4HrgECnBeT3o5i Q73fRv4E0v7TbPRyREr1epxR4vgKZNraJyAEZftgT9k1Si9P9s/3fuRbhh4hRLXZZ3wd KC4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=oMpPV8zNvq5esbarJKEFc3uZfciTRaGsILmKJ6oGFvE=; fh=li+nOTWR+R+c2QHViCtM9aHEBgqgbpW81MUCABMZkAY=; b=xmU+NoNHmKa3iAXDGDMk61nR0h4TloruiecbiL5k0zDLFfjTtlsXcUxYnlOKDL4tdm /fpS4EemhILrO5I2AZ8rOf8AS3NFosiG5PPmyCY+mmBfBpNThZOsjkx2AJgknn+6jyei SGPy7R+Rq1ydyN+Td9LxBe9V25IBvDALkGhdwkvp+nZM/i5NBDrF5413KY83bsMQxFMG QQDwjpJ+5w1nKWV/RQ5bK1pupLHtWENBBBwRF3qettJHbeFatjigIoip10HyBUVZ0KCw UinyCrg2BMM0plmZnANxJM6o1WqssfgVNyB9eMIhaSTNvB+XQMu5dQgVFklDJnAj4M69 fcYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XlTmcwf6; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-138706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138706-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id hk4-20020a05690c61c400b0061446a395c2si5686380ywb.372.2024.04.10.07.07.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 07:07:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XlTmcwf6; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-138706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138706-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4E24C1C27F3A for ; Wed, 10 Apr 2024 14:03:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33CC915F409; Wed, 10 Apr 2024 13:59:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="XlTmcwf6" 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 3628416E88F; Wed, 10 Apr 2024 13:59:53 +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=1712757595; cv=none; b=mJ8XZ25Piu+WcgVeQDuJK4XsdUoEzPQWU9J6y72eQ0cICZMjgSwrlursskMbl5vPPOOgFOFQ0baLi9RuOhOrGrGT3TlamxqFxSVtju+w3OodOaNt1Gv6uFZxj6H2rsAnCz/weqgbQimyFfca9uQJ2Ri6U0+UUszjhQd2yvUeYgI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712757595; c=relaxed/simple; bh=/5bhpjeazwlvZ3hJGomrgefM1rAHoqOK4j10YLbq5Vw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mLcJlutQFIB+z2ZWGdBDdOT19CO/9Zx+lLdVzs5kpMUVWX8OqyW2z2po11QoTbEWz7/PWYaVKxFEGm20ICC4Iou3zwFH8rwuKvySO/l5NRLtA+KI34vtkJvVwTXSJ7rx4z6LgO2uvTCcMk+N8qsrMJo0su3dBR2+PrThVvPC5/I= 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=XlTmcwf6; 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 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 43ADxju0067933; Wed, 10 Apr 2024 08:59:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1712757585; bh=oMpPV8zNvq5esbarJKEFc3uZfciTRaGsILmKJ6oGFvE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XlTmcwf6y5zkStFb3IkU/FDddaPLWKsefhgGCU8SFegRrlaM/es+rwPzHahgGw594 F5DMq1tZHNJTyULw1QYSxXlIYJ8HQLlDlxC1izi1dySaO0drK/46nhWBX/u3L1g2A4 udneHfXewNGXmaT2bBL9XjSrrEsUr9FpSo9ohOgg= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 43ADxjai011492 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Apr 2024 08:59:45 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 10 Apr 2024 08:59:45 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE103.ent.ti.com (157.170.170.33) 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; Wed, 10 Apr 2024 08:59:45 -0500 Received: from fllvsmtp8.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 43ADxhap067183; Wed, 10 Apr 2024 08:59:45 -0500 From: Andrew Davis To: Jassi Brar , Hari Nagalla , Nick Saulnier , Bjorn Andersson , Mathieu Poirier CC: , , Andrew Davis Subject: [PATCH v2 05/13] mailbox: omap: Remove unneeded header omap-mailbox.h Date: Wed, 10 Apr 2024 08:59:34 -0500 Message-ID: <20240410135942.61667-6-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240410135942.61667-1-afd@ti.com> References: <20240410135942.61667-1-afd@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 The type of message sent using omap-mailbox is always u32. The definition of mbox_msg_t is uintptr_t which is wrong as that type changes based on the architecture (32bit vs 64bit). This type should have been defined as u32. Instead of making that change here, simply remove the header usage and fix the last couple users of the same in this driver. Signed-off-by: Andrew Davis --- drivers/mailbox/omap-mailbox.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/mailbox/omap-mailbox.c b/drivers/mailbox/omap-mailbox.c index 167348fb1b33b..4c673cb732ed1 100644 --- a/drivers/mailbox/omap-mailbox.c +++ b/drivers/mailbox/omap-mailbox.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include @@ -239,16 +238,14 @@ static void mbox_rx_work(struct work_struct *work) { struct omap_mbox_queue *mq = container_of(work, struct omap_mbox_queue, work); - mbox_msg_t data; u32 msg; int len; while (kfifo_len(&mq->fifo) >= sizeof(msg)) { len = kfifo_out(&mq->fifo, (unsigned char *)&msg, sizeof(msg)); WARN_ON(len != sizeof(msg)); - data = msg; - mbox_chan_received_data(mq->mbox->chan, (void *)data); + mbox_chan_received_data(mq->mbox->chan, (void *)(uintptr_t)msg); spin_lock_irq(&mq->lock); if (mq->full) { mq->full = false; @@ -515,7 +512,7 @@ static int omap_mbox_chan_send_data(struct mbox_chan *chan, void *data) { struct omap_mbox *mbox = mbox_chan_to_omap_mbox(chan); int ret; - u32 msg = omap_mbox_message(data); + u32 msg = (u32)(uintptr_t)(data); if (!mbox) return -EINVAL; -- 2.39.2