summaryrefslogtreecommitdiff
path: root/include/linux/uuid.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2012-05-09 16:38:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-09 13:57:30 -0700
commitb544f3fd3ac509850f8f1c28b302ae4e65b88346 (patch)
treec3a56209398370fba239204fa4a6ece401227085 /include/linux/uuid.h
parent32c826b66cc6f91831b5473a0ddceb410d4ffaf0 (diff)
downloadlwn-b544f3fd3ac509850f8f1c28b302ae4e65b88346.tar.gz
lwn-b544f3fd3ac509850f8f1c28b302ae4e65b88346.zip
uuid: add uuid.h to exported header list
uuid is used in mei.h interface Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/uuid.h')
-rw-r--r--include/linux/uuid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/uuid.h b/include/linux/uuid.h
index 5b7efbfcee4e..f86c37bfd4a0 100644
--- a/include/linux/uuid.h
+++ b/include/linux/uuid.h
@@ -54,6 +54,8 @@ typedef struct {
UUID_BE(0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, \
0x00, 0x00, 0x00, 0x00)
+#ifdef __KERNEL__
+
static inline int uuid_le_cmp(const uuid_le u1, const uuid_le u2)
{
return memcmp(&u1, &u2, sizeof(uuid_le));
@@ -67,4 +69,6 @@ static inline int uuid_be_cmp(const uuid_be u1, const uuid_be u2)
extern void uuid_le_gen(uuid_le *u);
extern void uuid_be_gen(uuid_be *u);
+#endif /* __KERNEL__ */
+
#endif