Skip to contentSkip to conversation

uuid: cleanup <uapi/linux/uuid.h>

PATCH Applied Alexey Dobriyan 2 participants 2 messages Dec 25, 2017 – Dec 29, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uuid: cleanup <uapi/linux/uuid.h>

Exported header doesn't use anything from <linux/string.h>, it is <linux/uuid.h> which uses memcmp().

---

 include/linux/uuid.h      |    1 +
 include/uapi/linux/uuid.h |    1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
include/linux/uuid.h +1 -0
@@ -17,6 +17,7 @@
 #define _LINUX_UUID_H_
 
 #include <uapi/linux/uuid.h>
+#include <linux/string.h>
 
 #define UUID_SIZE 16
 
include/uapi/linux/uuid.h +0 -1
@@ -19,7 +19,6 @@
 #define _UAPI_LINUX_UUID_H_
 
 #include <linux/types.h>
-#include <linux/string.h>
 
 typedef struct {
 	__u8 b[16];
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Alexey Dobriyan

Exported header doesn't use anything from <linux/string.h>, it is <linux/uuid.h> which uses memcmp().

+Cc UUID maintainer(s)

(If I didn't miss anything, that looks fine)

Quoted 27 lines

---

 include/linux/uuid.h      |    1 +
 include/uapi/linux/uuid.h |    1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
include/linux/uuid.h +1 -0
@@ -17,6 +17,7 @@
 #define _LINUX_UUID_H_
 
 #include <uapi/linux/uuid.h>
+#include <linux/string.h>
 
 #define UUID_SIZE 16
 
include/uapi/linux/uuid.h +0 -1
@@ -19,7 +19,6 @@
 #define _UAPI_LINUX_UUID_H_
 
 #include <linux/types.h>
-#include <linux/string.h>
 
 typedef struct {
        __u8 b[16];
Signature · 2 lines
With Best Regards,
Andy Shevchenko