All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs/ocfs2/stack_user.c - Fixing Compiler warning.
@ 2009-11-04  2:54 ` askb
  0 siblings, 0 replies; 4+ messages in thread
From: askb @ 2009-11-04  2:42 UTC (permalink / raw)
  To: mfasheh, joel.becker, linux-kernel, kernel-janitors

Found the following compile warning on linux-next:

fs/ocfs2/stack_user.c: In function ‘user_cluster_connect’:
fs/ocfs2/stack_user.c:817: warning: ‘control’ may be used uninitialized
in this function

fix for the above warning:

Signed-off-by: Anil SB <askb23@gmail.com>

diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c
index ff4c798..858ef6f 100644
--- a/fs/ocfs2/stack_user.c
+++ b/fs/ocfs2/stack_user.c
@@ -814,7 +814,7 @@ static int fs_protocol_compare(struct
ocfs2_protocol_version *existing,
static int user_cluster_connect(struct ocfs2_cluster_connection *conn)
{
dlm_lockspace_t *fsdlm;
- struct ocfs2_live_connection *control;
+ struct ocfs2_live_connection *control = NULL;
int rc = 0;

BUG_ON(conn == NULL);

Thanks


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] fs/ocfs2/stack_user.c - Fixing Compiler warning.
@ 2009-11-04  2:54 ` askb
  0 siblings, 0 replies; 4+ messages in thread
From: askb @ 2009-11-04  2:54 UTC (permalink / raw)
  To: mfasheh, joel.becker, linux-kernel, kernel-janitors

Found the following compile warning on linux-next:

fs/ocfs2/stack_user.c: In function ‘user_cluster_connect’:
fs/ocfs2/stack_user.c:817: warning: ‘control’ may be used uninitialized
in this function

fix for the above warning:

Signed-off-by: Anil SB <askb23@gmail.com>

diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c
index ff4c798..858ef6f 100644
--- a/fs/ocfs2/stack_user.c
+++ b/fs/ocfs2/stack_user.c
@@ -814,7 +814,7 @@ static int fs_protocol_compare(struct
ocfs2_protocol_version *existing,
static int user_cluster_connect(struct ocfs2_cluster_connection *conn)
{
dlm_lockspace_t *fsdlm;
- struct ocfs2_live_connection *control;
+ struct ocfs2_live_connection *control = NULL;
int rc = 0;

BUG_ON(conn = NULL);

Thanks


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] fs/ocfs2/stack_user.c - Fixing Compiler warning (PS ignore my formatting in previous email)
  2009-11-04  2:54 ` askb
@ 2009-11-04  6:56 ` askb
  -1 siblings, 0 replies; 4+ messages in thread
From: askb @ 2009-11-04  6:44 UTC (permalink / raw)
  To: mfasheh, joel.becker, linux-kernel, kernel-janitors

Found the following compile warning on linux-next:

fs/ocfs2/stack_user.c: In function ‘user_cluster_connect’:
fs/ocfs2/stack_user.c:817: warning: ‘control’ may be used uninitialized
in this function

fix for the above warning:

Signed-off-by: Anil SB <askb23@gmail.com>

diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c
index ff4c798..858ef6f 100644
--- a/fs/ocfs2/stack_user.c
+++ b/fs/ocfs2/stack_user.c
@@ -814,7 +814,7 @@ static int fs_protocol_compare(struct ocfs2_protocol_version *existing,
 static int user_cluster_connect(struct ocfs2_cluster_connection *conn)
 {
 	dlm_lockspace_t *fsdlm;
-	struct ocfs2_live_connection *control;
+	struct ocfs2_live_connection *control = NULL;
 	int rc = 0;
 
 	BUG_ON(conn == NULL);





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] fs/ocfs2/stack_user.c - Fixing Compiler warning (PS ignore
@ 2009-11-04  6:56 ` askb
  0 siblings, 0 replies; 4+ messages in thread
From: askb @ 2009-11-04  6:56 UTC (permalink / raw)
  To: mfasheh, joel.becker, linux-kernel, kernel-janitors

Found the following compile warning on linux-next:

fs/ocfs2/stack_user.c: In function ‘user_cluster_connect’:
fs/ocfs2/stack_user.c:817: warning: ‘control’ may be used uninitialized
in this function

fix for the above warning:

Signed-off-by: Anil SB <askb23@gmail.com>

diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c
index ff4c798..858ef6f 100644
--- a/fs/ocfs2/stack_user.c
+++ b/fs/ocfs2/stack_user.c
@@ -814,7 +814,7 @@ static int fs_protocol_compare(struct ocfs2_protocol_version *existing,
 static int user_cluster_connect(struct ocfs2_cluster_connection *conn)
 {
 	dlm_lockspace_t *fsdlm;
-	struct ocfs2_live_connection *control;
+	struct ocfs2_live_connection *control = NULL;
 	int rc = 0;
 
 	BUG_ON(conn = NULL);





^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-04  6:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-04  6:44 [PATCH] fs/ocfs2/stack_user.c - Fixing Compiler warning (PS ignore my formatting in previous email) askb
2009-11-04  6:56 ` [PATCH] fs/ocfs2/stack_user.c - Fixing Compiler warning (PS ignore askb
  -- strict thread matches above, loose matches on Subject: below --
2009-11-04  2:42 [PATCH] fs/ocfs2/stack_user.c - Fixing Compiler warning askb
2009-11-04  2:54 ` askb

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.