Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit 89dcbd5f2373b955fc8eabb909f6188ae33110b7 Author: Joe Perches joe@perches.com Date: Fri Jun 22 10:51:00 2018 -0700
batman-adv: Convert random_ether_addr to eth_random_addr
random_ether_addr is a #define for eth_random_addr which is generally preferred in kernel code by ~3:1
Convert the uses of random_ether_addr to enable removing the #define
Signed-off-by: Joe Perches joe@perches.com Signed-off-by: Sven Eckelmann sven@narfation.org
89dcbd5f2373b955fc8eabb909f6188ae33110b7 net/batman-adv/bridge_loop_avoidance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index a2de5a4..ff9659a 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -1449,7 +1449,7 @@ static void batadv_bla_periodic_work(struct work_struct *work) * detection frames. Set the locally administered bit to avoid * collisions with users mac addresses. */ - random_ether_addr(bat_priv->bla.loopdetect_addr); + eth_random_addr(bat_priv->bla.loopdetect_addr); bat_priv->bla.loopdetect_addr[0] = 0xba; bat_priv->bla.loopdetect_addr[1] = 0xbe; bat_priv->bla.loopdetect_lasttime = jiffies;