projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a990fe
)
rtc: test: make array pdev static
author
Colin Ian King
<colin.king@canonical.com>
Sun, 24 Jun 2018 10:38:03 +0000
(11:38 +0100)
committer
Alexandre 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
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-test.c
b/drivers/rtc/rtc-test.c
index
8469256
..
ade6a82
100644
(file)
--- a/
drivers/rtc/rtc-test.c
+++ b/
drivers/rtc/rtc-test.c
@@
-22,7
+22,7
@@
struct rtc_test_data {
bool alarm_en;
};
-struct platform_device *pdev[MAX_RTC_TEST];
+st
atic st
ruct platform_device *pdev[MAX_RTC_TEST];
static int test_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{