Just for everyone to stop complaining about that the latest kernels broke
ALSA, this patch against 0.2.0pre5 adds the NULLs for the flush calls into
ALSA's all struct file_operations structs.
Have fun,
Vojtech Pavlik
diff -urN alsa-driver/kernel/info.c alsa-driver-2.1.118+/kernel/info.c
--- alsa-driver/kernel/info.c Thu Aug 13 17:43:18 1998
+++ alsa-driver-2.1.118+/kernel/info.c Mon Aug 31 09:08:01 1998
@@ -271,6 +271,9 @@
NULL, /* ioctl - default */
NULL, /* mmap */
NULL, /* no special open code */
+#if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,118)
+ NULL, /* flush */
+#endif
NULL, /* no special release code */
NULL /* can't fsync */
};
@@ -716,6 +719,9 @@
snd_info_entry_mmap, /* mmap */
snd_info_entry_open, /* open */
#ifdef LINUX_2_1
+#if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,118)
+ NULL, /* flush */
+#endif
snd_info_entry_release, /* release */
#else
(void (*)( struct inode * inode, struct file *file ))snd_info_entry_release, /* release */
@@ -857,6 +863,9 @@
NULL, /* ioctl - default */
NULL, /* mmap */
NULL, /* very special open code */
+#if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,118)
+ NULL, /* flush */
+#endif
NULL, /* no special release code */
NULL /* can't fsync */
};
diff -urN alsa-driver/kernel/sound.c alsa-driver-2.1.118+/kernel/sound.c
--- alsa-driver/kernel/sound.c Thu Aug 13 17:43:18 1998
+++ alsa-driver-2.1.118+/kernel/sound.c Mon Aug 31 09:08:01 1998
@@ -263,6 +263,9 @@
snd_mmap, /* mmap */
snd_open, /* open */
#ifdef LINUX_2_1
+#if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,118)
+ NULL, /* flush */
+#endif
snd_release, /* release */
#else
(void (*)( struct inode * inode, struct file *file ))snd_release,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html