1 May 2010 15:10
[PATCH 2/4] batman-adv: Import sparse fixes from mainline.
I fixed sparce warnings as i moved patches from maint to mainline. This patch move the fixes back to maint. Signed-off-by: Andrew Lunn <andrew@...> --- bat_sysfs.c | 9 ++++++--- vis.c | 8 ++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/bat_sysfs.c b/bat_sysfs.c index 7acf8d8..e2c000b 100644 --- a/bat_sysfs.c +++ b/bat_sysfs.c <at> <at> -357,7 +357,8 <at> <at> void sysfs_del_meshif(struct net_device *dev) static ssize_t show_mesh_iface(struct kobject *kobj, struct attribute *attr, char *buff) { - struct net_device *net_dev = to_net_dev(to_dev(kobj->parent)); + struct device *dev = to_dev(kobj->parent); + struct net_device *net_dev = to_net_dev(dev); struct batman_if *batman_if = get_batman_if_by_netdev(net_dev); if (!batman_if) <at> <at> -371,7 +372,8 <at> <at> static ssize_t show_mesh_iface(struct kobject *kobj, struct attribute *attr, static ssize_t store_mesh_iface(struct kobject *kobj, struct attribute *attr, char *buff, size_t count) { - struct net_device *net_dev = to_net_dev(to_dev(kobj->parent)); + struct device *dev = to_dev(kobj->parent); + struct net_device *net_dev = to_net_dev(dev);(Continue reading)
-
-COMPILE
--------
-To compile against your currently installed kernel, just type:
-
-# make
-
-if you want to compile against some other kernel, use:
-
-# make KERNELPATH=/path/to/kernel
USAGE
-----
<at> <at> -123,15 +110,11 <at> <at> dmesg | grep batman-adv
RSS Feed