CONNECTOR: make cn_already_initialized static
PATCH 1/1 CONNECTOR: make cn_already_initialized static
It is used in connector.c only, so make it static.
Signed-off-by Li Zefan <[email protected]>
--- drivers/connector/connector.c | 2 +- include/linux/connector.h | 2 -- 2 files changed, 1 insertions(+), 3 deletions(-)
drivers/connector/connector.c +1 -1
@@ -47,7 +47,7 @@ static LIST_HEAD(notify_list);static struct cn_dev cdev; -int cn_already_initialized =0 ; +static int cn_already_initialized;/* * msg->seq and msg->ack are used to determine message genealogy.
include/linux/connector.h +0 -2
@@ -170,7 +170,5 @@ int cn_cb_equal(struct cb_id *, struct cb_id *);void cn_queue_wrapper (struct work_struct *work); -extern int cn_already_initialized; -#endif /* __KERNEL__ */ #endif /* __CONNECTOR_H */
Signature · 1 line
1.5.4.rc3
From: Li Zefan <[email protected]>
Date: Wed, 27 Feb 2008 10:22:12 +0800
Quoted 3 lines
It is used in
connector.conly, so make it static.Signed-off-by Li Zefan <[email protected]>
Applied, thanks.
Hi.
Quoted 5 lines · David Miller
Quoted 3 lines
It is used in
connector.conly, so make it static.Signed-off-by Li Zefan <[email protected]>Applied, thanks.
Thanks for resolving this guys.
Signature · 1 line
Evgeniy Polyakov