From: David Teigland <teigland@redhat.com>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [patch 03/12] dlm: make code static
Date: Fri, 15 Jul 2005 18:35:56 +0800 [thread overview]
Message-ID: <20050715103556.GF17316@redhat.com> (raw)
[-- Attachment #1: add-static.patch --]
[-- Type: text/plain, Size: 4506 bytes --]
This patch makes needlessly global code static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David Teigland <teigland@redhat.com>
Index: linux-2.6.12-mm1/drivers/dlm/lock.c
===================================================================
--- linux-2.6.12-mm1.orig/drivers/dlm/lock.c
+++ linux-2.6.12-mm1/drivers/dlm/lock.c
@@ -92,7 +92,7 @@ static int receive_extralen(struct dlm_m
* Usage: matrix[grmode+1][rqmode+1] (although m[rq+1][gr+1] is the same)
*/
-const int __dlm_compat_matrix[8][8] = {
+static const int __dlm_compat_matrix[8][8] = {
/* UN NL CR CW PR PW EX PD */
{1, 1, 1, 1, 1, 1, 1, 0}, /* UN */
{1, 1, 1, 1, 1, 1, 1, 0}, /* NL */
@@ -139,7 +139,7 @@ int dlm_modes_compat(int mode1, int mode
* Usage: matrix[grmode+1][rqmode+1]
*/
-const int __quecvt_compat_matrix[8][8] = {
+static const int __quecvt_compat_matrix[8][8] = {
/* UN NL CR CW PR PW EX PD */
{0, 0, 0, 0, 0, 0, 0, 0}, /* UN */
{0, 0, 1, 1, 1, 1, 1, 0}, /* NL */
@@ -1630,8 +1630,8 @@ static int set_unlock_args(uint32_t flag
return 0;
}
-int validate_lock_args(struct dlm_ls *ls, struct dlm_lkb *lkb,
- struct dlm_args *args)
+static int validate_lock_args(struct dlm_ls *ls, struct dlm_lkb *lkb,
+ struct dlm_args *args)
{
int rv = -EINVAL;
@@ -1685,7 +1685,7 @@ int validate_lock_args(struct dlm_ls *ls
return rv;
}
-int validate_unlock_args(struct dlm_lkb *lkb, struct dlm_args *args)
+static int validate_unlock_args(struct dlm_lkb *lkb, struct dlm_args *args)
{
int rv = -EINVAL;
Index: linux-2.6.12-mm1/drivers/dlm/lockspace.c
===================================================================
--- linux-2.6.12-mm1.orig/drivers/dlm/lockspace.c
+++ linux-2.6.12-mm1/drivers/dlm/lockspace.c
@@ -47,7 +47,7 @@ int dlm_lockspace_init(void)
return 0;
}
-int dlm_scand(void *data)
+static int dlm_scand(void *data)
{
struct dlm_ls *ls;
@@ -60,7 +60,7 @@ int dlm_scand(void *data)
return 0;
}
-int dlm_scand_start(void)
+static int dlm_scand_start(void)
{
struct task_struct *p;
int error = 0;
@@ -73,7 +73,7 @@ int dlm_scand_start(void)
return error;
}
-void dlm_scand_stop(void)
+static void dlm_scand_stop(void)
{
kthread_stop(scand_task);
}
Index: linux-2.6.12-mm1/drivers/dlm/main.c
===================================================================
--- linux-2.6.12-mm1.orig/drivers/dlm/main.c
+++ linux-2.6.12-mm1/drivers/dlm/main.c
@@ -30,7 +30,7 @@ static inline void dlm_unregister_debugf
int dlm_node_ioctl_init(void);
void dlm_node_ioctl_exit(void);
-int __init init_dlm(void)
+static int __init init_dlm(void)
{
int error;
@@ -74,7 +74,7 @@ int __init init_dlm(void)
return error;
}
-void __exit exit_dlm(void)
+static void __exit exit_dlm(void)
{
dlm_lowcomms_exit();
dlm_member_sysfs_exit();
Index: linux-2.6.12-mm1/drivers/dlm/member.c
===================================================================
--- linux-2.6.12-mm1.orig/drivers/dlm/member.c
+++ linux-2.6.12-mm1/drivers/dlm/member.c
@@ -47,7 +47,7 @@ static void add_ordered_member(struct dl
}
}
-int dlm_add_member(struct dlm_ls *ls, int nodeid)
+static int dlm_add_member(struct dlm_ls *ls, int nodeid)
{
struct dlm_member *memb;
@@ -61,13 +61,13 @@ int dlm_add_member(struct dlm_ls *ls, in
return 0;
}
-void dlm_remove_member(struct dlm_ls *ls, struct dlm_member *memb)
+static void dlm_remove_member(struct dlm_ls *ls, struct dlm_member *memb)
{
list_move(&memb->list, &ls->ls_nodes_gone);
ls->ls_num_nodes--;
}
-int dlm_is_member(struct dlm_ls *ls, int nodeid)
+static int dlm_is_member(struct dlm_ls *ls, int nodeid)
{
struct dlm_member *memb;
Index: linux-2.6.12-mm1/drivers/dlm/recover.c
===================================================================
--- linux-2.6.12-mm1.orig/drivers/dlm/recover.c
+++ linux-2.6.12-mm1/drivers/dlm/recover.c
@@ -235,7 +235,7 @@ static struct dlm_rsb *recover_list_find
return r;
}
-void recover_list_clear(struct dlm_ls *ls)
+static void recover_list_clear(struct dlm_ls *ls)
{
struct dlm_rsb *r, *s;
Index: linux-2.6.12-mm1/drivers/dlm/recoverd.c
===================================================================
--- linux-2.6.12-mm1.orig/drivers/dlm/recoverd.c
+++ linux-2.6.12-mm1/drivers/dlm/recoverd.c
@@ -658,7 +658,7 @@ static void do_ls_recovery(struct dlm_ls
}
}
-int dlm_recoverd(void *arg)
+static int dlm_recoverd(void *arg)
{
struct dlm_ls *ls;
--
reply other threads:[~2005-07-15 10:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050715103556.GF17316@redhat.com \
--to=teigland@redhat.com \
--cc=akpm@osdl.org \
--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.