projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a1c7f4
)
ext4: add "static" to ext4_seq_##name##_fops struct
author
Xu Cang
<cangxumu@gmail.com>
Thu, 26 Nov 2015 20:52:24 +0000
(15:52 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 26 Nov 2015 20:52:24 +0000
(15:52 -0500)
to fix sparse warning, add static to ext4_seq_##name##_fops struct.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/sysfs.c
b/fs/ext4/sysfs.c
index 1b57c72f4a009aafc8c3510eac81dd9d8a5f9482..1420a3c614afb1a4c06e87471163acf01b3b98d8 100644
(file)
--- 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, \