aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/originator.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2015-05-26 12:34:26 -0400
committerAntonio Quartulli <antonio@meshcoding.com>2015-08-24 18:12:17 -0400
commit6b5e971a282c0e7b18b47823103d695352b5a3c2 (patch)
treeeb0767ee98e4061e53c4278dd776bd6ff6c24ffd /net/batman-adv/originator.h
parent56fff0a01fa056502a28d67cb5a2714d64780415 (diff)
batman-adv: Replace C99 int types with kernel type
(s|u)(8|16|32|64) are the preferred types in the kernel. The use of the standard C99 types u?int(8|16|32|64)_t are objected by some people and even checkpatch now warns about using them. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv/originator.h')
-rw-r--r--net/batman-adv/originator.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/batman-adv/originator.h b/net/batman-adv/originator.h
index 79734d302010..3fc76f6f710c 100644
--- a/net/batman-adv/originator.h
+++ b/net/batman-adv/originator.h
@@ -40,15 +40,14 @@ void batadv_purge_orig_ref(struct batadv_priv *bat_priv);
40void batadv_orig_node_free_ref(struct batadv_orig_node *orig_node); 40void batadv_orig_node_free_ref(struct batadv_orig_node *orig_node);
41void batadv_orig_node_free_ref_now(struct batadv_orig_node *orig_node); 41void batadv_orig_node_free_ref_now(struct batadv_orig_node *orig_node);
42struct batadv_orig_node *batadv_orig_node_new(struct batadv_priv *bat_priv, 42struct batadv_orig_node *batadv_orig_node_new(struct batadv_priv *bat_priv,
43 const uint8_t *addr); 43 const u8 *addr);
44struct batadv_neigh_node * 44struct batadv_neigh_node *
45batadv_neigh_node_get(const struct batadv_orig_node *orig_node, 45batadv_neigh_node_get(const struct batadv_orig_node *orig_node,
46 const struct batadv_hard_iface *hard_iface, 46 const struct batadv_hard_iface *hard_iface,
47 const uint8_t *addr); 47 const u8 *addr);
48struct batadv_neigh_node * 48struct batadv_neigh_node *
49batadv_neigh_node_new(struct batadv_hard_iface *hard_iface, 49batadv_neigh_node_new(struct batadv_hard_iface *hard_iface,
50 const uint8_t *neigh_addr, 50 const u8 *neigh_addr, struct batadv_orig_node *orig_node);
51 struct batadv_orig_node *orig_node);
52void batadv_neigh_node_free_ref(struct batadv_neigh_node *neigh_node); 51void batadv_neigh_node_free_ref(struct batadv_neigh_node *neigh_node);
53struct batadv_neigh_node * 52struct batadv_neigh_node *
54batadv_orig_router_get(struct batadv_orig_node *orig_node, 53batadv_orig_router_get(struct batadv_orig_node *orig_node,
@@ -86,9 +85,9 @@ void batadv_orig_node_vlan_free_ref(struct batadv_orig_node_vlan *orig_vlan);
86/* hashfunction to choose an entry in a hash table of given size 85/* hashfunction to choose an entry in a hash table of given size
87 * hash algorithm from http://en.wikipedia.org/wiki/Hash_table 86 * hash algorithm from http://en.wikipedia.org/wiki/Hash_table
88 */ 87 */
89static inline uint32_t batadv_choose_orig(const void *data, uint32_t size) 88static inline u32 batadv_choose_orig(const void *data, u32 size)
90{ 89{
91 uint32_t hash = 0; 90 u32 hash = 0;
92 91
93 hash = jhash(data, ETH_ALEN, hash); 92 hash = jhash(data, ETH_ALEN, hash);
94 return hash % size; 93 return hash % size;