rtc: test: make array pdev static
authorColin Ian King <colin.king@canonical.com>
Sun, 24 Jun 2018 10:38:03 +0000 (11:38 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 12 Jul 2018 18:16:10 +0000 (20:16 +0200)
The array pdev is local to the source and does not need to be in
global scope, so make it static.

Cleans up sparse warning:
symbol 'pdev' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-test.c

index 8469256..ade6a82 100644 (file)
@@ -22,7 +22,7 @@ struct rtc_test_data {
        bool alarm_en;
 };
 
-struct platform_device *pdev[MAX_RTC_TEST];
+static struct platform_device *pdev[MAX_RTC_TEST];
 
 static int test_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
 {