Author: simon Date: 2010-01-19 00:28:04 +0100 (Tue, 19 Jan 2010) New Revision: 1553
Modified: trunk/batman-adv-kernelland/gateway_client.c trunk/batman-adv-kernelland/gateway_common.c Log: batman-adv: mark a few variables in gateway code "static" to make sparse happy
Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
Modified: trunk/batman-adv-kernelland/gateway_client.c =================================================================== --- trunk/batman-adv-kernelland/gateway_client.c 2010-01-18 23:17:04 UTC (rev 1552) +++ trunk/batman-adv-kernelland/gateway_client.c 2010-01-18 23:28:04 UTC (rev 1553) @@ -24,9 +24,9 @@ #include <linux/udp.h> #include <linux/if_vlan.h>
-LIST_HEAD(gw_list); -DEFINE_SPINLOCK(curr_gw_lock); -DEFINE_SPINLOCK(gw_list_lock); +static LIST_HEAD(gw_list); +static DEFINE_SPINLOCK(curr_gw_lock); +static DEFINE_SPINLOCK(gw_list_lock); atomic_t gw_clnt_class; static struct gw_node *curr_gateway;
Modified: trunk/batman-adv-kernelland/gateway_common.c =================================================================== --- trunk/batman-adv-kernelland/gateway_common.c 2010-01-18 23:17:04 UTC (rev 1552) +++ trunk/batman-adv-kernelland/gateway_common.c 2010-01-18 23:28:04 UTC (rev 1553) @@ -25,7 +25,7 @@ atomic_t gw_srv_class;
/* calculates the gateway class from kbit */ -void kbit_to_gw_srv_class(int down, int up, long *gw_srv_class) +static void kbit_to_gw_srv_class(int down, int up, long *gw_srv_class) { int mdown = 0, tdown, tup, difference; uint8_t sbit, part;