]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fs/affs/namei.c: forward declarations clean-up
authorFabian Frederick <fabf@skynet.be>
Mon, 27 Feb 2017 22:27:57 +0000 (14:27 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Feb 2017 02:43:46 +0000 (18:43 -0800)
Move dentry_operations structures and remove forward declarations.

Link: http://lkml.kernel.org/r/20170109191208.6085-7-fabf@skynet.be
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/affs/namei.c

index 906ff5be66c200d66b610cbf5494a8982b7dc052..fb88446bafef469a4e799322eca82c499a6982ba 100644 (file)
 
 typedef int (*toupper_t)(int);
 
-static int      affs_toupper(int ch);
-static int      affs_hash_dentry(const struct dentry *, struct qstr *);
-static int       affs_compare_dentry(const struct dentry *dentry,
-               unsigned int len, const char *str, const struct qstr *name);
-static int      affs_intl_toupper(int ch);
-static int      affs_intl_hash_dentry(const struct dentry *, struct qstr *);
-static int       affs_intl_compare_dentry(const struct dentry *dentry,
-               unsigned int len, const char *str, const struct qstr *name);
-
-const struct dentry_operations affs_dentry_operations = {
-       .d_hash         = affs_hash_dentry,
-       .d_compare      = affs_compare_dentry,
-};
-
-const struct dentry_operations affs_intl_dentry_operations = {
-       .d_hash         = affs_intl_hash_dentry,
-       .d_compare      = affs_intl_compare_dentry,
-};
-
-
 /* Simple toupper() for DOS\1 */
 
 static int
@@ -505,3 +485,13 @@ const struct export_operations affs_export_ops = {
        .fh_to_dentry = affs_fh_to_dentry,
        .fh_to_parent = affs_fh_to_parent,
 };
+
+const struct dentry_operations affs_dentry_operations = {
+       .d_hash         = affs_hash_dentry,
+       .d_compare      = affs_compare_dentry,
+};
+
+const struct dentry_operations affs_intl_dentry_operations = {
+       .d_hash         = affs_intl_hash_dentry,
+       .d_compare      = affs_intl_compare_dentry,
+};