linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs/internal.h: add const to ns_dentry_operations declaration
@ 2016-09-14 22:15 Rasmus Villemoes
  0 siblings, 0 replies; only message in thread
From: Rasmus Villemoes @ 2016-09-14 22:15 UTC (permalink / raw)
  To: Alexander Viro; +Cc: Rasmus Villemoes, linux-fsdevel, linux-kernel

The actual definition in fs/nsfs.c is already const.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
Maybe fs/nsfs.c (and fs/buffer.c) should grow includes of
internal.h. I think they are the only two providing stuff declared
there but not including it.

 fs/internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/internal.h b/fs/internal.h
index ba0737649d4a..395887882315 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -156,7 +156,7 @@ extern void mnt_pin_kill(struct mount *m);
 /*
  * fs/nsfs.c
  */
-extern struct dentry_operations ns_dentry_operations;
+extern const struct dentry_operations ns_dentry_operations;
 
 /*
  * fs/ioctl.c
-- 
2.1.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-14 22:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-14 22:15 [PATCH] fs/internal.h: add const to ns_dentry_operations declaration Rasmus Villemoes

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).