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:
Michael Straube
2021-08-21 17:51:51 +02:00
committed by Carlos Garces
parent 91b4661c5f
commit 8f94c636ca
3 changed files with 6 additions and 33 deletions

View File

@@ -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;