staging: remove intel_sst driver
[linux-2.6.git] / drivers / staging / lttng / wrapper / uuid.h
blobbfa67ff3c1db13d322d907309e810ae72509f4ce
1 #ifndef _LTT_WRAPPER_UUID_H
2 #define _LTT_WRAPPER_UUID_H
4 /*
5 * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com)
7 * Dual LGPL v2.1/GPL v2 license.
8 */
10 #include <linux/version.h>
12 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
13 #include <linux/uuid.h>
14 #else
16 #include <linux/random.h>
18 typedef struct {
19 __u8 b[16];
20 } uuid_le;
22 static inline
23 void uuid_le_gen(uuid_le *u)
25 generate_random_uuid(u->b);
28 #endif
29 #endif /* _LTT_WRAPPER_UUID_H */