Commit 29581051 authored by Souptick Joarder's avatar Souptick Joarder Committed by Takashi Iwai

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 1c8f4220 ("mm: change return type to vm_fault_t")
Signed-off-by: default avatarSouptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: default avatarMatthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8e0428a7
...@@ -139,7 +139,7 @@ static void usb_stream_hwdep_vm_open(struct vm_area_struct *area) ...@@ -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 @@ ...@@ -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) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment