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(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)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)
{