Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Xu Cang and committed by
Theodore Ts'o
681c46b1 5a1c7f47

+1 -1
+1 -1
fs/ext4/sysfs.c
··· 358 358 return single_open(file, ext4_seq_##name##_show, PDE_DATA(inode)); \ 359 359 } \ 360 360 \ 361 - const struct file_operations ext4_seq_##name##_fops = { \ 361 + static const struct file_operations ext4_seq_##name##_fops = { \ 362 362 .owner = THIS_MODULE, \ 363 363 .open = name##_open, \ 364 364 .read = seq_read, \