Skip to content

Commit 681c46b

Browse files
Xu Cangtytso
authored andcommitted
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>
1 parent 5a1c7f4 commit 681c46b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ext4/sysfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static int name##_open(struct inode *inode, struct file *file) \
358358
return single_open(file, ext4_seq_##name##_show, PDE_DATA(inode)); \
359359
} \
360360
\
361-
const struct file_operations ext4_seq_##name##_fops = { \
361+
static const struct file_operations ext4_seq_##name##_fops = { \
362362
.owner = THIS_MODULE, \
363363
.open = name##_open, \
364364
.read = seq_read, \

0 commit comments

Comments
 (0)