[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] Kernel mode init problem for ver 2.2.14



As I understand linux kernel 2.2.x uses init_module and
2.4.x uses module_init, so this section currently defined in bluetooth.c
will not work. 


#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0)
# ifdef MODULE
#  define module_init(x) int init_module(void) { return x(); }
#  define module_exit(x) void cleanup_module(void) { x(); }
# else
#  define module_init(x) int x##_module(void) { return x(); }
#  define module_exit(x) void x##_module(void) { x(); }
# endif
# define __init
# define __exit
#else
# include <linux/init.h>
# if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
#  include <linux/kcomp.h>
# endif
#endif
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com