1
0
Fork 0

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>
steinar/wifi_calib_4_9_kernel
Xu Cang 2015-11-26 15:52:24 -05:00 committed by Theodore Ts'o
parent 5a1c7f47da
commit 681c46b164
1 changed files with 1 additions and 1 deletions

View 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, \