The following commit has been merged in the next branch: commit f85ccf52754852dc9fcabf60a2c6a658850b2f3e Author: Antonio Quartulli ordex@autistici.org Date: Sun May 29 15:05:34 2011 +0200
batman-adv: correct kobject_set_name() arguments
Compiling against kernel version <2.6.25 was failing due to wrong parameters.
Signed-off-by: Antonio Quartulli ordex@autistici.org Signed-off-by: Sven Eckelmann sven@narfation.org
diff --git a/compat.h b/compat.h index 2e3f062..e2844e9 100644 --- a/compat.h +++ b/compat.h @@ -131,7 +131,7 @@ static inline struct kobject *kobject_create_and_add(const char *name, if (!kobj) return NULL;
- kobject_set_name(kobj, name); + kobject_set_name(kobj, "%s", name); kobj->ktype = &ktype_bat_wrapper; kobj->kset = NULL; kobj->parent = parent;