From: Michael Jeanson Date: Thu, 8 Nov 2018 20:35:14 +0000 (-0500) Subject: Drop uuid.h wrapper X-Git-Tag: v2.12.0-pre~95 X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=41f229dc03b585cc3f434e1db1a5a68101c5da9a Drop uuid.h wrapper Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-events.c b/lttng-events.c index e3a84252..566080a3 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -27,8 +27,8 @@ #include #include #include +#include -#include #include /* for wrapper_vmalloc_sync_all() */ #include #include diff --git a/lttng-events.h b/lttng-events.h index f5a7d23d..f62e0cb0 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/wrapper/uuid.h b/wrapper/uuid.h deleted file mode 100644 index 465754e2..00000000 --- a/wrapper/uuid.h +++ /dev/null @@ -1,30 +0,0 @@ -/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) - * - * wrapper/uuid.h - * - * Copyright (C) 2011-2012 Mathieu Desnoyers - */ - -#ifndef _LTTNG_WRAPPER_UUID_H -#define _LTTNG_WRAPPER_UUID_H - -#include - -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) -#include -#else - -#include - -typedef struct { - __u8 b[16]; -} uuid_le; - -static inline -void uuid_le_gen(uuid_le *u) -{ - generate_random_uuid(u->b); -} - -#endif -#endif /* _LTTNG_WRAPPER_UUID_H */