batman-adv: Include random.h for get_random_u32_below

Message ID 20221227080301.516810-2-sven@narfation.org (mailing list archive)
State Superseded, archived
Delegated to: Simon Wunderlich
Headers
Series batman-adv: Include random.h for get_random_u32_below |

Commit Message

Sven Eckelmann Dec. 27, 2022, 8:03 a.m. UTC
  The commit a15d3f3c1c2a ("batman-adv: use get_random_u32_below() instead of
deprecated function") replaced the prandom.h function prandom_u32_max with
the random.h function get_random_u32_below.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
  

Patch

diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c
index 5e1f422b3a94b119746a6b3b5cf64182951e8eb3..ecd871abda34284cd01ae7863f8852e479ccc23d 100644
--- a/net/batman-adv/network-coding.c
+++ b/net/batman-adv/network-coding.c
@@ -26,6 +26,7 @@ 
 #include <linux/net.h>
 #include <linux/netdevice.h>
 #include <linux/printk.h>
+#include <linux/random.h>
 #include <linux/rculist.h>
 #include <linux/rcupdate.h>
 #include <linux/skbuff.h>