diff options
author | Xu Cang <cangxumu@gmail.com> | 2015-11-26 15:52:24 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-11-26 15:52:24 -0500 |
commit | 681c46b164d79aaa5d18f7519b39e29f9b441e40 (patch) | |
tree | 6f40cb98cdb7ea89d8b7c5d638c41bcdd049390f /fs/ext4/sysfs.c | |
parent | 5a1c7f47da9b32d0671e776b0f388095b7f91e2e (diff) | |
download | linux-681c46b164d79aaa5d18f7519b39e29f9b441e40.tar.bz2 |
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/ext4/sysfs.c')
-rw-r--r-- | fs/ext4/sysfs.c | 2 |
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, \ |