mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2026-03-31 06:30:21 +00:00
remove cmd_osdep.h header file
All functions declared in the cmd_osdep.h header file are only used in a single c source file. Make the functions static and remove the header file and its includes. Link: https://lore.kernel.org/r/20210821155151.25822-1-straube.linux@gmail.com
This commit is contained in:
committed by
Carlos Garces
parent
91b4661c5f
commit
8f94c636ca
@@ -26,7 +26,7 @@ Caller and the rtw_cmd_thread can protect cmd_q by spin_lock.
|
||||
No irqsave is necessary.
|
||||
*/
|
||||
|
||||
sint _rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||
static sint _rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||
{
|
||||
sint res = _SUCCESS;
|
||||
|
||||
@@ -126,7 +126,7 @@ static void c2h_wk_callback(_workitem *work)
|
||||
}
|
||||
#endif /* CONFIG_C2H_WK */
|
||||
|
||||
sint _rtw_init_evt_priv(struct evt_priv *pevtpriv)
|
||||
static sint _rtw_init_evt_priv(struct evt_priv *pevtpriv)
|
||||
{
|
||||
sint res = _SUCCESS;
|
||||
|
||||
@@ -191,7 +191,7 @@ exit:
|
||||
return res;
|
||||
}
|
||||
|
||||
void _rtw_free_evt_priv(struct evt_priv *pevtpriv)
|
||||
static void _rtw_free_evt_priv(struct evt_priv *pevtpriv)
|
||||
{
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ void _rtw_free_evt_priv(struct evt_priv *pevtpriv)
|
||||
|
||||
}
|
||||
|
||||
void _rtw_free_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||
static void _rtw_free_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||
{
|
||||
|
||||
if (pcmdpriv) {
|
||||
@@ -251,7 +251,7 @@ ISR/Call-Back functions can't call this sub-function.
|
||||
extern u8 dump_cmd_id;
|
||||
#endif
|
||||
|
||||
sint _rtw_enqueue_cmd(_queue *queue, struct cmd_obj *obj, bool to_head)
|
||||
static sint _rtw_enqueue_cmd(_queue *queue, struct cmd_obj *obj, bool to_head)
|
||||
{
|
||||
_irqL irqL;
|
||||
|
||||
@@ -312,7 +312,7 @@ exit:
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
struct cmd_obj *_rtw_dequeue_cmd(_queue *queue)
|
||||
static struct cmd_obj *_rtw_dequeue_cmd(_queue *queue)
|
||||
{
|
||||
_irqL irqL;
|
||||
struct cmd_obj *obj;
|
||||
|
||||
Reference in New Issue
Block a user