Warning I'm running kernel 2.6.1 from redhat so not vanilla. I don't
know for sure if the problem is with kernel 2.6.1 vanilla to.

After the patch it compiles normal :)

error:

make -C /lib/modules/2.6.1-1.65/build SUBDIRS=/home/lupus/alsa-driver-
1.0.2c/kbuild modules
make[1]: Entering directory `/lib/modules/2.6.1-1.65/build'
*** Warning: Overriding SUBDIRS on the command line can cause
***          inconsistencies
  CHK     include/asm-i386/asm_offsets.h
  CC [M]  /home/lupus/alsa-driver-1.0.2c/kbuild/../acore/memalloc.o
In file included from /home/lupus/alsa-driver-1.0.2c/acore/memalloc.
inc:13,
                 from /home/lupus/alsa-driver-1.0.2c/acore/memalloc.c:1:
/home/lupus/alsa-driver-1.0.2c/include/adriver.h:425: error: conflicting
types for `class_simple_device_add'
include/linux/device.h:255: error: previous declaration of
`class_simple_device_add'
/home/lupus/alsa-driver-1.0.2c/include/adriver.h:426: error: conflicting
types for `class_simple_device_remove'
include/linux/device.h:256: error: previous declaration of
`class_simple_device_remove'
make[3]: *** [/home/lupus/alsa-driver-1.0.2c/kbuild/../acore/memalloc.o]
Fout 1
make[2]: *** [/home/lupus/alsa-driver-1.0.2c/kbuild/../acore] Fout 2
make[1]: *** [/home/lupus/alsa-driver-1.0.2c/kbuild] Fout 2
make[1]: Leaving directory `/lib/modules/2.6.1-1.65/build'
make: *** [compile] Fout 2

--- ./include/adriver.h.kernel261	2004-02-11 16:57:13.708662312 +0100
+++ ./include/adriver.h	2004-02-11 16:57:25.869813536 +0100
@@ -420,7 +420,7 @@
 #endif
 
 /* sysfs */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 2)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 1)
 struct class_simple;
 static inline void class_simple_device_add(struct class_simple *class, int devnum, ...) { return; }
 static inline void class_simple_device_remove(int devnum) { return; }

Reply via email to