Commit 77ac98e8 authored by David S. Miller's avatar David S. Miller

[ALSA]: Fix ioctl32 build on sparc64.

parent b7207394
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <sound/driver.h> #include <sound/driver.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/init.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/control.h> #include <sound/control.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -393,6 +394,8 @@ static int __init snd_ioctl32_init(void) ...@@ -393,6 +394,8 @@ static int __init snd_ioctl32_init(void)
return err; return err;
} }
#endif #endif
return 0;
} }
module_init(snd_ioctl32_init) module_init(snd_ioctl32_init)
......
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
#ifndef __ALSA_IOCTL32_H #ifndef __ALSA_IOCTL32_H
#define __ALSA_IOCTL32_H #define __ALSA_IOCTL32_H
#ifndef A
#define A(__x) ((unsigned long)(__x))
#endif
#define TO_PTR(x) A(x) #define TO_PTR(x) A(x)
#define COPY(x) (dst->x = src->x) #define COPY(x) (dst->x = src->x)
......
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