Pārlūkot izejas kodu

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>
Xu Cang 9 gadi atpakaļ
vecāks
revīzija
681c46b164
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      fs/ext4/sysfs.c

+ 1 - 1
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, \