]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: make _rtw_enqueue_cmd static
authorHungyu Lin <dennylin0707@gmail.com>
Wed, 13 May 2026 21:37:17 +0000 (21:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 May 2026 10:39:28 +0000 (12:39 +0200)
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>
drivers/staging/rtl8723bs/core/rtw_cmd.c
drivers/staging/rtl8723bs/include/cmd_osdep.h

index 9c21980a80e0034f37830025c47e9582218a0a89..a9b06c10c9aadae45cd1b74de0bb1d7e8c12f972 100644 (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;
 
index 41daa3c339a87996fce488114d4120a76f8e7df2..91d933d71945de360842b0286142eb3a66a8fb25 100644 (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