mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-22 13:35:00 +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:
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;
|
||||
|
@ -1,26 +0,0 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Copyright(c) 2007 - 2017 Realtek Corporation.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of version 2 of the GNU General Public License as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __CMD_OSDEP_H_
|
||||
#define __CMD_OSDEP_H_
|
||||
|
||||
|
||||
extern sint _rtw_init_cmd_priv(struct cmd_priv *pcmdpriv);
|
||||
extern sint _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);
|
||||
extern sint _rtw_enqueue_cmd(_queue *queue, struct cmd_obj *obj, bool to_head);
|
||||
extern struct cmd_obj *_rtw_dequeue_cmd(_queue *queue);
|
||||
|
||||
#endif
|
@ -62,7 +62,6 @@ typedef struct _ADAPTER _adapter, ADAPTER, *PADAPTER;
|
||||
#endif
|
||||
|
||||
#include <rtw_cmd.h>
|
||||
#include <cmd_osdep.h>
|
||||
#include <rtw_security.h>
|
||||
#include <rtw_xmit.h>
|
||||
#include <xmit_osdep.h>
|
||||
|
Loading…
Reference in New Issue
Block a user