* sound/sh/sh_dac_audio.c:166:51: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-11-28 5:38 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-11-28 5:38 UTC (permalink / raw)
To: Takashi Iwai; +Cc: oe-kbuild-all, linux-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b86545e02e8c22fb89218f29d381fa8e8b91d815
commit: 2f432f4702134fac27677f13aba69ed830984f75 ALSA: sh: Convert to generic PCM copy ops
date: 1 year, 3 months ago
config: sh-randconfig-r111-20241122 (https://download.01.org/0day-ci/archive/20241128/202411281337.I4M07b7i-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241128/202411281337.I4M07b7i-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411281337.I4M07b7i-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> sound/sh/sh_dac_audio.c:166:51: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *dst @@ got char * @@
sound/sh/sh_dac_audio.c:166:51: sparse: expected void [noderef] __iomem *dst
sound/sh/sh_dac_audio.c:166:51: sparse: got char *
sound/sh/sh_dac_audio.c:185:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem * @@ got char * @@
sound/sh/sh_dac_audio.c:185:37: sparse: expected void volatile [noderef] __iomem *
sound/sh/sh_dac_audio.c:185:37: sparse: got char *
sound/sh/sh_dac_audio.c: note: in included file:
arch/sh/include/cpu-sh3/cpu/dac.h:38:21: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh3/cpu/dac.h:38:21: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh3/cpu/dac.h:38:21: sparse: got unsigned int
arch/sh/include/cpu-sh3/cpu/dac.h:39:14: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh3/cpu/dac.h:39:14: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh3/cpu/dac.h:39:14: sparse: got unsigned int
vim +166 sound/sh/sh_dac_audio.c
158
159 static int snd_sh_dac_pcm_copy(struct snd_pcm_substream *substream,
160 int channel, unsigned long pos,
161 struct iov_iter *src, unsigned long count)
162 {
163 /* channel is not used (interleaved data) */
164 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream);
165
> 166 if (copy_from_iter_toio(chip->data_buffer + pos, src, count))
167 return -EFAULT;
168 chip->buffer_end = chip->data_buffer + pos + count;
169
170 if (chip->empty) {
171 chip->empty = 0;
172 dac_audio_start_timer(chip);
173 }
174
175 return 0;
176 }
177
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* sound/sh/sh_dac_audio.c:166:51: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-07-29 0:23 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-07-29 0:23 UTC (permalink / raw)
To: Takashi Iwai; +Cc: oe-kbuild-all, linux-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8400291e289ee6b2bf9779ff1c83a291501f017b
commit: 2f432f4702134fac27677f13aba69ed830984f75 ALSA: sh: Convert to generic PCM copy ops
date: 12 months ago
config: sh-randconfig-r133-20240729 (https://download.01.org/0day-ci/archive/20240729/202407290821.VLAGtgbv-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20240729/202407290821.VLAGtgbv-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407290821.VLAGtgbv-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> sound/sh/sh_dac_audio.c:166:51: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *dst @@ got char * @@
sound/sh/sh_dac_audio.c:166:51: sparse: expected void [noderef] __iomem *dst
sound/sh/sh_dac_audio.c:166:51: sparse: got char *
sound/sh/sh_dac_audio.c:185:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem * @@ got char * @@
sound/sh/sh_dac_audio.c:185:37: sparse: expected void volatile [noderef] __iomem *
sound/sh/sh_dac_audio.c:185:37: sparse: got char *
sound/sh/sh_dac_audio.c: note: in included file:
arch/sh/include/cpu-sh3/cpu/dac.h:38:21: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh3/cpu/dac.h:38:21: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh3/cpu/dac.h:38:21: sparse: got unsigned int
arch/sh/include/cpu-sh3/cpu/dac.h:39:14: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh3/cpu/dac.h:39:14: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh3/cpu/dac.h:39:14: sparse: got unsigned int
vim +166 sound/sh/sh_dac_audio.c
158
159 static int snd_sh_dac_pcm_copy(struct snd_pcm_substream *substream,
160 int channel, unsigned long pos,
161 struct iov_iter *src, unsigned long count)
162 {
163 /* channel is not used (interleaved data) */
164 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream);
165
> 166 if (copy_from_iter_toio(chip->data_buffer + pos, src, count))
167 return -EFAULT;
168 chip->buffer_end = chip->data_buffer + pos + count;
169
170 if (chip->empty) {
171 chip->empty = 0;
172 dac_audio_start_timer(chip);
173 }
174
175 return 0;
176 }
177
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-28 5:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-28 5:38 sound/sh/sh_dac_audio.c:166:51: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-07-29 0:23 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox