aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorXu Cang <cangxumu@gmail.com>2015-11-26 15:52:24 -0500
committerTheodore Ts'o <tytso@mit.edu>2015-11-26 15:52:24 -0500
commit681c46b164d79aaa5d18f7519b39e29f9b441e40 (patch)
tree6f40cb98cdb7ea89d8b7c5d638c41bcdd049390f /fs
parentext4: fix an endianness bug in ext4_encrypted_follow_link() (diff)
downloadlinux-dev-681c46b164d79aaa5d18f7519b39e29f9b441e40.tar.xz
linux-dev-681c46b164d79aaa5d18f7519b39e29f9b441e40.zip
ext4: add "static" to ext4_seq_##name##_fops struct
to fix sparse warning, add static to ext4_seq_##name##_fops struct. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/sysfs.c b/fs/ext4/sysfs.c
index 1b57c72f4a00..1420a3c614af 100644
--- a/fs/ext4/sysfs.c
+++ b/fs/ext4/sysfs.c
@@ -358,7 +358,7 @@ static int name##_open(struct inode *inode, struct file *file) \
return single_open(file, ext4_seq_##name##_show, PDE_DATA(inode)); \
} \
\
-const struct file_operations ext4_seq_##name##_fops = { \
+static const struct file_operations ext4_seq_##name##_fops = { \
.owner = THIS_MODULE, \
.open = name##_open, \
.read = seq_read, \