public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com>
Cc: ~lkcamp/patches@lists.sr.ht, linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org,
	linux-kernel-mentees@lists.linux.dev, a.nasrolahi01@gmail.com
Subject: Re: [PATCH] staging: rtl8723bs: fix unnamed parameters warning detected at checkpatch
Date: Tue, 7 Apr 2026 16:25:54 +0200	[thread overview]
Message-ID: <2026040718-relic-request-d245@gregkh> (raw)
In-Reply-To: <20260407133416.13983-1-rodrigo.gobbi.7@gmail.com>

On Tue, Apr 07, 2026 at 10:27:21AM -0300, Rodrigo Gobbi wrote:
> Detected the following WARNING: function definition argument
> 'struct adapter *' should also have an identifier name.
> Add explicit names on those definitions.
> 
> Signed-off-by: Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com>
> ---
> Hi, all,
> 
> Found a set of these warnings with checkpatch:
> 
> drivers/staging/rtl8723bs/include/hal_btcoex.h:25: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> drivers/staging/rtl8723bs/include/hal_btcoex.h:49: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> drivers/staging/rtl8723bs/include/hal_btcoex.h:50: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> drivers/staging/rtl8723bs/include/hal_btcoex.h:51: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> drivers/staging/rtl8723bs/include/hal_intf.h:255: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> drivers/staging/rtl8723bs/include/rtw_btcoex.h:18: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> drivers/staging/rtl8723bs/include/rtw_btcoex.h:19: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> drivers/staging/rtl8723bs/include/rtw_btcoex.h:24: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> drivers/staging/rtl8723bs/include/rtw_btcoex.h:25: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> drivers/staging/rtl8723bs/include/rtw_btcoex.h:26: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> drivers/staging/rtl8723bs/include/rtw_pwrctrl.h:218: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> drivers/staging/rtl8723bs/include/rtw_pwrctrl.h:219: WARNING: function definition argument 'struct adapter *' should also have an identifier name
> 
> ...the ones from hal_btcoex.h is already ongoing at [1].
> Fixed the rest of them following the pattern of each file like:
> 
> struct adapter *padapter
> or 
> struct adapter *adapter
> 
> Tks and regards.
> 
> [1] https://lore.kernel.org/all/20250720145524.9733-4-A.Nasrolahi01@gmail.com/
> ---
>  drivers/staging/rtl8723bs/include/hal_intf.h    |  2 +-
>  drivers/staging/rtl8723bs/include/rtw_btcoex.h  | 10 +++++-----
>  drivers/staging/rtl8723bs/include/rtw_pwrctrl.h |  4 ++--
>  3 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging/rtl8723bs/include/hal_intf.h
> index b193854bfe6e..10762ffbafb6 100644
> --- a/drivers/staging/rtl8723bs/include/hal_intf.h
> +++ b/drivers/staging/rtl8723bs/include/hal_intf.h
> @@ -252,7 +252,7 @@ c2h_id_filter rtw_hal_c2h_id_filter_ccx(struct adapter *adapter);
>  s32 rtw_hal_macid_sleep(struct adapter *padapter, u32 macid);
>  s32 rtw_hal_macid_wakeup(struct adapter *padapter, u32 macid);
>  
> -s32 rtw_hal_fill_h2c_cmd(struct adapter *, u8 ElementID, u32 CmdLen, u8 *pCmdBuffer);
> +s32 rtw_hal_fill_h2c_cmd(struct adapter *padapter, u8 ElementID, u32 CmdLen, u8 *pCmdBuffer);

No need to give variable names you will have to later fix up, just call
it "adapter", not "padapter" as that's not the kernel coding style.

thanks,

greg k-h

      reply	other threads:[~2026-04-07 14:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-07 13:27 [PATCH] staging: rtl8723bs: fix unnamed parameters warning detected at checkpatch Rodrigo Gobbi
2026-04-07 14:25 ` Greg KH [this message]

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=2026040718-relic-request-d245@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=a.nasrolahi01@gmail.com \
    --cc=linux-kernel-mentees@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=rodrigo.gobbi.7@gmail.com \
    --cc=~lkcamp/patches@lists.sr.ht \
    /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