compat-2.6.23.h has a different definition of genl_register_mc_group(). Likewise, don't define genl_unregister_mc_group() for old kernels. Signed-off-by: Pavel Roskin <proski@xxxxxxx> --- include/linux/compat-2.6.37.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/linux/compat-2.6.37.h b/include/linux/compat-2.6.37.h index d375746..78b0b38 100644 --- a/include/linux/compat-2.6.37.h +++ b/include/linux/compat-2.6.37.h @@ -91,8 +91,11 @@ int genl_unregister_family(struct genl_family *family); #define genlmsg_reply(_msg, _info) genlmsg_reply(_msg, (_info)->info) #define genlmsg_put(_skb, _pid, _seq, _fam, _flags, _cmd) genlmsg_put(_skb, _pid, _seq, &(_fam)->family, _flags, _cmd) + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)) #define genl_register_mc_group(_fam, _grp) genl_register_mc_group(&(_fam)->family, _grp) #define genl_unregister_mc_group(_fam, _grp) genl_unregister_mc_group(&(_fam)->family, _grp) +#endif extern void led_blink_set(struct led_classdev *led_cdev, -- 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