Re: [2.6 patch] make struct ocfs2_control_device static

Previous thread: [2.6 patch] frv: remove HARD_RESET_NOW() by Adrian Bunk on Monday, April 21, 2008 - 1:47 am. (1 message)

Next thread: [2.6 patch] make struct o2cb_stack_ops static by Adrian Bunk on Monday, April 21, 2008 - 1:49 am. (2 messages)
From: Adrian Bunk
Date: Monday, April 21, 2008 - 1:49 am

This patch makes the needlessly global struct ocfs2_control_device 
static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
d8837f8ed79bc615105e5ca2724c3d22c9f26089 diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c
index 7428663..b503772 100644
--- a/fs/ocfs2/stack_user.c
+++ b/fs/ocfs2/stack_user.c
@@ -635,7 +635,7 @@ static const struct file_operations ocfs2_control_fops = {
 	.owner   = THIS_MODULE,
 };
 
-struct miscdevice ocfs2_control_device = {
+static struct miscdevice ocfs2_control_device = {
 	.minor		= MISC_DYNAMIC_MINOR,
 	.name		= "ocfs2_control",
 	.fops		= &ocfs2_control_fops,

--

From: Joel Becker
Date: Monday, April 21, 2008 - 3:01 am

-- 

Life's Little Instruction Book #356

	"Be there when people need you."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127
--

From: Mark Fasheh
Date: Monday, April 21, 2008 - 10:43 am

This and the following two patches are in ocfs2.git now, thanks Adrian.
	--Mark

--
Mark Fasheh
--

Previous thread: [2.6 patch] frv: remove HARD_RESET_NOW() by Adrian Bunk on Monday, April 21, 2008 - 1:47 am. (1 message)

Next thread: [2.6 patch] make struct o2cb_stack_ops static by Adrian Bunk on Monday, April 21, 2008 - 1:49 am. (2 messages)