mei: make mei_io_list_flush static
Subsystems (2)
PATCH 1/2 mei: make mei_io_list_flush static
From: Alexander Usyskin <[email protected]>
mei_io_list_flush is used only in client.c
so make it local to the file and mark static.
Signed-off-by Alexander Usyskin <[email protected]>
Signed-off-by Tomas Winkler <[email protected]>
--- drivers/misc/mei/client.c | 2 +- drivers/misc/mei/client.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/misc/mei/client.c +1 -1
@@ -404,7 +404,7 @@ static void __mei_io_list_flush(struct mei_cl_cb *list,* @list: An instance of our list structure * @cl: host client */ -void mei_io_list_flush (struct mei_cl_cb *list,struct mei_cl *cl) +static inline void mei_io_list_flush (struct mei_cl_cb *list,struct mei_cl *cl) {__mei_io_list_flush (list, cl, false); }
drivers/misc/mei/client.h +0 -1
@@ -93,7 +93,6 @@ static inline void mei_io_list_init(struct mei_cl_cb *list) {INIT_LIST_HEAD (&list->list); } -void mei_io_list_flush (struct mei_cl_cb *list,struct mei_cl *cl);/* * MEI Host Client Functions
Signature · 1 line
2.7.4
PATCH 2/2 mei: make mei_cl_set_disconnected static
From: Alexander Usyskin <[email protected]>
mei_cl_set_disconnected is used only in client.c,
so make it local to the file and mark static.
Signed-off-by Alexander Usyskin <[email protected]>
Signed-off-by Tomas Winkler <[email protected]>
--- drivers/misc/mei/client.c | 2 +- drivers/misc/mei/client.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/misc/mei/client.c +1 -1
@@ -756,7 +756,7 @@ static void mei_cl_wake_all(struct mei_cl *cl)* * @cl: host client */ -void mei_cl_set_disconnected (struct mei_cl *cl) +static void mei_cl_set_disconnected (struct mei_cl *cl) {struct mei_device *dev = cl->dev;
drivers/misc/mei/client.h +0 -1
@@ -208,7 +208,6 @@ static inline u8 mei_cl_host_addr(const struct mei_cl *cl) }int mei_cl_disconnect (struct mei_cl *cl); -void mei_cl_set_disconnected (struct mei_cl *cl);int mei_cl_irq_disconnect (struct mei_cl *cl,struct mei_cl_cb *cb,struct mei_cl_cb *cmpl_list); int mei_cl_connect(struct mei_cl *cl, struct mei_me_client *me_cl,
Signature · 1 line
2.7.4