From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Martin Kaiser <martin@kaiser.cx>
Cc: Larry Finger <Larry.Finger@lwfinger.net>,
Phillip Potter <phil@philpotter.co.uk>,
Michael Straube <straube.linux@gmail.com>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 6/6] staging: r8188eu: remove local BIT macro
Date: Wed, 16 Mar 2022 07:40:23 +0100 [thread overview]
Message-ID: <YjGGV226yQv0vKMS@kroah.com> (raw)
In-Reply-To: <20220315205041.2714168-7-martin@kaiser.cx>
On Tue, Mar 15, 2022 at 09:50:41PM +0100, Martin Kaiser wrote:
> The r8188eu driver defines a local BIT(x) macro. Remove this local macro
> and use the one from include/linux/bits.h.
>
> The global BIT macro returns an unsigned long value. Therefore, we have to
> cast DYNAMIC_BB_DYNAMIC_TXPWR to u32 explicitly. This define is used with
> the bitwise not operator.
>
> Signed-off-by: Martin Kaiser <martin@kaiser.cx>
> ---
> v2:
> - cast DYNAMIC_BB_DYNAMIC_TXPWR to u32, fix build error on 64-bit systems
>
> drivers/staging/r8188eu/include/rtw_mlme_ext.h | 2 +-
> drivers/staging/r8188eu/include/wifi.h | 7 +------
> 2 files changed, 2 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/staging/r8188eu/include/rtw_mlme_ext.h b/drivers/staging/r8188eu/include/rtw_mlme_ext.h
> index 0c555ea6719b..2b5089be5156 100644
> --- a/drivers/staging/r8188eu/include/rtw_mlme_ext.h
> +++ b/drivers/staging/r8188eu/include/rtw_mlme_ext.h
> @@ -34,7 +34,7 @@
> /* BB ODM section BIT 0-15 */
> #define DYNAMIC_BB_DIG BIT(0)
> #define DYNAMIC_BB_RA_MASK BIT(1)
> -#define DYNAMIC_BB_DYNAMIC_TXPWR BIT(2)
> +#define DYNAMIC_BB_DYNAMIC_TXPWR ((u32)BIT(2))
That's really odd, why the cast for just one define? Try fixing up
where this is used instead.
thanks,
greg k-h
next prev parent reply other threads:[~2022-03-16 6:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-15 20:50 [PATCH v2 0/6] staging: r8188eu: some rx cleanups Martin Kaiser
2022-03-15 20:50 ` [PATCH v2 1/6] staging: r8188eu: remove unnecessary initializations Martin Kaiser
2022-03-15 20:50 ` [PATCH v2 2/6] staging: r8188eu: remove three unused receive defines Martin Kaiser
2022-03-15 20:50 ` [PATCH v2 3/6] staging: r8188eu: remove unused function prototype Martin Kaiser
2022-03-15 20:50 ` [PATCH v2 4/6] staging: r8188eu: make rtl8188e_process_phy_info static Martin Kaiser
2022-03-15 20:50 ` [PATCH v2 5/6] staging: r8188eu: remove some unused local ieee80211 macros Martin Kaiser
2022-03-15 20:50 ` [PATCH v2 6/6] staging: r8188eu: remove local BIT macro Martin Kaiser
2022-03-16 6:40 ` Greg Kroah-Hartman [this message]
2022-03-16 9:01 ` Dan Carpenter
2022-03-16 9:27 ` Dan Carpenter
2022-03-16 14:10 ` [PATCH v2 0/6] staging: r8188eu: some rx cleanups Greg Kroah-Hartman
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=YjGGV226yQv0vKMS@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=Larry.Finger@lwfinger.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=martin@kaiser.cx \
--cc=phil@philpotter.co.uk \
--cc=straube.linux@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.