From: sunran001@208suo.com
To: mchehab@kernel.org
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] hv: put parentheses on macros with complex values in hyperv.h
Date: Thu, 20 Jul 2023 11:01:42 +0800 [thread overview]
Message-ID: <e4b504ab6a1534cd26be777c9cb0bb6a@208suo.com> (raw)
In-Reply-To: <20230720030009.1369-1-xujianghui@cdjrlc.com>
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 --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 - \
next parent reply other threads:[~2023-07-20 3:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230720030009.1369-1-xujianghui@cdjrlc.com>
2023-07-20 3:01 ` sunran001 [this message]
2023-07-20 4:53 ` kernel test robot
2023-07-20 7:17 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e4b504ab6a1534cd26be777c9cb0bb6a@208suo.com \
--to=sunran001@208suo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome