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

binderfs: make symbol 'binderfs_fs_parameters' static

The sparse tool complains as follows:

drivers/android/binderfs.c:66:32: warning:
symbol 'binderfs_fs_parameters' was not declared. Should it be static?

This variable is not used outside of binderfs.c, so this commit
marks it static.

Fixes: 095cf502b31e ("binderfs: port to new mount api")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20200818112245.43891-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Wei Yongjun and committed by
Greg Kroah-Hartman
89320020 4b463822

+1 -1
+1 -1
drivers/android/binderfs.c
··· 63 63 {} 64 64 }; 65 65 66 - const struct fs_parameter_spec binderfs_fs_parameters[] = { 66 + static const struct fs_parameter_spec binderfs_fs_parameters[] = { 67 67 fsparam_u32("max", Opt_max), 68 68 fsparam_enum("stats", Opt_stats_mode, binderfs_param_stats), 69 69 {}