[PATCH trace] tracing: tracefs_dir_inode_operations can be static
From: kbuild test robot
Date: Wed Jan 21 2015 - 16:54:32 EST
fs/tracefs/inode.c:95:31: sparse: symbol 'tracefs_dir_inode_operations' was not declared. Should it be static?
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---
inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/tracefs/inode.c b/fs/tracefs/inode.c
index 29632ce..3462360 100644
--- a/fs/tracefs/inode.c
+++ b/fs/tracefs/inode.c
@@ -92,7 +92,7 @@ static int tracefs_syscall_rmdir(struct inode *inode, struct dentry *dentry)
return ret;
}
-const struct inode_operations tracefs_dir_inode_operations = {
+static const struct inode_operations tracefs_dir_inode_operations = {
.lookup = simple_lookup,
.mkdir = tracefs_syscall_mkdir,
.rmdir = tracefs_syscall_rmdir,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/