+++ /dev/null
-From foo@baz Fri Sep 21 09:51:45 CEST 2018
-From: Takashi Iwai <tiwai@suse.de>
-Date: Wed, 25 Jul 2018 23:00:54 +0200
-Subject: ALSA: pcm: Add __force to cast in snd_pcm_lib_read/write()
-
-From: Takashi Iwai <tiwai@suse.de>
-
-[ Upstream commit 95a48b7d4459948b6bacf809809cf01a7dc06d1d ]
-
-The snd_pcm_lib_read() and snd_pcm_lib_write() inline functions have
-the explicit cast from a user pointer to a kernel pointer, but they
-lacks of __force prefix.
-
-This fixes sparse warnings like:
- ./include/sound/pcm.h:1093:47: warning: cast removes address space of expression
-
-Fixes: 68541213720d ("ALSA: pcm: Direct in-kernel read/write support")
-Signed-off-by: Takashi Iwai <tiwai@suse.de>
-Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- include/sound/pcm.h | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
---- a/include/sound/pcm.h
-+++ b/include/sound/pcm.h
-@@ -1081,14 +1081,14 @@ static inline snd_pcm_sframes_t
- snd_pcm_lib_write(struct snd_pcm_substream *substream,
- const void __user *buf, snd_pcm_uframes_t frames)
- {
-- return __snd_pcm_lib_xfer(substream, (void *)buf, true, frames, false);
-+ return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false);
- }
-
- static inline snd_pcm_sframes_t
- snd_pcm_lib_read(struct snd_pcm_substream *substream,
- void __user *buf, snd_pcm_uframes_t frames)
- {
-- return __snd_pcm_lib_xfer(substream, (void *)buf, true, frames, false);
-+ return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false);
- }
-
- static inline snd_pcm_sframes_t
usb-dwc3-change-stream-event-enable-bit-back-to-13.patch
iommu-arm-smmu-v3-sync-the-ovackflg-to-priq-consumer-register.patch
iommu-io-pgtable-arm-v7s-abort-allocation-when-table-address-overflows-the-pte.patch
-alsa-pcm-add-__force-to-cast-in-snd_pcm_lib_read-write.patch
alsa-msnd-fix-the-default-sample-sizes.patch
alsa-usb-audio-fix-multiple-definitions-in-au0828_device-macro.patch
xfrm-fix-passing-zero-to-err_ptr-warning.patch
+++ /dev/null
-From foo@baz Fri Sep 21 10:21:24 CEST 2018
-From: Takashi Iwai <tiwai@suse.de>
-Date: Wed, 25 Jul 2018 23:00:54 +0200
-Subject: ALSA: pcm: Add __force to cast in snd_pcm_lib_read/write()
-
-From: Takashi Iwai <tiwai@suse.de>
-
-[ Upstream commit 95a48b7d4459948b6bacf809809cf01a7dc06d1d ]
-
-The snd_pcm_lib_read() and snd_pcm_lib_write() inline functions have
-the explicit cast from a user pointer to a kernel pointer, but they
-lacks of __force prefix.
-
-This fixes sparse warnings like:
- ./include/sound/pcm.h:1093:47: warning: cast removes address space of expression
-
-Fixes: 68541213720d ("ALSA: pcm: Direct in-kernel read/write support")
-Signed-off-by: Takashi Iwai <tiwai@suse.de>
-Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- include/sound/pcm.h | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
---- a/include/sound/pcm.h
-+++ b/include/sound/pcm.h
-@@ -1089,14 +1089,14 @@ static inline snd_pcm_sframes_t
- snd_pcm_lib_write(struct snd_pcm_substream *substream,
- const void __user *buf, snd_pcm_uframes_t frames)
- {
-- return __snd_pcm_lib_xfer(substream, (void *)buf, true, frames, false);
-+ return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false);
- }
-
- static inline snd_pcm_sframes_t
- snd_pcm_lib_read(struct snd_pcm_substream *substream,
- void __user *buf, snd_pcm_uframes_t frames)
- {
-- return __snd_pcm_lib_xfer(substream, (void *)buf, true, frames, false);
-+ return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false);
- }
-
- static inline snd_pcm_sframes_t
iommu-arm-smmu-v3-sync-the-ovackflg-to-priq-consumer-register.patch
iommu-io-pgtable-arm-v7s-abort-allocation-when-table-address-overflows-the-pte.patch
iommu-io-pgtable-arm-fix-pgtable-allocation-in-selftest.patch
-alsa-pcm-add-__force-to-cast-in-snd_pcm_lib_read-write.patch
alsa-msnd-fix-the-default-sample-sizes.patch
alsa-usb-audio-add-support-for-encore-mdsd-usb-dac.patch
alsa-usb-audio-fix-multiple-definitions-in-au0828_device-macro.patch