]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ASoC: Intel: Skylake: Use correct function to access iomem space
authorAmadeusz Sławiński <amadeuszx.slawinski@intel.com>
Tue, 27 Aug 2019 14:17:07 +0000 (16:17 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 16 Oct 2019 09:55:31 +0000 (11:55 +0200)
commit9b1c7e45f46915b77fb8ee2fbedab6ed156b8f5e
treef8852d7972cd2c01d74ba4082f25f8a66b4ba584
parent0b385062349c11b9b501d78be2faff66d6ff3c9a
ASoC: Intel: Skylake: Use correct function to access iomem space

BugLink: https://bugs.launchpad.net/bugs/1847155
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] <asn:2> *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] <asn:2> *[assigned] fw_reg_addr

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@intel.com>
Link: https://lore.kernel.org/r/20190827141712.21015-2-amadeuszx.slawinski@linux.intel.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/soc/intel/skylake/skl-debug.c