Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp379620pxj; Tue, 18 May 2021 05:36:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiBIGmBw3HFFtdo1zA5Gs58yR7AHz04ChyWFGfV8HGBcXzdgQkJmABgu3ahHX5yEuZjKAp X-Received: by 2002:a17:906:2483:: with SMTP id e3mr3790444ejb.244.1621341378197; Tue, 18 May 2021 05:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621341378; cv=none; d=google.com; s=arc-20160816; b=l5YG4KO513qf7WmMrhBFwlJqG94p+RMCcfJlG3brn4gFlqngluGgNh6FsbtXPTkbaD jGhkG+95O6xF0NLfE5xsQMeDVa/sSzyDBLlObm/myEL/lzSsRD6ZouGaJdUVAN+QPqvg xQGTs7EI6O6/xdcrXjLV7O+9ZA4+OxhWEjjR+3cLbQIBKGJ5B8CDzU0xgTY8WbqVS3Kw b2d5eIwbqEP3ok7O/1HPfLc4VCGqMEjvKKcEeXDr//ifcKNv10Nu9LSf9zm3bgnXP+ig VUGl/HQ+sIKg8m5pOprUm5oeGGjSQEveOzegFlQdmTgwFa34HWgFUBnpoV9krL1Zi1X2 LMDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aIq0eqUSjyvi7mQ5xti4q29su8YVmXzQv7QfCw3VpKk=; b=cZAKSkRVsqBc+ts4JNWzpDPbu/1TFJB+z5XSr4IzPHRo/ZSgeZ82r1K2VcNMuKhlkD gDKsxndyjf7HrxiFnGdhrLQYTAnPpElLnFOz3tq5NEFLPuqhIE0ZOt12aFG0dBp/X/yH oGTQsb15T8zU9NRKDzGQ17k5Z6gAod9ilSR+LfKLGhiJIrg/LcI/b2OYbP/zbgW4QcWO RX/L93EKCFBiGFDhYQLoxnajpZ+HCwX7trzHqxV885Kq1JNt+ElC8lLYpkmLl+nteW7g VvHaAxjtaS3RfijuX1KmZ//4Yybm8tQXI0pgU0WXwIgEpr/4ljrkWNgHlSACKKO9gOBd pYKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C4DGImdQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si18885455edy.138.2021.05.18.05.35.55; Tue, 18 May 2021 05:36:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C4DGImdQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243335AbhEQPeD (ORCPT + 99 others); Mon, 17 May 2021 11:34:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:56030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243874AbhEQPSj (ORCPT ); Mon, 17 May 2021 11:18:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E2BA461C70; Mon, 17 May 2021 14:33:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262022; bh=9guIHwAVuNg2BMdh300HOIGFHkUygPIR9wFQ99alIYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C4DGImdQBGNv4eH99gZgAWq6OwBxGs5ODhlSJwD/JO0M7qkDxWZRigoIfFF3lasME 13pUZLc2fwHRbnQhq2KFcs8i3drIiNlx0P0YwUahrzC2wMxfsKxHN8PiB3p6eteHFP 6p+wfCWBAVU/GpsiRh2mPCvyag4QV4iSaKSO/cuw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Andersson , kernel test robot , Sibi Sankar , Sasha Levin Subject: [PATCH 5.10 100/289] remoteproc: qcom_q6v5_mss: Replace ioremap with memremap Date: Mon, 17 May 2021 16:00:25 +0200 Message-Id: <20210517140308.553673713@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sibi Sankar [ Upstream commit 04ff5d19cf6e2f9dbdf137c0c6eb44934d46a99c ] Fix the sparse warnings reported by the kernel test bot by replacing ioremap calls with memremap. Reviewed-by: Bjorn Andersson Reported-by: kernel test robot Signed-off-by: Sibi Sankar Link: https://lore.kernel.org/r/1604473422-29639-1-git-send-email-sibis@codeaurora.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/remoteproc/qcom_q6v5_mss.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c index ba6f7551242d..126a9706449a 100644 --- a/drivers/remoteproc/qcom_q6v5_mss.c +++ b/drivers/remoteproc/qcom_q6v5_mss.c @@ -1182,7 +1182,7 @@ static int q6v5_mpss_load(struct q6v5 *qproc) goto release_firmware; } - ptr = ioremap_wc(qproc->mpss_phys + offset, phdr->p_memsz); + ptr = memremap(qproc->mpss_phys + offset, phdr->p_memsz, MEMREMAP_WC); if (!ptr) { dev_err(qproc->dev, "unable to map memory region: %pa+%zx-%x\n", @@ -1197,7 +1197,7 @@ static int q6v5_mpss_load(struct q6v5 *qproc) "failed to load segment %d from truncated file %s\n", i, fw_name); ret = -EINVAL; - iounmap(ptr); + memunmap(ptr); goto release_firmware; } @@ -1209,7 +1209,7 @@ static int q6v5_mpss_load(struct q6v5 *qproc) ptr, phdr->p_filesz); if (ret) { dev_err(qproc->dev, "failed to load %s\n", fw_name); - iounmap(ptr); + memunmap(ptr); goto release_firmware; } @@ -1220,7 +1220,7 @@ static int q6v5_mpss_load(struct q6v5 *qproc) memset(ptr + phdr->p_filesz, 0, phdr->p_memsz - phdr->p_filesz); } - iounmap(ptr); + memunmap(ptr); size += phdr->p_memsz; code_length = readl(qproc->rmb_base + RMB_PMI_CODE_LENGTH_REG); @@ -1287,11 +1287,11 @@ static void qcom_q6v5_dump_segment(struct rproc *rproc, } if (!ret) - ptr = ioremap_wc(qproc->mpss_phys + offset + cp_offset, size); + ptr = memremap(qproc->mpss_phys + offset + cp_offset, size, MEMREMAP_WC); if (ptr) { memcpy(dest, ptr, size); - iounmap(ptr); + memunmap(ptr); } else { memset(dest, 0xff, size); } -- 2.30.2