Author: marek Date: 2009-11-07 13:45:41 +0000 (Sat, 07 Nov 2009) New Revision: 1469
Modified: trunk/batman-adv-kernelland/aggregation.c trunk/batman-adv-kernelland/hard-interface.c trunk/batman-adv-kernelland/proc.c trunk/batman-adv-kernelland/routing.c trunk/batman-adv-kernelland/soft-interface.c trunk/batman-adv-kernelland/translation-table.c trunk/batman-adv-kernelland/vis.c Log: Mark local symbols as static
Signed-off-by: Sven Eckelmann sven.eckelmann@gmx.de
Modified: trunk/batman-adv-kernelland/aggregation.c =================================================================== --- trunk/batman-adv-kernelland/aggregation.c 2009-11-07 13:29:35 UTC (rev 1468) +++ trunk/batman-adv-kernelland/aggregation.c 2009-11-07 13:45:41 UTC (rev 1469) @@ -88,7 +88,7 @@ }
/* create a new aggregated packet and add this packet to it */ -void new_aggregated_packet(unsigned char *packet_buff, +static void new_aggregated_packet(unsigned char *packet_buff, int packet_len, unsigned long send_time, bool direct_link,
Modified: trunk/batman-adv-kernelland/hard-interface.c =================================================================== --- trunk/batman-adv-kernelland/hard-interface.c 2009-11-07 13:29:35 UTC (rev 1468) +++ trunk/batman-adv-kernelland/hard-interface.c 2009-11-07 13:45:41 UTC (rev 1469) @@ -72,7 +72,7 @@ return min_mtu; }
-void check_known_mac_addr(uint8_t *addr) +static void check_known_mac_addr(uint8_t *addr) { struct batman_if *batman_if; char mac_string[ETH_STR_LEN]; @@ -105,7 +105,7 @@ }
/* checks if the interface is up. (returns 1 if it is) */ -int hardif_is_interface_up(char *dev) +static int hardif_is_interface_up(char *dev) { struct net_device *net_dev;
@@ -176,7 +176,7 @@ }
/* (re)activate given interface. */ -void hardif_activate_interface(struct batman_if *batman_if) +static void hardif_activate_interface(struct batman_if *batman_if) { struct sockaddr_ll bind_addr; int retval;
Modified: trunk/batman-adv-kernelland/proc.c =================================================================== --- trunk/batman-adv-kernelland/proc.c 2009-11-07 13:29:35 UTC (rev 1468) +++ trunk/batman-adv-kernelland/proc.c 2009-11-07 13:45:41 UTC (rev 1469) @@ -30,7 +30,7 @@ #include "vis.h" #include "compat.h"
-uint8_t vis_format = DOT_DRAW; +static uint8_t vis_format = DOT_DRAW;
static struct proc_dir_entry *proc_batman_dir, *proc_interface_file; static struct proc_dir_entry *proc_orig_interval_file, *proc_originators_file;
Modified: trunk/batman-adv-kernelland/routing.c =================================================================== --- trunk/batman-adv-kernelland/routing.c 2009-11-07 13:29:35 UTC (rev 1468) +++ trunk/batman-adv-kernelland/routing.c 2009-11-07 13:45:41 UTC (rev 1469) @@ -46,7 +46,7 @@ static atomic_t data_ready_cond; atomic_t exit_cond;
-void start_purge_timer(void) +static void start_purge_timer(void) { queue_delayed_work(bat_event_workqueue, &purge_orig_wq, 1 * HZ); } @@ -618,7 +618,7 @@ start_purge_timer(); }
-int receive_raw_packet(struct socket *raw_sock, unsigned char *packet_buff, int packet_buff_len) +static int receive_raw_packet(struct socket *raw_sock, unsigned char *packet_buff, int packet_buff_len) { struct kvec iov; struct msghdr msg;
Modified: trunk/batman-adv-kernelland/soft-interface.c =================================================================== --- trunk/batman-adv-kernelland/soft-interface.c 2009-11-07 13:29:35 UTC (rev 1468) +++ trunk/batman-adv-kernelland/soft-interface.c 2009-11-07 13:45:41 UTC (rev 1469) @@ -68,7 +68,7 @@ return (memcmp(mainIfAddr, mainIfAddr_default, ETH_ALEN) != 0 ? 1 : 0); }
-int my_skb_push(struct sk_buff *skb, unsigned int len) +static int my_skb_push(struct sk_buff *skb, unsigned int len) { int result = 0;
Modified: trunk/batman-adv-kernelland/translation-table.c =================================================================== --- trunk/batman-adv-kernelland/translation-table.c 2009-11-07 13:29:35 UTC (rev 1468) +++ trunk/batman-adv-kernelland/translation-table.c 2009-11-07 13:45:41 UTC (rev 1469) @@ -32,7 +32,7 @@ atomic_t hna_local_changed;
DEFINE_SPINLOCK(hna_local_hash_lock); -DEFINE_SPINLOCK(hna_global_hash_lock); +static DEFINE_SPINLOCK(hna_global_hash_lock);
static DECLARE_DELAYED_WORK(hna_local_purge_wq, hna_local_purge);
Modified: trunk/batman-adv-kernelland/vis.c =================================================================== --- trunk/batman-adv-kernelland/vis.c 2009-11-07 13:29:35 UTC (rev 1468) +++ trunk/batman-adv-kernelland/vis.c 2009-11-07 13:45:41 UTC (rev 1469) @@ -369,7 +369,7 @@ return 0; }
-void purge_vis_packets(void) +static void purge_vis_packets(void) { struct hash_it_t *hashit = NULL; struct vis_info *info;