[PATCH] hv: put parentheses on macros with complex values in hyperv.h
From: sunran001
Date: Wed Jul 19 2023 - 23:01:51 EST
Fix "Macros with complex values should be enclosed in parentheses"
checkpatch error.
Signed-off-by: Ran Sun <sunran001@xxxxxxxxxx>
---
include/linux/hyperv.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index bfbc37ce223b..6f6fdc7cf086 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -428,9 +428,9 @@ union vmpacket_largest_possible_header {
struct vmdata_gpa_direct data_gpa_direct_hdr;
};
-#define VMPACKET_DATA_START_ADDRESS(__packet) \
+#define VMPACKET_DATA_START_ADDRESS((__packet) \
(void *)(((unsigned char *)__packet) + \
- ((struct vmpacket_descriptor)__packet)->offset8 * 8)
+ ((struct vmpacket_descriptor)__packet)->offset8 * 8))
#define VMPACKET_DATA_LENGTH(__packet) \
((((struct vmpacket_descriptor)__packet)->len8 - \