linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>, Sage Weil <sage@newdream.net>
Cc: linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	ceph-devel@vger.kernel.org
Subject: [PATCH -next] ceph: fix debugfs warnings
Date: Tue, 28 Sep 2010 09:53:10 -0700	[thread overview]
Message-ID: <20100928095310.2983a888.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20100928141823.8c61000e.sfr@canb.auug.org.au>

From: Randy Dunlap <randy.dunlap@oracle.com>

Include "super.h" outside of CONFIG_DEBUG_FS to eliminate a compiler warning:

fs/ceph/debugfs.c:266: warning: 'struct ceph_fs_client' declared inside parameter list
fs/ceph/debugfs.c:266: warning: its scope is only this definition or declaration, which is probably not what you want
fs/ceph/debugfs.c:271: warning: 'struct ceph_fs_client' declared inside parameter list

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 fs/ceph/debugfs.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-next-20100927.orig/fs/ceph/debugfs.c
+++ linux-next-20100927/fs/ceph/debugfs.c
@@ -12,9 +12,10 @@
 #include <linux/ceph/auth.h>
 #include <linux/ceph/debugfs.h>
 
+#include "super.h"
+
 #ifdef CONFIG_DEBUG_FS
 
-#include "super.h"
 #include "mds_client.h"
 
 static int mdsmap_show(struct seq_file *s, void *p)

  parent reply	other threads:[~2010-09-28 16:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-28  4:18 linux-next: Tree for September 28 Stephen Rothwell
2010-09-28 16:48 ` [PATCH -next] hwmon/pkgtemp: fix build error Randy Dunlap
2010-09-28 16:53 ` Randy Dunlap [this message]
2010-09-28 19:42   ` [PATCH -next] ceph: fix debugfs warnings Sage Weil
2010-09-28 16:54 ` [PATCH -next] fs.h: fix functions for FILE_LOCKING disabled Randy Dunlap
2010-09-28 16:56 ` [PATCH -next] pch_gbe: add header files Randy Dunlap
2010-09-28 17:34   ` David Miller
2010-09-28 16:58 ` [PATCH -next] sound/soc: fix printk format warning Randy Dunlap
2010-09-28 17:33   ` Mark Brown
2010-09-28 17:41     ` Randy Dunlap

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=20100928095310.2983a888.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=sage@newdream.net \
    --cc=sfr@canb.auug.org.au \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).