aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/bridge_loop_avoidance.c2
-rw-r--r--net/batman-adv/hash.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c
index 724adf053dcc..5e834c1df469 100644
--- a/net/batman-adv/bridge_loop_avoidance.c
+++ b/net/batman-adv/bridge_loop_avoidance.c
@@ -57,7 +57,7 @@ static inline uint32_t batadv_choose_claim(const void *data, uint32_t size)
57static inline uint32_t batadv_choose_backbone_gw(const void *data, 57static inline uint32_t batadv_choose_backbone_gw(const void *data,
58 uint32_t size) 58 uint32_t size)
59{ 59{
60 struct batadv_claim *claim = (struct batadv_claim *)data; 60 const struct batadv_claim *claim = (struct batadv_claim *)data;
61 uint32_t hash = 0; 61 uint32_t hash = 0;
62 62
63 hash = batadv_hash_bytes(hash, &claim->addr, sizeof(claim->addr)); 63 hash = batadv_hash_bytes(hash, &claim->addr, sizeof(claim->addr));
diff --git a/net/batman-adv/hash.h b/net/batman-adv/hash.h
index e05333905afd..ea0214824327 100644
--- a/net/batman-adv/hash.h
+++ b/net/batman-adv/hash.h
@@ -89,7 +89,7 @@ static inline void batadv_hash_delete(struct batadv_hashtable *hash,
89 * 89 *
90 * Returns the new hash value. 90 * Returns the new hash value.
91 */ 91 */
92static inline uint32_t batadv_hash_bytes(uint32_t hash, void *data, 92static inline uint32_t batadv_hash_bytes(uint32_t hash, const void *data,
93 uint32_t size) 93 uint32_t size)
94{ 94{
95 const unsigned char *key = data; 95 const unsigned char *key = data;