All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH]trivial warning fixes
@ 2004-03-01 11:25 Rusty Lynch
  2004-03-02 10:28 ` Rusty Lynch
  0 siblings, 1 reply; 3+ messages in thread
From: Rusty Lynch @ 2004-03-01 11:25 UTC (permalink / raw)
  To: ocfs2-devel

The following patch fixes some simple compile warnings.

    --rusty

Index: src/nm.c
===================================================================
--- src/nm.c	(revision 738)
+++ src/nm.c	(working copy)
@@ -39,6 +39,7 @@
 
 void ocfs_process_vote_worker(void *val);
 
+#ifdef VERBOSE_PROCESS_VOTE
 static const char *process_vote_strings[] = {
 	"INVALID_REQUEST",      // reply with a NO vote
 	"UPDATE_OIN_INODE",     // update both oin and inode
@@ -51,6 +52,7 @@
 	"REMASTER_THIS",        // remaster lock to me
 	"REMASTER_REQUESTOR"    // remaster lock to requestor
 };
+#endif
 
 /*
  * ocfs_recv_thread()
@@ -228,7 +230,8 @@
 	int status = 0;
 	__u8 *buffer = NULL;
 	ocfs_publish *publish;
-	__u32 i, j;
+	__u32 i;
+	unsigned long j;
 	__u32 highest_vote_node;
 	__u64 offset = 0;
 	__u32 num_nodes = 0;
Index: src/file.c
===================================================================
--- src/file.c	(revision 738)
+++ src/file.c	(working copy)
@@ -347,7 +347,9 @@
         ocfs_super * osb;
         ocfs_inode *oin = NULL;
         struct dentry *dentry;
+#ifdef DO_PARENT_INODE_INC
         struct inode *parent;
+#endif
 	bool last_close = false;
 
 	LOG_ENTRY_ARGS ("(0x%08x, 0x%08x, '%*s')\n", inode, file,

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

* [Ocfs2-devel] [PATCH]trivial warning fixes
  2004-03-01 11:25 [Ocfs2-devel] [PATCH]trivial warning fixes Rusty Lynch
@ 2004-03-02 10:28 ` Rusty Lynch
  2004-03-02 16:25   ` Mark Fasheh
  0 siblings, 1 reply; 3+ messages in thread
From: Rusty Lynch @ 2004-03-02 10:28 UTC (permalink / raw)
  To: ocfs2-devel

On Mon, Mar 01, 2004 at 09:24:45AM -0800, Rusty Lynch wrote:
> The following patch fixes some simple compile warnings.
> 
>     --rusty

Recent tree changes removed one of the compile warnings (the
one for an unused variable named parent.)  Here is the patch
recreated against this mornings svn tree.


Index: src/nm.c
===================================================================
--- src/nm.c	(revision 744)
+++ src/nm.c	(working copy)
@@ -39,6 +39,7 @@
 
 void ocfs_process_vote_worker(void *val);
 
+#ifdef VERBOSE_PROCESS_VOTE
 static const char *process_vote_strings[] = {
 	"INVALID_REQUEST",      // reply with a NO vote
 	"UPDATE_OIN_INODE",     // update both oin and inode
@@ -51,6 +52,7 @@
 	"REMASTER_THIS",        // remaster lock to me
 	"REMASTER_REQUESTOR"    // remaster lock to requestor
 };
+#endif
 
 /*
  * ocfs_recv_thread()
@@ -228,7 +230,8 @@
 	int status = 0;
 	__u8 *buffer = NULL;
 	ocfs_publish *publish;
-	__u32 i, j;
+	__u32 i;
+	unsigned long j;
 	__u32 highest_vote_node;
 	__u64 offset = 0;
 	__u32 num_nodes = 0;

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

* [Ocfs2-devel] [PATCH]trivial warning fixes
  2004-03-02 10:28 ` Rusty Lynch
@ 2004-03-02 16:25   ` Mark Fasheh
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Fasheh @ 2004-03-02 16:25 UTC (permalink / raw)
  To: ocfs2-devel

On Tue, Mar 02, 2004 at 08:24:48AM -0800, Rusty Lynch wrote:
> On Mon, Mar 01, 2004 at 09:24:45AM -0800, Rusty Lynch wrote:
> > The following patch fixes some simple compile warnings.
> > 
> >     --rusty
>
> Recent tree changes removed one of the compile warnings (the
> one for an unused variable named parent.)  Here is the patch
> recreated against this mornings svn tree.
Yep, I put the rest of the patch in today :)
	--Mark

--
Mark Fasheh
Software Developer, Oracle Corp
mark.fasheh@oracle.com

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

end of thread, other threads:[~2004-03-02 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-01 11:25 [Ocfs2-devel] [PATCH]trivial warning fixes Rusty Lynch
2004-03-02 10:28 ` Rusty Lynch
2004-03-02 16:25   ` Mark Fasheh

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.