staging: rtl8723bs: make _rtw_enqueue_cmd static

The function _rtw_enqueue_cmd() is only used within rtw_cmd.c,
so make it static and remove the unnecessary declaration from
the header file.

Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Link: https://patch.msgid.link/20260513213719.12246-3-dennylin0707@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Hungyu Lin 2026-05-13 21:37:17 +00:00 committed by Greg Kroah-Hartman
parent 95f2904973
commit 4c6cfd7f25
2 changed files with 1 additions and 2 deletions

View File

@ -248,7 +248,7 @@ void _rtw_free_cmd_priv(struct cmd_priv *pcmdpriv)
*
*/
int _rtw_enqueue_cmd(struct __queue *queue, struct cmd_obj *obj)
static int _rtw_enqueue_cmd(struct __queue *queue, struct cmd_obj *obj)
{
unsigned long irqL;

View File

@ -11,7 +11,6 @@ int rtw_init_cmd_priv(struct cmd_priv *pcmdpriv);
int rtw_init_evt_priv(struct evt_priv *pevtpriv);
extern void _rtw_free_evt_priv(struct evt_priv *pevtpriv);
extern void _rtw_free_cmd_priv(struct cmd_priv *pcmdpriv);
int _rtw_enqueue_cmd(struct __queue *queue, struct cmd_obj *obj);
extern struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue);
#endif