Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp23966ybp; Thu, 3 Oct 2019 09:39:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7tinqZCclyusYsG7AfHBYrM0OGy0V55mP3qCETKW1+/5LG9VwW/hoH9DSy2Xdk/1Pai/V X-Received: by 2002:a05:6402:17eb:: with SMTP id t11mr10199097edy.97.1570120758005; Thu, 03 Oct 2019 09:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570120757; cv=none; d=google.com; s=arc-20160816; b=eBZSXIJI/WomoE15W56goCTokYL+9wr27Nlvf49fs2aR0WMnaF/OOFwQD505ANiivp 92lHI6rjV/ANAfoaiUjaksQe6H6lstck2e6NHBTJRC46mlUXqLuxqxTBXyAugKIBObVj CQbax+KU46ZbNgiPDozOQiBLmwYd7ZhvlTb5TvbovhRV12WJ1WJz5Pi0VGyFvoTy9J65 4hZD3Vq94luVz40CdOtE8Biruibb0E7tz+qle0IcnZfR6U8eSz6BH2bkdGMBk4sxtkTh eRhaLLpEjcIqNhXqe3/6nBK8jt3ukdtoovZB93ay8xqJdVQTO8ORiWeAdTNOdK5K+6in Zv9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6Q8E4qILNKtg2Og9ReSd8EEE2v93HUm0Q08ECTyCUJc=; b=SDsIM99p8P7zLCJQ8c55VxvoNb9r4cWocNMY+2d4zeZ9GerXeVvLD3GC3Mi64kiArw DJ/P9tn1Wy7tB/sIWgv/gc+OxLKCMYm0BHK0kIDbNZzSPYa+1ELDMq/tPlANV6MoFsuh 9kgTc8NxiByGMGArqoR8SR6/DjxB51ea8ZP5ybee0KzK+4GSNMO2is5wNAlA6p4ING65 ypEq99ah1qOmbDODowvXtMzlgZP7GnKKagr7Ny0XPXo1YgX1vIsR48EsmI4IkDx4zH/M aFUQxDcV5jTzOuVYPPzLFJLbSMT0/xUPbOj/chVQgMnw6vTDUBiZoY6Fh84eDK1cy8g3 pjcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=denW1LXj; 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g22si1743454edf.398.2019.10.03.09.38.53; Thu, 03 Oct 2019 09:39:17 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=denW1LXj; 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 S2404061AbfJCQfS (ORCPT + 99 others); Thu, 3 Oct 2019 12:35:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:44186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404058AbfJCQfR (ORCPT ); Thu, 3 Oct 2019 12:35:17 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D879B222C9; Thu, 3 Oct 2019 16:35:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570120516; bh=gfjxtCDC8qvqtkS70sKSq48huJP48vRLnJ9jhAFOzAs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=denW1LXjqEaMznfWyGiLAmndqGn/cMczGjElxfuVYWRxp0c0YzgsIU0ClKKkSocgQ Y1N7twCyDRstUN9481AiE6atjLWUic7xNBhRwJATeQPunUMyg1wLGYqMY3B04JKFdu NibYB78hSIU5Nyxg34U4EukOAVtRlYzD/VsAQIlA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , Pierre-Louis Bossart , Mark Brown Subject: [PATCH 5.2 252/313] ASoC: Intel: Skylake: Use correct function to access iomem space Date: Thu, 3 Oct 2019 17:53:50 +0200 Message-Id: <20191003154557.858082634@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154533.590915454@linuxfoundation.org> References: <20191003154533.590915454@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Amadeusz Sławiński commit 17d29ff98fd4b70e9ccdac5e95e18a087e2737ef upstream. For copying from __iomem, we should use __ioread32_copy. reported by sparse: sound/soc/intel/skylake/skl-debug.c:437:34: warning: incorrect type in argument 1 (different address spaces) sound/soc/intel/skylake/skl-debug.c:437:34: expected void [noderef] *to sound/soc/intel/skylake/skl-debug.c:437:34: got unsigned char * sound/soc/intel/skylake/skl-debug.c:437:51: warning: incorrect type in argument 2 (different address spaces) sound/soc/intel/skylake/skl-debug.c:437:51: expected void const *from sound/soc/intel/skylake/skl-debug.c:437:51: got void [noderef] *[assigned] fw_reg_addr Signed-off-by: Amadeusz Sławiński Link: https://lore.kernel.org/r/20190827141712.21015-2-amadeuszx.slawinski@linux.intel.com Reviewed-by: Pierre-Louis Bossart Signed-off-by: Mark Brown Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- sound/soc/intel/skylake/skl-debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/intel/skylake/skl-debug.c +++ b/sound/soc/intel/skylake/skl-debug.c @@ -188,7 +188,7 @@ static ssize_t fw_softreg_read(struct fi memset(d->fw_read_buff, 0, FW_REG_BUF); if (w0_stat_sz > 0) - __iowrite32_copy(d->fw_read_buff, fw_reg_addr, w0_stat_sz >> 2); + __ioread32_copy(d->fw_read_buff, fw_reg_addr, w0_stat_sz >> 2); for (offset = 0; offset < FW_REG_SIZE; offset += 16) { ret += snprintf(tmp + ret, FW_REG_BUF - ret, "%#.4x: ", offset);