All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: linux-kernel@vger.kernel.org
Subject: [2.6 patch] drivers/message/fusion/mptbase.c: make code static
Date: Thu, 3 Nov 2005 19:33:30 +0100	[thread overview]
Message-ID: <20051103183330.GI23366@stusta.de> (raw)

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


             reply	other threads:[~2005-11-03 18:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 18:33 Adrian Bunk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-11-07 20:04 [2.6 patch] drivers/message/fusion/mptbase.c: make code static Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051103183330.GI23366@stusta.de \
    --to=bunk@stusta.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.