On Thu, Apr 19, 2012 at 00:17, Dominik Feser <dominik.feser@xxxxxxxxxxxxxx> wrote: > One thing I just remembered: I had problems compiling the code and because of that commented some lines in the code out: > > # make > ./scripts/gen-compat-autoconf.sh /root/compat-wireless-3.4-rc1-2/.config /root/compat-wireless-3.4-rc1-2/config.mk > include/linux/compat_autoconf.h > make -C /lib/modules/2.6.32.12-0.7.1/build M=/root/compat-wireless-3.4-rc1-2 modules > make[1]: Entering directory `/mnt/src/redhat/BUILD/kernel-2.6.32.120.7.1' > Updating /root/compat-wireless-3.4-rc1-2/Makefile.xen > CC [M] /root/compat-wireless-3.4-rc1-2/compat/main.o > In file included from include/net/dst.h:13, > from include/net/sock.h:61, > from /root/compat-wireless-3.4-rc1-2/include/linux/compat-2.6.35.h:8, > from /root/compat-wireless-3.4-rc1-2/include/linux/compat-2.6.h:55, > from <Kommandozeile>:1: > include/linux/rtnetlink.h:785: Fehler: Redefinition von »rcu_read_lock_held« > /root/compat-wireless-3.4-rc1-2/include/linux/compat-2.6.34.h:291: Fehler: Vorherige Definition von »rcu_read_lock_held« war hier > make[3]: *** [/root/compat-wireless-3.4-rc1-2/compat/main.o] Fehler 1 > make[2]: *** [/root/compat-wireless-3.4-rc1-2/compat] Fehler 2 > make[1]: *** [_module_/root/compat-wireless-3.4-rc1-2] Fehler 2 > make[1]: Leaving directory `/mnt/src/redhat/BUILD/kernel-2.6.32.120.7.1' > make: *** [modules] Fehler 2 > > I made a change to the file /root/compat-wireless-3.4-rc1-2/include/linux/compat-2.6.34.h line 291 and commented the following lines out: > > before: > static inline int rcu_read_lock_held(void) > { > return 1; > } > > after: > > /* > static inline int rcu_read_lock_held(void) > { > return 1; > } > */ > > Might that cause the problem? How can I get rid of this error?? > Nope. that can't cause the issue. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html