Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2400201lqp; Sun, 24 Mar 2024 17:54:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV28XVu5y2o5fBb0t++2tq0g/pZc9uFKpl/mE38w0klncM+eMAj5JcoNp5QtUvHOJ6uzKPQVY1cvDodaotvJVTwXTkCIL8J7iii1tHjHA== X-Google-Smtp-Source: AGHT+IHb+fhbgIx6VD1Ek6QaGvLjmay6XyVWv6t2aR+JvF+Mn7L8Uh3NH2wH/X5D3IcGufZqPU0P X-Received: by 2002:a05:6a00:2da2:b0:6e7:3391:b830 with SMTP id fb34-20020a056a002da200b006e73391b830mr7383041pfb.9.1711328046073; Sun, 24 Mar 2024 17:54:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711328046; cv=pass; d=google.com; s=arc-20160816; b=Mup3AQxXR821Ht18xv1+RUqH024n8K97fiD1KTh14AG5DehzzkMOSYAJU/BtnVpOz0 fz5GJqzActwDEKXd15W+BObG15Jx8gU1OMikvV3rROUrXc/Oh1ogE8kX/iBiY5acuQya YdsomLum6aNdBodESVzXXAC1Hr5yPhkhpNQBDz5CnqtfACq/LWXK3rkM2ebK7/YMyCyO PehEgUn7Gce9vXHSLJzLh/t+RtHuQ3juGl9GzWeZcqnO6z3YIhvuLf3oJx+z8xvDDLd7 H15PUbW+qY7llqIyPoMwRLWswTRrYnLWwILA7vTMJFdgx7DRmg/hX2e5RKmlN9sG8zWn Kcmw== 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=HIZR3nBUnR5ctZUV0N2Rel/soYCgWDDdIy4E+bax1sw=; fh=deyuiDMiZCI9ZWZMZpsBJpKARNJS1O2cpwSDwtSBfKA=; b=oCHdQ5QlOzqTuAdlEG0eUPWduQb+bxYPRdRbsq00k/HCd/IDnlfLaRYevTn4FleS4E 18VHC8WChL7Cx6xJl423vIhuAb5bhCWRRfiAt9HNmPTYUNL1aBDJSxG/fnqaR2RvN4Es ccn8SOdH8XFpdTOvfbo5BDjBvV4ML858sI7yHtWrVbbTzS/jwO9rsP/fpOmO1jUln7Mv 7SCRwsUU0//OnShVKlHCz0GFOmAFt+sC41UGCp1m7UJUVWcD4bYR9Q0he4ZR3PcjpfE2 Uhauu9lcKLc49qwFPYT8NSHIxnh4yZBBcMjgl9iJI39TrzF+dE0HO6OLPuQwK2nwppiX K7Aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V30u9KjR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k26-20020aa79d1a000000b006e6bccc4abbsi4161231pfp.140.2024.03.24.17.54.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:54:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V30u9KjR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113500-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ED2712836EC for ; Mon, 25 Mar 2024 00:52:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5E4A1B9DD3; Sun, 24 Mar 2024 22:45:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="V30u9KjR" 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 CC9731B9DB1; Sun, 24 Mar 2024 22:45:01 +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=gj29PWey3xIrM/WR7Lj3ceADqXWcKk3qjSBn4rDwqD8gsdz8xEcMWcqqTgCT2FnlMJrU8OhOhPiwcEiKWTYuYPigbUOl7FMMlqLTKs6mGr0Nccati7zkWYLI+kMkkKalnuZjslRAyV+xzkmtK6YCJN6JpqO8v/W3gZGyL/7CZPM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320301; c=relaxed/simple; bh=XJu2PDosWvo6ftdrnpc97k6E/frxFjZouHIAs4sPWt8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kuic1Hif3MjjMsLBylNvK/GEc2D9lT3rqIV/rC6KqCfyQ+ZVPWw/MuOCBg1l0gYPYD9vSmRjoMoYaLnmFVpvYitT7LAiuKgbI0RX8a/pm4SO3BmbjXhNaGx5nGAmr6krjc0g1rFM1vP8ffQOCwUxnS7LbIhptADW503LFVxCt3k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V30u9KjR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17480C433F1; Sun, 24 Mar 2024 22:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320301; bh=XJu2PDosWvo6ftdrnpc97k6E/frxFjZouHIAs4sPWt8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V30u9KjR2RV/SsKq8GlbJJIX3r5xamf6KhxTEHndHOUC+0UIr35G7Rom8lsdKcgg8 kXH/84qVdOheh6DbIW8WrkaRq+1rfguouyNbkvHvN4l92TC0+i5xav6RlkH2mslj/g aKRRwLbR1RzXkcFWRgRPJqyKWT8vpESuYPRoV8vBc6f+czFqqOhu4S3MtMcGc7jaeS oGIbbTpEMaR5G/+vIgVBTFlTo0nO/IpgyPBQN0IyK+K5Ojt9QPT6OnTf5XwkldTtU6 GRjMe3QvlwmEkKkd0uTuWWEU4HBhvE2WYZ0Fyo2+4CYuYk5hVEAdmV2GnKWfMiTk3Z C8GeFrxbamXyg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnaud Pouliquen , Mathieu Poirier , Sasha Levin Subject: [PATCH 6.8 609/715] remoteproc: stm32: Fix incorrect type assignment returned by stm32_rproc_get_loaded_rsc_tablef Date: Sun, 24 Mar 2024 18:33:08 -0400 Message-ID: <20240324223455.1342824-610-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 c77b35ce66af25bdd6fde60b62e35b9b316ea5c2 ] The sparse tool complains about the remove of the _iomem attribute. stm32_rproc.c:660:17: warning: cast removes address space '__iomem' of expression Add '__force' to explicitly specify that the cast is intentional. This conversion is necessary to cast to addresses pointer, which are then managed by the remoteproc core as a pointer to a resource_table structure. Fixes: 8a471396d21c ("remoteproc: stm32: Move resource table setup to rproc_ops") Signed-off-by: Arnaud Pouliquen Link: https://lore.kernel.org/r/20240117135312.3381936-3-arnaud.pouliquen@foss.st.com Signed-off-by: Mathieu Poirier Signed-off-by: Sasha Levin --- drivers/remoteproc/stm32_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c index 2c28635219ebf..10b442c6f6323 100644 --- a/drivers/remoteproc/stm32_rproc.c +++ b/drivers/remoteproc/stm32_rproc.c @@ -657,7 +657,7 @@ stm32_rproc_get_loaded_rsc_table(struct rproc *rproc, size_t *table_sz) * entire area by overwriting it with the initial values stored in rproc->clean_table. */ *table_sz = RSC_TBL_SIZE; - return (struct resource_table *)ddata->rsc_va; + return (__force struct resource_table *)ddata->rsc_va; } static const struct rproc_ops st_rproc_ops = { -- 2.43.0