summaryrefslogtreecommitdiff
path: root/include/linux/random.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-03-19 10:15:48 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-03-19 10:18:56 -0400
commit62ea232b09a6ed6464ccd23d3b60f5acf284a77b (patch)
tree836c5603fce33a4d3c7379607ec48017ec37bea4 /include/linux/random.h
parent64ce740ac675de883ed6ce99be134a1096708063 (diff)
Update bcachefs sources to dbe591cee299 bcachefs: Add missing smp_rmb()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/random.h')
-rw-r--r--include/linux/random.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/random.h b/include/linux/random.h
index 9b2bb59a..0ee15c70 100644
--- a/include/linux/random.h
+++ b/include/linux/random.h
@@ -69,6 +69,11 @@ static inline u32 get_random_u32_below(u32 ceil)
}
}
+static inline u32 __get_random_u32_below(u32 ceil)
+{
+ return get_random_u32_below(ceil);
+}
+
static inline u64 get_random_u64_below(u64 ceil)
{
if (ceil <= 1)