Messages in this thread Patch in this message | | | Date | Sun, 12 Sep 2021 10:46:57 +0800 | From | kernel test robot <> | Subject | [RFC PATCH mcgrof] selftests: first_test_dev can be static |
| |
lib/test_sysfs.c:148:26: warning: symbol 'first_test_dev' was not declared. Should it be static?
Fixes: ed2111f617d4 ("selftests: add tests_sysfs module") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: kernel test robot <lkp@intel.com> --- test_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/test_sysfs.c b/lib/test_sysfs.c index f8935bd678b12..273fc3f397401 100644 --- a/lib/test_sysfs.c +++ b/lib/test_sysfs.c @@ -145,7 +145,7 @@ struct sysfs_test_device { int y; }; -struct sysfs_test_device *first_test_dev; +static struct sysfs_test_device *first_test_dev; static struct miscdevice *dev_to_misc_dev(struct device *dev) {
| |