Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2399579lqp; Sun, 24 Mar 2024 17:51:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8awGhfuD4chPjO1rr+S0GA9VT6uQrbZagCrw9dCJApgVbDDdSu4X44HK439i7wpltxx4xjlDyJzG+tRi2KLF+F+BhdSJFvqYxAYSImQ== X-Google-Smtp-Source: AGHT+IHcwtFqXfMZJaJTb8Q9Qx53eWlWLC5ZMQv627RDhPL2xTtWZQpnzntQpixzYFOrO+aZIA9b X-Received: by 2002:a50:9f0f:0:b0:56c:16c9:cb00 with SMTP id b15-20020a509f0f000000b0056c16c9cb00mr289301edf.12.1711327909570; Sun, 24 Mar 2024 17:51:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711327909; cv=pass; d=google.com; s=arc-20160816; b=VbLRIAceWgFKZEKh+NqoSuAQxXR+GWpzUpbIx1g45cYOS7/Nat8bxCNnMpcKT+zbr7 l+i10f79a90bVFnNbWPRp0rFvBxS8ZGkMpveeY1KqHO7NxvRTzAKbdG3SuG1GG7i862K jaAvoMiOBowq2neZiimvBioZupPIcUaRq/YdmvE0WHEfuXQWF+3aA36LwOE1CCklUaXk U0D6IyFLOW3PA9GUHaigT0Gv5jZj8BIbZcrGiH9cSt+PIdQ4m9A54Mjgp/aJCTcALA/x WVsc28/QwdqaBz8Zk0hnzbdeb2csx6FWl4A1qajGRXNu+kdoFF0NMmB9v4PAYXrXydf/ luSQ== 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=/+hKco1jq+WcCOAhEgeyslNWUVcf8UMSEL9sdXKDDYc=; fh=I+lTqtgwUpAtAszFfRq+4vYWnCj5494p5MYOl0R+iRY=; b=QD/fzce8eTks2DweCV4yl81v4StyMCmW7nf9OWBc5MikzFyt9CJ1/kPYEhpin5S35/ cnR8FrtShFnpzebpg4I6Ma6R2+KBn0MXGCT8ghYSjsETvXTpkZnMq5Ft/pIkO5RnAhwH Z75Bjlo6fJVrO7/kTsdV4H7pcRIrjVi3o2do36dgt8r5XoMU3TXT1HGNh3C99gDeP1K6 5RQax5inUpKARtJRA+YyhPrGn7BOwa53STWaBc0F6NRMmaZBUHz9X0iXrvnmj6OL9LGH d9q295KVh9ruV0xIyuROEnKVJ3GaXcckOdWA8pi4Js7lsjbLuOU1pPrUon9G59rk1/zh TspQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=crEwBho5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113499-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113499-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id fd20-20020a056402389400b0056b9b4dced0si2177308edb.376.2024.03.24.17.51.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:51:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113499-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=crEwBho5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113499-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113499-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 437A41F245B3 for ; Mon, 25 Mar 2024 00:51:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE2A91B9DB3; Sun, 24 Mar 2024 22:45:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="crEwBho5" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EAF6713D53E; Sun, 24 Mar 2024 22:45:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320301; cv=none; b=nhsZU4pA+AERLzm2G/lCsgPXW7ude+KANPOZqTGdIhPDbks3jjDXZZ1zs4xCmJiEhYitW5T1rAaNPyXIQHu4+w5TowjusSCd0S3kDSmnFMrQQ84VLpxVZie4Mx0iDUY33m+Vjv/jThu3VDFJ9icDsolh07LsbdHyBHfoP8w+f5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320301; c=relaxed/simple; bh=AMkb6V5/8OzM2qunQBvo0Q2DSac62dcJLz4Z4OClx3g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tdD2zfLWUkq8kfFm6mRtxxoE5qDLQTyHu+0yRswIhVxVj4Cem+940xzP40Dsy7MNrQMCrAL0YEbKfNKazDSwbdOqP7kNPmwD62yZdDCflPIxQuoe6vn8SAF0OqoyghZHhJ707dAVZg7M/Kn+KJ9mt4Ruo2jlaZTMvXQk4qd8D0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=crEwBho5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 184F0C433C7; Sun, 24 Mar 2024 22:45:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320300; bh=AMkb6V5/8OzM2qunQBvo0Q2DSac62dcJLz4Z4OClx3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=crEwBho5YolacVFBzd7GvxAtLHsx2cSEJ+1rr+7aedxZZH+Q+Gi+iDmLZoXzdtNwl kAogK+71HRaq0LC0skEFfEoM8/VrNCVT2l/TXG/e61VnJsITlStSint5ta3IJ/VX5c 9uSKz1f4GwfjhUaJRc0jkgzwaWpFW5omOnqGTMianco59JerXxQOAaW9Y/JKzsxcAQ mOVc98w7Q3rCEZYVjO4eROb+vCoCsrwMQYlygiCrX72AKgXrHRfW+TV0OjL6EPlc/h QMAwX8Qi5WY60DmPNFIkf7I8AwwkxrTopwTq0NCFD4XkMPzJJ7ctoD82wTRffA2GKk j6rHdIMKAe9oA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnaud Pouliquen , kernel test robot , Mathieu Poirier , Sasha Levin Subject: [PATCH 6.8 608/715] remoteproc: stm32: Fix incorrect type in assignment for va Date: Sun, 24 Mar 2024 18:33:07 -0400 Message-ID: <20240324223455.1342824-609-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Arnaud Pouliquen [ Upstream commit 32381bbccba4c21145c571701f8f7fb1d9b3a92e ] The sparse tool complains about the attribute conversion between a _iomem void * and a void *: stm32_rproc.c:122:12: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] __iomem * @@ stm32_rproc.c:122:12: sparse: expected void *va stm32_rproc.c:122:12: sparse: got void [noderef] __iomem * Add '__force' to explicitly specify that the cast is intentional. This conversion is necessary to cast to virtual addresses pointer,used, by the remoteproc core. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312150052.HCiNKlqB-lkp@intel.com/ Fixes: 13140de09cc2 ("remoteproc: stm32: add an ST stm32_rproc driver") Signed-off-by: Arnaud Pouliquen Link: https://lore.kernel.org/r/20240117135312.3381936-2-arnaud.pouliquen@foss.st.com Signed-off-by: Mathieu Poirier Signed-off-by: Sasha Levin --- drivers/remoteproc/stm32_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c index 4f469f0bcf8b2..2c28635219ebf 100644 --- a/drivers/remoteproc/stm32_rproc.c +++ b/drivers/remoteproc/stm32_rproc.c @@ -120,7 +120,7 @@ static int stm32_rproc_mem_alloc(struct rproc *rproc, void *va; dev_dbg(dev, "map memory: %pad+%zx\n", &mem->dma, mem->len); - va = ioremap_wc(mem->dma, mem->len); + va = (__force void *)ioremap_wc(mem->dma, mem->len); if (IS_ERR_OR_NULL(va)) { dev_err(dev, "Unable to map memory region: %pad+0x%zx\n", &mem->dma, mem->len); @@ -137,7 +137,7 @@ static int stm32_rproc_mem_release(struct rproc *rproc, struct rproc_mem_entry *mem) { dev_dbg(rproc->dev.parent, "unmap memory: %pa\n", &mem->dma); - iounmap(mem->va); + iounmap((__force __iomem void *)mem->va); return 0; } -- 2.43.0