]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ext4: add "static" to ext4_seq_##name##_fops struct
authorXu Cang <cangxumu@gmail.com>
Thu, 26 Nov 2015 20:52:24 +0000 (15:52 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 26 Nov 2015 20:52:24 +0000 (15:52 -0500)
to fix sparse warning, add static to ext4_seq_##name##_fops struct.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/sysfs.c

index 1b57c72f4a009aafc8c3510eac81dd9d8a5f9482..1420a3c614afb1a4c06e87471163acf01b3b98d8 100644 (file)
@@ -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, \