Skip to contentSkip to conversation

make struct ocfs2_control_device static

PATCH In review Adrian Bunk 3 participants 3 messages Apr 21, 2008 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make struct ocfs2_control_device static

This patch makes the needlessly global struct ocfs2_control_device static.

---
d8837f8ed79bc615105e5ca2724c3d22c9f26089 diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c index 7428663..b503772 100644

fs/ocfs2/stack_user.c +1 -1
@@ -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,
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Adrian Bunk

This patch makes the needlessly global struct ocfs2_control_device static.

Quoted 16 lines

---
d8837f8ed79bc615105e5ca2724c3d22c9f26089 diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c index 7428663..b503772 100644

fs/ocfs2/stack_user.c +1 -1
@@ -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,
Signature · 9 lines
Life's Little Instruction Book #356

	"Be there when people need you."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
#2 lore raw
In reply to Adrian Bunk
Quoted 2 lines · Adrian Bunk

This patch makes the needlessly global struct ocfs2_control_device static.

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

	--Mark

--
Mark Fasheh