Skip to contentSkip to conversation

fs/internal.h: add const to ns_dentry_operations declaration

PATCH New Rasmus Villemoes 1 participant 1 message Sep 14, 2016 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/internal.h: add const to ns_dentry_operations declaration

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

---
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(-)
fs/internal.h +1 -1
index ba0737649d4a..395887882315 100644
@@ -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
Signature · 1 line
2.1.4