Skip to contentSkip to conversation

hyper-v: Replace uuid.h with types.h

PATCH Applied Andy Shevchenko 4 participants 4 messages Oct 1, 2021 – Oct 6, 2021

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

PATCH 1/1 hyper-v: Replace uuid.h with types.h

There is no user of anything in uuid.h in the hyperv.h. Replace it with more appropriate types.h.

Fixes f081bbb3fd03 ("hyper-v: Remove internal types from UAPI header")
---
 include/uapi/linux/hyperv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/hyperv.h +1 -1
index 6135d92e0d47..daf82a230c0e 100644
@@ -26,7 +26,7 @@
 #ifndef _UAPI_HYPERV_H
 #define _UAPI_HYPERV_H
 
-#include <linux/uuid.h>
+#include <linux/types.h>
 
 /*
  * Framework version for util services.
Signature · 1 line
2.33.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 28 lines

-----Original Message-----
From: Andy Shevchenko <[email protected]>
Sent: Friday, October 1, 2021 9:56 AM
To: Andy Shevchenko <[email protected]>; linux- [email protected]; [email protected]
Cc: KY Srinivasan <[email protected]>; Haiyang Zhang <[email protected]>; Stephen Hemminger <[email protected]>; Wei Liu <[email protected]>; Dexuan Cui <[email protected]>; Greg Kroah-Hartman <[email protected]>
Subject: [PATCH v1 1/1] hyper-v: Replace uuid.h with types.h

There is no user of anything in uuid.h in the hyperv.h. Replace it with more appropriate types.h.

Fixes f081bbb3fd03 ("hyper-v: Remove internal types from UAPI header")
---
 include/uapi/linux/hyperv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/hyperv.h +0 -0
index 6135d92e0d47..daf82a230c0e 100644

include/uapi/linux/hyperv.h line 31

Quoted 7 lines
include/uapi/linux/hyperv.h +1 -1
@@ -26,7 +26,7 @@
 #ifndef _UAPI_HYPERV_H
 #define _UAPI_HYPERV_H
 
-#include <linux/uuid.h>
+#include <linux/types.h>
 
 /*

Hyper-v drivers are using uuid/guid APIs, but they can get the defs from linux/mod_devicetable.h:

./include/linux/mod_devicetable.h:#include <linux/uuid.h> ./include/linux/hyperv.h:#include <uapi/linux/hyperv.h> ./include/linux/hyperv.h:#include <linux/mod_devicetable.h>

So your patch looks fine. Thanks.

#2 lore raw
Quoted 3 lines · Haiyang Zhang
Quoted 3 lines

-----Original Message-----
From: Andy Shevchenko <[email protected]>
Sent: Friday, October 1, 2021 9:56 AM

...

Quoted 6 lines

Hyper-v drivers are using uuid/guid APIs, but they can get the defs from linux/mod_devicetable.h:

./include/linux/mod_devicetable.h:#include <linux/uuid.h> ./include/linux/hyperv.h:#include <uapi/linux/hyperv.h> ./include/linux/hyperv.h:#include <linux/mod_devicetable.h>

Yes, drivers inside the kernel may use that and this is the correct way. The uAPI is not using it.

Quoted 3 lines

So your patch looks fine. Thanks.

Thank you!

Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer Applied
#3 lore raw
Quoted 14 lines · Andy Shevchenko
Quoted 3 lines · Haiyang Zhang
Quoted 3 lines

-----Original Message-----
From: Andy Shevchenko <[email protected]>
Sent: Friday, October 1, 2021 9:56 AM

...

Quoted 6 lines

Hyper-v drivers are using uuid/guid APIs, but they can get the defs from linux/mod_devicetable.h:

./include/linux/mod_devicetable.h:#include <linux/uuid.h> ./include/linux/hyperv.h:#include <uapi/linux/hyperv.h> ./include/linux/hyperv.h:#include <linux/mod_devicetable.h>

Quoted 8 lines

Yes, drivers inside the kernel may use that and this is the correct way. The uAPI is not using it.

Quoted 3 lines

So your patch looks fine. Thanks.

Thank you!

Applied to hyperv-fixes. Thanks.

Wei.

Quoted 5 lines
Signature · 3 lines
-- 
With Best Regards,
Andy Shevchenko