Skip to content

Commit

Permalink
ext4: add "static" to ext4_seq_##name##_fops struct
Browse files Browse the repository at this point in the history
to fix sparse warning, add static to ext4_seq_##name##_fops struct.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
Xu Cang authored and Theodore Ts'o committed Nov 26, 2015
1 parent 5a1c7f4 commit 681c46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down

0 comments on commit 681c46b

Please sign in to comment.