From: Julia Lawall <julia.lawall@inria.fr>
To: aliya-rahmani <aliyarahmani786@gmail.com>
Cc: florian.c.schilhabel@googlemail.com, gregkh@linuxfoundation.org,
linux-staging@lists.linux.dev, outreachy@lists.linux.dev
Subject: Re: [PATCH v2] staging: rtl8712: efuse: code style - avoid macro argument precedence issues
Date: Tue, 12 Apr 2022 08:26:31 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.22.394.2204120825400.3122@hadrien> (raw)
In-Reply-To: <20220412061442.32536-1-aliyarahmani786@gmail.com>
On Tue, 12 Apr 2022, aliya-rahmani wrote:
> From: Aliya Rahmani <aliyarahmani786@gmail.com>
>
> This patch fixes checkpatch warnings of precedence issues. Added parentheses
> around macro arguments 'offset' and 'word_en'.
>
> Signed-off-by: Aliya Rahmani <aliyarahmani786@gmail.com>
> ---
> v1 -> v2: Updated the description of the fixes.
You have a lot of messages labeled v2 now. This will be confusing for
Greg. Make a v3 that is entirely correct.
julia
> ---
>
> drivers/staging/rtl8712/rtl8712_efuse.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8712/rtl8712_efuse.h b/drivers/staging/rtl8712/rtl8712_efuse.h
> index 4969d307e978..2e1ea9d7a295 100644
> --- a/drivers/staging/rtl8712/rtl8712_efuse.h
> +++ b/drivers/staging/rtl8712/rtl8712_efuse.h
> @@ -15,8 +15,8 @@
>
> #define GET_EFUSE_OFFSET(header) ((header & 0xF0) >> 4)
> #define GET_EFUSE_WORD_EN(header) (header & 0x0F)
> -#define MAKE_EFUSE_HEADER(offset, word_en) (((offset & 0x0F) << 4) | \
> - (word_en & 0x0F))
> +#define MAKE_EFUSE_HEADER(offset, word_en) ((((offset) & 0x0F) << 4) | \
> + ((word_en) & 0x0F))
> /*--------------------------------------------------------------------------*/
> struct PGPKT_STRUCT {
> u8 offset;
> --
> 2.25.1
>
>
>
next prev parent reply other threads:[~2022-04-12 6:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-12 6:14 [PATCH v2] staging: rtl8712: efuse: code style - avoid macro argument precedence issues aliya-rahmani
2022-04-12 6:26 ` Julia Lawall [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-04-11 6:47 [PATCH] " Julia Lawall
2022-04-11 11:02 ` [PATCH v2] " aliya-rahmani
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=alpine.DEB.2.22.394.2204120825400.3122@hadrien \
--to=julia.lawall@inria.fr \
--cc=aliyarahmani786@gmail.com \
--cc=florian.c.schilhabel@googlemail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-staging@lists.linux.dev \
--cc=outreachy@lists.linux.dev \
/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