From: Priit Laes <plaes@plaes.org>
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: "Vivek BalachandharTN" <vivek.balachandhar@gmail.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Archit Anant" <architanant5@gmail.com>,
"Minu Jin" <s9430939@naver.com>,
"Andy Shevchenko" <andriy.shevchenko@intel.com>,
"Thomas Gleixner" <tglx@kernel.org>,
"Yuvraj Singh Chauhan" <ysinghcin@gmail.com>,
"JJ Strnad" <strnad.jj@gmail.com>,
"Julia Lawall" <julia.lawall@inria.fr>,
"William Hansen-Baird" <william.hansen.baird@gmail.com>,
"Randy Dunlap" <rdunlap@infradead.org>,
"Abraham Samuel Adekunle" <abrahamadekunle50@gmail.com>,
"Rodrigo Gobbi" <rodrigo.gobbi.7@gmail.com>,
"Navaneeth K" <knavaneeth786@gmail.com>,
"Artur Stupa" <arthur.stupa@gmail.com>,
"Michael Straube" <straube.linux@gmail.com>,
"Hans de Goede" <hansg@kernel.org>,
"Ethan Tidmore" <ethantidmore06@gmail.com>,
"Zhuoheng Li" <lizhuoheng@kylinos.cn>,
"Michael Huang" <tehsiu.huang@gmail.com>,
"Nino Zhang" <ninozhang001@gmail.com>,
"Ingo Molnar" <mingo@kernel.org>,
"Rogério Fernandes Pereira" <rfp2005@gmail.com>,
"Diksha Kumari" <dikshakdevgan@gmail.com>,
yingche <zxcv2569763104@gmail.com>,
"Khushal Chitturi" <khushalchitturi@gmail.com>,
"Karthikey D Kadati" <karthikey3608@gmail.com>,
"Akiyoshi Kurita" <weibu@redadmin.org>,
"Erick Karanja" <karanja99erick@gmail.com>,
"SeungJu Cheon" <suunj1331@gmail.com>,
"Sun Jian" <sun.jian.kdev@gmail.com>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 01/11] staging: stl8723bs: Use common round_up macro
Date: Mon, 23 Feb 2026 10:43:31 +0000 [thread overview]
Message-ID: <aZwvU_zJfySr422N@plaes.org> (raw)
In-Reply-To: <aZv9K1It5Q-J5Iaw@stanley.mountain>
On Mon, Feb 23, 2026 at 10:09:31AM +0300, Dan Carpenter wrote:
> On Sat, Feb 21, 2026 at 03:41:27PM -0400, Vivek BalachandharTN wrote:
> > Subject has a typo. Please correct it.
> >
> > How did you test this? The driver code appears largely AI-generated unless
> > it has been validated on actual hardware, such as Pine64 Wi-Fi module or
> > another board compatible with rtl8723bs considering these changes are not
> > just indentation based.
> >
>
> The patch doesn't introduce any bugs.
>
> #define _RND(sz, r) ((((sz)+((r)-1))/(r))*(r))
>
> This is the canonical way to implement a round up macro. It's how
> roundup() is implemented in the kernel.
>
> The patch uses round_up() instead which is a faster version but it only
> works for power of 2 rounds. psdio->block_transfer_len is 512 so it's
> fine. I probably would prefer to use roundup() for that even though
> round_up() works as well.
>
> We maybe should create a static checker rule to warn about using
> round_up() for non-power of 2 values:
>
> KTODO: create a Smatch rule to use roundup() instead of round_up()
> for user supplied values, or non-power of 2.
>
Firstly, thanks for the kind words, Dan.
It's kinda annoying how things have changed since the old days.
Apparently if someone now attempts to improve the low-hanging fruit, it gets
instantly accused of doing something awful...
Anyway, meanwhile I actually discovered some better versions of out-of-tree
drivers for rtl8732bs based on existing rtw888 driver [1], [2], therefore I
have no motivation left to fix up my "own brain slop".
And on more thing - whats the proper way to use get_maintainers.pl script
with `git send-email` when sending patch series? Apparently I used it wrongly
and managed to agitate lots of people in the process..
[1] https://github.com/jernejsk/linux-1/tree/8723b
[2] https://github.com/MocLG/rtw88-rtl8723bs
Päikest,
Priit
next prev parent reply other threads:[~2026-02-23 10:43 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-21 19:01 [PATCH v2 00/11] staging: stl8723bs: Various cleanups Priit Laes
2026-02-21 19:01 ` [PATCH v2 01/11] staging: stl8723bs: Use common round_up macro Priit Laes
2026-02-21 19:41 ` Vivek BalachandharTN
2026-02-23 7:09 ` Dan Carpenter
2026-02-23 10:43 ` Priit Laes [this message]
2026-02-23 11:40 ` Julia Lawall
2026-02-23 11:50 ` Andy Shevchenko
2026-02-23 12:16 ` Julia Lawall
2026-02-23 13:48 ` Andy Shevchenko
2026-02-23 14:43 ` Dan Carpenter
2026-02-21 19:01 ` [PATCH v2 02/11] staging: rtl8723bs: Remove unused BIT32..BIT36 definitions Priit Laes
2026-02-21 19:01 ` [PATCH v2 03/11] staging: rtl8723bs: Drop empty rtw_bug_check function Priit Laes
2026-02-21 19:01 ` [PATCH v2 04/11] staging: rtl8723bs: Remove unused rtw_sprintf macro Priit Laes
2026-02-21 19:01 ` [PATCH v2 05/11] staging: rtl8723bs: Drop unused _kfree(...) declaration Priit Laes
2026-02-21 19:01 ` [PATCH v2 06/11] staging: rtl8723bs: Get rid of unused _rtw_init_queue Priit Laes
2026-02-21 19:01 ` [PATCH v2 07/11] staging: rtl8723bs: Drop unused NDEV-related formatting macros Priit Laes
2026-02-21 19:01 ` [PATCH v2 08/11] staging: rtl8723bs: Drop workqueue wrapper functions Priit Laes
2026-02-21 19:01 ` [PATCH v2 09/11] staging: rtl8273bs: Simplify regulatory initialization functions Priit Laes
2026-02-23 7:17 ` Dan Carpenter
2026-02-21 19:01 ` [PATCH v2 10/11] staging: rtl8723bs: Clean up wrapper functions Priit Laes
2026-02-21 20:20 ` Vivek BalachandharTN
2026-02-23 7:25 ` Dan Carpenter
[not found] ` <CAPsOcukZNc3oR=FmAjCdC6NrUV=1CaggQNGPoC2oxuH_P2R0hQ@mail.gmail.com>
2026-02-23 7:50 ` Andy Shevchenko
2026-02-21 19:01 ` [PATCH v2 11/11] staging: rtl8723bs: rtw_ieee80211: Reduce global symbols Priit Laes
2026-02-23 7:32 ` Dan Carpenter
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=aZwvU_zJfySr422N@plaes.org \
--to=plaes@plaes.org \
--cc=abrahamadekunle50@gmail.com \
--cc=andriy.shevchenko@intel.com \
--cc=architanant5@gmail.com \
--cc=arthur.stupa@gmail.com \
--cc=dan.carpenter@linaro.org \
--cc=dikshakdevgan@gmail.com \
--cc=ethantidmore06@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hansg@kernel.org \
--cc=julia.lawall@inria.fr \
--cc=karanja99erick@gmail.com \
--cc=karthikey3608@gmail.com \
--cc=khushalchitturi@gmail.com \
--cc=knavaneeth786@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=lizhuoheng@kylinos.cn \
--cc=mingo@kernel.org \
--cc=ninozhang001@gmail.com \
--cc=rdunlap@infradead.org \
--cc=rfp2005@gmail.com \
--cc=rodrigo.gobbi.7@gmail.com \
--cc=s9430939@naver.com \
--cc=straube.linux@gmail.com \
--cc=strnad.jj@gmail.com \
--cc=sun.jian.kdev@gmail.com \
--cc=suunj1331@gmail.com \
--cc=tehsiu.huang@gmail.com \
--cc=tglx@kernel.org \
--cc=vivek.balachandhar@gmail.com \
--cc=weibu@redadmin.org \
--cc=william.hansen.baird@gmail.com \
--cc=ysinghcin@gmail.com \
--cc=zxcv2569763104@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox