* [2.6 patch] drivers/message/fusion/mptbase.c: make code static
@ 2005-11-03 18:33 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-11-03 18:33 UTC (permalink / raw)
To: linux-kernel
This patch makes the following previously global and EXPORT_SYMBOL'ed
code static:
- struct mpt_proc_root_dir
- int mpt_stm_index
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/message/fusion/mptbase.c | 6 ++----
drivers/message/fusion/mptbase.h | 2 --
2 files changed, 2 insertions(+), 6 deletions(-)
--- linux-2.6.14-rc5-mm1-full/drivers/message/fusion/mptbase.h.old 2005-11-03 18:19:05.000000000 +0100
+++ linux-2.6.14-rc5-mm1-full/drivers/message/fusion/mptbase.h 2005-11-03 18:19:56.000000000 +0100
@@ -995,10 +995,8 @@
* Public data decl's...
*/
extern struct list_head ioc_list;
-extern struct proc_dir_entry *mpt_proc_root_dir;
extern int mpt_lan_index; /* needed by mptlan.c */
-extern int mpt_stm_index; /* needed by mptstm.c */
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
#endif /* } __KERNEL__ */
--- linux-2.6.14-rc5-mm1-full/drivers/message/fusion/mptbase.c.old 2005-11-03 18:19:19.000000000 +0100
+++ linux-2.6.14-rc5-mm1-full/drivers/message/fusion/mptbase.c 2005-11-03 18:20:07.000000000 +0100
@@ -92,9 +92,9 @@
* Public data...
*/
int mpt_lan_index = -1;
-int mpt_stm_index = -1;
+static int mpt_stm_index = -1;
-struct proc_dir_entry *mpt_proc_root_dir;
+static struct proc_dir_entry *mpt_proc_root_dir;
#define WHOINIT_UNKNOWN 0xAA
@@ -6274,7 +6274,6 @@
EXPORT_SYMBOL(mpt_suspend);
#endif
EXPORT_SYMBOL(ioc_list);
-EXPORT_SYMBOL(mpt_proc_root_dir);
EXPORT_SYMBOL(mpt_register);
EXPORT_SYMBOL(mpt_deregister);
EXPORT_SYMBOL(mpt_event_register);
@@ -6292,7 +6291,6 @@
EXPORT_SYMBOL(mpt_GetIocState);
EXPORT_SYMBOL(mpt_print_ioc_summary);
EXPORT_SYMBOL(mpt_lan_index);
-EXPORT_SYMBOL(mpt_stm_index);
EXPORT_SYMBOL(mpt_HardResetHandler);
EXPORT_SYMBOL(mpt_config);
EXPORT_SYMBOL(mpt_toolbox);
^ permalink raw reply [flat|nested] 2+ messages in thread
* [2.6 patch] drivers/message/fusion/mptbase.c: make code static
@ 2005-11-07 20:04 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-11-07 20:04 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
This patch makes the following previously global and EXPORT_SYMBOL'ed
code static:
- struct mpt_proc_root_dir
- int mpt_stm_index
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on:
- 3 Nov 2005
drivers/message/fusion/mptbase.c | 6 ++----
drivers/message/fusion/mptbase.h | 2 --
2 files changed, 2 insertions(+), 6 deletions(-)
--- linux-2.6.14-rc5-mm1-full/drivers/message/fusion/mptbase.h.old 2005-11-03 18:19:05.000000000 +0100
+++ linux-2.6.14-rc5-mm1-full/drivers/message/fusion/mptbase.h 2005-11-03 18:19:56.000000000 +0100
@@ -995,10 +995,8 @@
* Public data decl's...
*/
extern struct list_head ioc_list;
-extern struct proc_dir_entry *mpt_proc_root_dir;
extern int mpt_lan_index; /* needed by mptlan.c */
-extern int mpt_stm_index; /* needed by mptstm.c */
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
#endif /* } __KERNEL__ */
--- linux-2.6.14-rc5-mm1-full/drivers/message/fusion/mptbase.c.old 2005-11-03 18:19:19.000000000 +0100
+++ linux-2.6.14-rc5-mm1-full/drivers/message/fusion/mptbase.c 2005-11-03 18:20:07.000000000 +0100
@@ -92,9 +92,9 @@
* Public data...
*/
int mpt_lan_index = -1;
-int mpt_stm_index = -1;
+static int mpt_stm_index = -1;
-struct proc_dir_entry *mpt_proc_root_dir;
+static struct proc_dir_entry *mpt_proc_root_dir;
#define WHOINIT_UNKNOWN 0xAA
@@ -6274,7 +6274,6 @@
EXPORT_SYMBOL(mpt_suspend);
#endif
EXPORT_SYMBOL(ioc_list);
-EXPORT_SYMBOL(mpt_proc_root_dir);
EXPORT_SYMBOL(mpt_register);
EXPORT_SYMBOL(mpt_deregister);
EXPORT_SYMBOL(mpt_event_register);
@@ -6292,7 +6291,6 @@
EXPORT_SYMBOL(mpt_GetIocState);
EXPORT_SYMBOL(mpt_print_ioc_summary);
EXPORT_SYMBOL(mpt_lan_index);
-EXPORT_SYMBOL(mpt_stm_index);
EXPORT_SYMBOL(mpt_HardResetHandler);
EXPORT_SYMBOL(mpt_config);
EXPORT_SYMBOL(mpt_toolbox);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-07 20:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-03 18:33 [2.6 patch] drivers/message/fusion/mptbase.c: make code static Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2005-11-07 20:04 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox