diff mbox series

hv: put parentheses on macros with complex values in hyperv.h

Message ID e4b504ab6a1534cd26be777c9cb0bb6a@208suo.com
State New
Headers show
Series hv: put parentheses on macros with complex values in hyperv.h | expand

Commit Message

sunran001@208suo.com July 20, 2023, 3:01 a.m. UTC
Fix "Macros with complex values should be enclosed in parentheses"
checkpatch error.

Signed-off-by: Ran Sun <sunran001@208suo.com>
---
  include/linux/hyperv.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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 -	\