X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Frandom.c;h=0f9586fdcac04379ac1a96bd9c1a086a086f5b15;hb=4a1a9a9a1a1548e034c8d976386ecb9a60dfaa32;hp=d7e53cd140f0a7517fb6ce66b1c492e9959882c8;hpb=47beefeb734480aebea4b748151d7f2d6db480e3;p=lttng-modules.git diff --git a/wrapper/random.c b/wrapper/random.c index d7e53cd1..0f9586fd 100644 --- a/wrapper/random.c +++ b/wrapper/random.c @@ -10,11 +10,12 @@ */ #include +#include /* boot_id depends on sysctl */ #if defined(CONFIG_SYSCTL) -#include +#include #include #include #include @@ -33,7 +34,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;