summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-02-10 16:40:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-30 09:29:06 +0200
commitce951e9672df144b15540de6cf81d4b1f2ce7d39 (patch)
tree1b94b337f52f15a0fa197137a6ed2b47a93e050f /lib
parent4509941f75ac8d4fc4a798d03ade86d15eb10caf (diff)
downloadlinux-stable-ce951e9672df144b15540de6cf81d4b1f2ce7d39.tar.gz
linux-stable-ce951e9672df144b15540de6cf81d4b1f2ce7d39.tar.bz2
linux-stable-ce951e9672df144b15540de6cf81d4b1f2ce7d39.zip
random: remove unused tracepoints
commit 14c174633f349cb41ea90c2c0aaddac157012f74 upstream. These explicit tracepoints aren't really used and show sign of aging. It's work to keep these up to date, and before I attempted to keep them up to date, they weren't up to date, which indicates that they're not really used. These days there are better ways of introspecting anyway. Cc: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net> Reviewed-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/random32.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/random32.c b/lib/random32.c
index 4d0e05e471d7..3c19820796d0 100644
--- a/lib/random32.c
+++ b/lib/random32.c
@@ -39,8 +39,8 @@
#include <linux/random.h>
#include <linux/sched.h>
#include <linux/bitops.h>
+#include <linux/slab.h>
#include <asm/unaligned.h>
-#include <trace/events/random.h>
/**
* prandom_u32_state - seeded pseudo-random number generator.
@@ -386,7 +386,6 @@ u32 prandom_u32(void)
struct siprand_state *state = get_cpu_ptr(&net_rand_state);
u32 res = siprand_u32(state);
- trace_prandom_u32(res);
put_cpu_ptr(&net_rand_state);
return res;
}