X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=wrapper%2Fuuid.h;fp=wrapper%2Fuuid.h;h=0000000000000000000000000000000000000000;hb=117ab60f69a98dcbc365de8008ab93e6699d153a;hp=d8ac53d33134995aa335f29b5c4cffbfc3632ed4;hpb=7c6d929d62a6e24fb1dbeaee5cd2c8afe77720b7;p=deliverable%2Flttng-modules.git diff --git a/wrapper/uuid.h b/wrapper/uuid.h deleted file mode 100644 index d8ac53d3..00000000 --- a/wrapper/uuid.h +++ /dev/null @@ -1,31 +0,0 @@ -/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) - * - * wrapper/uuid.h - * - * Copyright (C) 2020 Mathieu Desnoyers - */ - -#ifndef _LTTNG_WRAPPER_UUID_H -#define _LTTNG_WRAPPER_UUID_H - -#include -#include - -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)) -static inline -void lttng_guid_gen(guid_t *u) -{ - return guid_gen(u); -} -#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)) */ - -typedef uuid_le guid_t; - -static inline -void lttng_guid_gen(guid_t *u) -{ - return uuid_le_gen(u); -} -#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)) */ - -#endif /* _LTTNG_WRAPPER_UUID_H */