All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] for vx make bug on kernel 2.6!!!! add to cvs plz
@ 2004-01-06 22:53 Kristof vansant
  2004-01-08 11:23 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Kristof vansant @ 2004-01-06 22:53 UTC (permalink / raw)
  To: alsa-devel

Before I added this line alsa-driver would have make error on vxp440.c
and vxpocket.c . This patch should keep the driver working with kernel
2.4 to. Can someone test it and add it to the CVS. 

[root@d51528079 vx]# cat vxkernel26.patch
--- ./vxp440.c.kernel26 2004-01-06 20:40:30.757564000 +0100
+++ ./vxp440.c  2004-01-06 20:44:50.167564000 +0100
@@ -1,11 +1,13 @@
 #include <linux/config.h>
 #include <linux/version.h>
  
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
 #if defined(CONFIG_MODVERSIONS) && !defined(__GENKSYMS__) &&
!defined(__DEPEND__)
 #define MODVERSIONS
 #include <linux/modversions.h>
 #include "sndversions.h"
 #endif
+#endif
  
 #include "config.h"
 #include "adriver.h"
--- ./vxpocket.c.kernel26       2004-01-06 23:41:09.047564000 +0100
+++ ./vxpocket.c        2004-01-06 23:43:34.537564000 +0100
@@ -1,11 +1,13 @@
 #include <linux/config.h>
 #include <linux/version.h>
  
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
 #if defined(CONFIG_MODVERSIONS) && !defined(__GENKSYMS__) &&
!defined(__DEPEND__)
 #define MODVERSIONS
 #include <linux/modversions.h>
 #include "sndversions.h"
 #endif
+#endif
  
 #include "config.h"
 #include "adriver.h"

-- 
lupus  (Kristof Vansant Belgium)



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-08 11:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-06 22:53 [PATCH] for vx make bug on kernel 2.6!!!! add to cvs plz Kristof vansant
2004-01-08 11:23 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.