uuid: add uuid.h to exported header list
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 9 May 2012 13:38:58 +0000 (16:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2012 20:57:30 +0000 (13:57 -0700)
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>
include/linux/Kbuild
include/linux/uuid.h

index 3c9b616c834a39601247a29f99fe08979317bf25..137dd4bb4ba73667626f5f76f7aa7fcc8e54805d 100644 (file)
@@ -381,6 +381,7 @@ header-y += unistd.h
 header-y += usbdevice_fs.h
 header-y += utime.h
 header-y += utsname.h
+header-y += uuid.h
 header-y += uvcvideo.h
 header-y += v4l2-mediabus.h
 header-y += v4l2-subdev.h
index 5b7efbfcee4e371a883143b6ddc98107df24a56d..f86c37bfd4a06cae5123a841a7f9cb3b5e37135e 100644 (file)
@@ -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