forked from luck/tmp_suning_uos_patched
ALSA: usx2y: Change return type to vm_fault_t
Use new return type vm_fault_t for fault handler. For
now, this is just documenting that the function returns
a VM_FAULT value rather than an errno. Once all instances
are converted, vm_fault_t will become a distinct type.
Commit 1c8f422059
("mm: change return type to vm_fault_t")
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
8e0428a7e7
commit
295810516e
|
@ -139,7 +139,7 @@ static void usb_stream_hwdep_vm_open(struct vm_area_struct *area)
|
||||||
snd_printdd(KERN_DEBUG "%i\n", atomic_read(&us122l->mmap_count));
|
snd_printdd(KERN_DEBUG "%i\n", atomic_read(&us122l->mmap_count));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int usb_stream_hwdep_vm_fault(struct vm_fault *vmf)
|
static vm_fault_t usb_stream_hwdep_vm_fault(struct vm_fault *vmf)
|
||||||
{
|
{
|
||||||
unsigned long offset;
|
unsigned long offset;
|
||||||
struct page *page;
|
struct page *page;
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "usbusx2y.h"
|
#include "usbusx2y.h"
|
||||||
#include "usX2Yhwdep.h"
|
#include "usX2Yhwdep.h"
|
||||||
|
|
||||||
static int snd_us428ctls_vm_fault(struct vm_fault *vmf)
|
static vm_fault_t snd_us428ctls_vm_fault(struct vm_fault *vmf)
|
||||||
{
|
{
|
||||||
unsigned long offset;
|
unsigned long offset;
|
||||||
struct page * page;
|
struct page * page;
|
||||||
|
|
|
@ -652,7 +652,7 @@ static void snd_usX2Y_hwdep_pcm_vm_close(struct vm_area_struct *area)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int snd_usX2Y_hwdep_pcm_vm_fault(struct vm_fault *vmf)
|
static vm_fault_t snd_usX2Y_hwdep_pcm_vm_fault(struct vm_fault *vmf)
|
||||||
{
|
{
|
||||||
unsigned long offset;
|
unsigned long offset;
|
||||||
void *vaddr;
|
void *vaddr;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user