hyper-v: Replace uuid.h with types.h
Subsystems (2)
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.
--- include/uapi/linux/hyperv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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> /* * Framework version for util services.
Signature · 1 line
2.33.0
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: Replaceuuid.hwithtypes.hThere is no user of anything in
uuid.hin thehyperv.h. Replace it with more appropriatetypes.h.Fixes f081bbb3fd03 ("hyper-v: Remove internal types from UAPI header")Reported-by Greg Kroah-Hartman <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>--- include/uapi/linux/hyperv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/uapi/linux/hyperv.h +0
-0
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.
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.
Reviewed-by Haiyang Zhang <[email protected]>
Thank you!
Signature · 2 lines
With Best Regards, Andy Shevchenko
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.
Reviewed-by Haiyang Zhang <[email protected]>Thank you!
Applied to hyperv-fixes. Thanks.
Wei.
Quoted 5 lines
Signature · 3 lines
-- With Best Regards, Andy Shevchenko