Message ID | 1547128151-44077-4-git-send-email-loic.pallardy@st.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1916246jaa; Thu, 10 Jan 2019 05:50:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN6XitBrWUW3HN67D9asGpcYdrZpjRiasG0snY3iDFqxPdCuz0frxYGlLlYIkQmFkFvrfRuW X-Received: by 2002:a65:4784:: with SMTP id e4mr9302910pgs.12.1547128203251; Thu, 10 Jan 2019 05:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547128203; cv=none; d=google.com; s=arc-20160816; b=G/jPqv2bme2VuIncmb9on9E7hR9MAm5GcEBiX5EQHOBMgOS4bxFuSunfq9wj0t6bD1 kLD/x5e9pWKiAsHf0RSVT3iUfverGpnunEWhBoad+1r5ysKIZYZ84POPCk9t+ApdeZBK z7329If9d5f+PsCHcmPoJLKAzvU3S8qb2NVAGWTjx5LANLZcq7cXUTcw6NswjNUzc+hx bHJLrTUl/r8XYxtJVX0DHW6kFZzlnpoXOEYDwIa8lbglJTY2HIWdf4dC1atPSq/KQRN6 bNj/M0TN05YDO5jszlYWGpToDwxk30ZDSplxXVoZZmq/M32hiUzAsleXbQ0YGgVK3JRR 7n8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=rA8fav55VQysb1+JBFtRkjuVugYeszaFL50PCkyjE7U=; b=OueHGCt1/otsMA/RjKqkNQrtUpdZgilPy2BrSMViHMWwE9W2avZxSJpnOUNf23p3IL TiyZkHQuP0HnnC3yAuMcek+WyewRiFZes8AGTazEa0SmD+7Q7gbMzxRrdNEpyzEcGfIk 2SoyJGKNvpyHZNeGo1uU2abdMric1PCGQic0ka6+D5R+qEHITpxs2ioLdU9+jNMNOwkJ UjcvgLTRowBArMHmjRqq1mdo0kB2kQ7gnz3UyWfNrTNlmv1jO2/HzYOoblv4TlMo2Dzj qqXxhrC5R5H6zD6oho/7zJ/ZsPuB9KVY9o2IPnC56MZtf0ZQ1TF0Y6Vr8HQqe8fN6OWJ pv8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l123si373645pfc.187.2019.01.10.05.50.02; Thu, 10 Jan 2019 05:50:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729159AbfAJNuC (ORCPT <rfc822;igor.opaniuk@linaro.org> + 31 others); Thu, 10 Jan 2019 08:50:02 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:18251 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729011AbfAJNt1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Jan 2019 08:49:27 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0ADgC0c012603; Thu, 10 Jan 2019 14:49:23 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2ptt12b5ye-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 10 Jan 2019 14:49:23 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B1C963D; Thu, 10 Jan 2019 13:49:22 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9860E504E; Thu, 10 Jan 2019 13:49:22 +0000 (GMT) Received: from SAFEX1HUBCAS21.st.com (10.75.90.45) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 10 Jan 2019 14:49:22 +0100 Received: from localhost (10.201.20.178) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 10 Jan 2019 14:49:21 +0100 From: Loic Pallardy <loic.pallardy@st.com> To: <bjorn.andersson@linaro.org>, <ohad@wizery.com> CC: <linux-remoteproc@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <arnaud.pouliquen@st.com>, <benjamin.gaignard@linaro.org>, <s-anna@ti.com>, Loic Pallardy <loic.pallardy@st.com> Subject: [PATCH v2 3/7] remoteproc: fix rproc_alloc_carveout() bad variable cast Date: Thu, 10 Jan 2019 14:49:07 +0100 Message-ID: <1547128151-44077-4-git-send-email-loic.pallardy@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1547128151-44077-1-git-send-email-loic.pallardy@st.com> References: <1547128151-44077-1-git-send-email-loic.pallardy@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.20.178] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-01-10_05:, , signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
remoteproc: Fixes for memoy carveout management
|
expand
|
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 28df71cb3fef..18a1bbf820c9 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -775,7 +775,7 @@ static int rproc_alloc_carveout(struct rproc *rproc, mem->da = (u32)dma; } - mem->dma = (u32)dma; + mem->dma = dma; mem->va = va; return 0;
As dma member of struct rproc_mem_entry is dma_addr_t, no need to cast in u32. Fixes: d7c51706d095 ("remoteproc: add alloc ops in rproc_mem_entry struct") Signed-off-by: Loic Pallardy <loic.pallardy@st.com> --- drivers/remoteproc/remoteproc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4