Add 'kernel_read' wrapper for kernels < v4.14
[lttng-modules.git] / wrapper / random.c
index d7e53cd140f0a7517fb6ce66b1c492e9959882c8..f67d0f0c997df27e12709135e372a6d90b09992c 100644 (file)
@@ -14,7 +14,7 @@
 /* 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>
@@ -33,7 +33,7 @@ int wrapper_get_bootid(char *bootid)
        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;
This page took 0.023891 seconds and 4 git commands to generate.