public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Arjan van de Ven <arjan@infradead.org>
Subject: [PATCH] FS: Fix OCFS2 warning when DEBUG_FS is not enabled
Date: Mon, 10 Apr 2006 23:36:03 +0200	[thread overview]
Message-ID: <20060410233603.f6e35218.khali@linux-fr.org> (raw)

Fix the following warning which happens when OCFS2_FS is enabled but
DEBUG_FS isn't:

fs/ocfs2/dlmglue.c: In function `ocfs2_dlm_init_debug':
fs/ocfs2/dlmglue.c:2036: warning: passing arg 5 of `debugfs_create_file' discards qualifiers from pointer target type

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Arjan van de Ven <arjan@infradead.org>
---
 include/linux/debugfs.h |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Warning introduced by commit 4b6f5d20b04dcbc3d888555522b90ba6d36c4106,
should have been fixed (but wasn't) by commit
99ac48f54a91d02140c497edc31dc57d4bc5c85d.

--- linux-2.6.17-rc1.orig/include/linux/debugfs.h	2006-04-03 20:13:29.000000000 +0200
+++ linux-2.6.17-rc1/include/linux/debugfs.h	2006-04-10 23:09:59.000000000 +0200
@@ -58,9 +58,8 @@
  */
 
 static inline struct dentry *debugfs_create_file(const char *name, mode_t mode,
-						 struct dentry *parent,
-						 void *data,
-						 struct file_operations *fops)
+					struct dentry *parent, void *data,
+					const struct file_operations *fops)
 {
 	return ERR_PTR(-ENODEV);
 }


-- 
Jean Delvare

                 reply	other threads:[~2006-04-10 21:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20060410233603.f6e35218.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /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