mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Amol Dhamale <amoldhamale1105@gmail.com>
To: johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	sriram.g@kpit.com, Amol Dhamale <amoldhamale1105@gmail.com>
Subject: [PATCH 3/4] wifi: mac80211_hwsim: add sufficient parantheses to complex macro
Date: Tue, 21 Oct 2025 20:50:25 +0000	[thread overview]
Message-ID: <719536080163f4b8ecb9af6ebbb7af8304fe3401.1761078139.git.amoldhamale1105@gmail.com> (raw)
In-Reply-To: <cover.1761078139.git.amoldhamale1105@gmail.com>

Adhere to Linux kernel coding style.

Reported by checkpatch:

ERROR: Macros with complex values should be enclosed in parentheses

Signed-off-by: Amol Dhamale <amoldhamale1105@gmail.com>
---
 drivers/net/wireless/virtual/mac80211_hwsim.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/virtual/mac80211_hwsim.c b/drivers/net/wireless/virtual/mac80211_hwsim.c
index 51c0582e3b77..e62d4a98671f 100644
--- a/drivers/net/wireless/virtual/mac80211_hwsim.c
+++ b/drivers/net/wireless/virtual/mac80211_hwsim.c
@@ -5357,10 +5357,10 @@ static const u8 iftypes_ext_capa_ap[] = {
 };
 
 #define MAC80211_HWSIM_MLD_CAPA_OPS				\
-	FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP, \
-			 IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP_SAME) | \
-	FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_MAX_SIMUL_LINKS, \
-			 IEEE80211_MLD_MAX_NUM_LINKS - 1)
+	((FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP, \
+			 IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP_SAME)) | \
+	(FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_MAX_SIMUL_LINKS, \
+			 IEEE80211_MLD_MAX_NUM_LINKS - 1)))
 
 static const struct wiphy_iftype_ext_capab mac80211_hwsim_iftypes_ext_capa[] = {
 	{
-- 
2.43.0


  parent reply	other threads:[~2025-10-21 20:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-21 20:50 [PATCH 0/4] wifi: mac80211_hwsim: code cleanup patches Amol Dhamale
2025-10-21 20:50 ` [PATCH 1/4] wifi: mac80211_hwsim: remove explicit initialization of statics to false Amol Dhamale
2025-10-21 20:50 ` [PATCH 2/4] wifi: mac80211_hwsim: fix coding style issue by adding whitespaces Amol Dhamale
2025-10-21 20:50 ` Amol Dhamale [this message]
2025-10-21 20:50 ` [PATCH 4/4] wifi: mac80211_hwsim: use more restrictive permissions on debugfs files Amol Dhamale
2025-10-27  8:11 ` [PATCH 0/4] wifi: mac80211_hwsim: code cleanup patches Johannes Berg

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=719536080163f4b8ecb9af6ebbb7af8304fe3401.1761078139.git.amoldhamale1105@gmail.com \
    --to=amoldhamale1105@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=sriram.g@kpit.com \
    /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

all inboxes | Powered by JetHome®