projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: random: rather than entropy_store abstraction, use global (v5.17)
[lttng-modules.git]
/
wrapper
/
random.c
diff --git
a/wrapper/random.c
b/wrapper/random.c
index d7e53cd140f0a7517fb6ce66b1c492e9959882c8..0f9586fdcac04379ac1a96bd9c1a086a086f5b15 100644
(file)
--- a/
wrapper/random.c
+++ b/
wrapper/random.c
@@
-10,11
+10,12
@@
*/
#include <linux/errno.h>
*/
#include <linux/errno.h>
+#include <linux/module.h>
/* boot_id depends on sysctl */
#if defined(CONFIG_SYSCTL)
/* boot_id depends on sysctl */
#if defined(CONFIG_SYSCTL)
-#include <
linux
/fs.h>
+#include <
wrapper
/fs.h>
#include <linux/file.h>
#include <linux/sched.h>
#include <linux/uaccess.h>
#include <linux/file.h>
#include <linux/sched.h>
#include <linux/uaccess.h>
@@
-33,7
+34,7
@@
int wrapper_get_bootid(char *bootid)
if (IS_ERR(file))
return PTR_ERR(file);
if (IS_ERR(file))
return PTR_ERR(file);
- len = kernel_read(file, bootid, BOOT_ID_LEN - 1, &file->f_pos);
+ len =
lttng_
kernel_read(file, bootid, BOOT_ID_LEN - 1, &file->f_pos);
if (len != BOOT_ID_LEN - 1) {
ret = -EINVAL;
goto end;
if (len != BOOT_ID_LEN - 1) {
ret = -EINVAL;
goto end;
This page took
0.02482 seconds
and
4
git commands to generate.