diff options
author | Sekhar Nori <nsekhar@ti.com> | 2015-07-11 10:59:15 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2015-07-16 01:42:12 -0400 |
commit | f734a9b3b19e01d598d03a336de32a59a52c1575 (patch) | |
tree | 412014a0f00c2d52c5d4f44697433193213fc582 | |
parent | aaf2c0fbbbb1ec56936e726eec6c253bc4bd469f (diff) |
ARM: OMAP2+: sparse: add missing static declaration
Add missing static declaration for file local variables.
This fixes sparse warnings of type:
arch/arm/mach-omap2/omap_hwmod_81xx_data.c:491:26: warning: symbol 'dm81xx_alwon_l3_slow__gpmc' was not declared. Should it be static?
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
-rw-r--r-- | arch/arm/mach-omap2/omap-mpuss-lowpower.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_81xx_data.c | 34 | ||||
-rw-r--r-- | arch/arm/mach-omap2/pdata-quirks.c | 6 |
5 files changed, 23 insertions, 23 deletions
diff --git a/arch/arm/mach-omap2/omap-mpuss-lowpower.c b/arch/arm/mach-omap2/omap-mpuss-lowpower.c index 79f49d904a06..65024af169d3 100644 --- a/arch/arm/mach-omap2/omap-mpuss-lowpower.c +++ b/arch/arm/mach-omap2/omap-mpuss-lowpower.c | |||
@@ -105,7 +105,7 @@ static void dummy_cpu_resume(void) | |||
105 | static void dummy_scu_prepare(unsigned int cpu_id, unsigned int cpu_state) | 105 | static void dummy_scu_prepare(unsigned int cpu_id, unsigned int cpu_state) |
106 | {} | 106 | {} |
107 | 107 | ||
108 | struct cpu_pm_ops omap_pm_ops = { | 108 | static struct cpu_pm_ops omap_pm_ops = { |
109 | .finish_suspend = default_finish_suspend, | 109 | .finish_suspend = default_finish_suspend, |
110 | .resume = dummy_cpu_resume, | 110 | .resume = dummy_cpu_resume, |
111 | .scu_prepare = dummy_scu_prepare, | 111 | .scu_prepare = dummy_scu_prepare, |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c index 6dcfd03ced8f..36bcd2e75422 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include "prm-regbits-24xx.h" | 20 | #include "prm-regbits-24xx.h" |
21 | #include "wd_timer.h" | 21 | #include "wd_timer.h" |
22 | 22 | ||
23 | struct omap_hwmod_dma_info omap2xxx_dss_sdma_chs[] = { | 23 | static struct omap_hwmod_dma_info omap2xxx_dss_sdma_chs[] = { |
24 | { .name = "dispc", .dma_req = 5 }, | 24 | { .name = "dispc", .dma_req = 5 }, |
25 | { .dma_req = -1, }, | 25 | { .dma_req = -1, }, |
26 | }; | 26 | }; |
diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c index 215d5efa0dba..e97a894b5f88 100644 --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c | |||
@@ -480,7 +480,7 @@ static struct omap_hwmod am43xx_dss_core_hwmod = { | |||
480 | 480 | ||
481 | /* dispc */ | 481 | /* dispc */ |
482 | 482 | ||
483 | struct omap_dss_dispc_dev_attr am43xx_dss_dispc_dev_attr = { | 483 | static struct omap_dss_dispc_dev_attr am43xx_dss_dispc_dev_attr = { |
484 | .manager_count = 1, | 484 | .manager_count = 1, |
485 | .has_framedonetv_irq = 0 | 485 | .has_framedonetv_irq = 0 |
486 | }; | 486 | }; |
diff --git a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c index c92413769144..280789a04ff9 100644 --- a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c | |||
@@ -488,7 +488,7 @@ static struct omap_hwmod dm81xx_gpmc_hwmod = { | |||
488 | }, | 488 | }, |
489 | }; | 489 | }; |
490 | 490 | ||
491 | struct omap_hwmod_ocp_if dm81xx_alwon_l3_slow__gpmc = { | 491 | static struct omap_hwmod_ocp_if dm81xx_alwon_l3_slow__gpmc = { |
492 | .master = &dm816x_alwon_l3_slow_hwmod, | 492 | .master = &dm816x_alwon_l3_slow_hwmod, |
493 | .slave = &dm81xx_gpmc_hwmod, | 493 | .slave = &dm81xx_gpmc_hwmod, |
494 | .user = OCP_USER_MPU, | 494 | .user = OCP_USER_MPU, |
@@ -729,7 +729,7 @@ static struct omap_hwmod_class dm816x_mdio_hwmod_class = { | |||
729 | .sysc = &dm816x_emac_sysc, | 729 | .sysc = &dm816x_emac_sysc, |
730 | }; | 730 | }; |
731 | 731 | ||
732 | struct omap_hwmod dm816x_emac0_mdio_hwmod = { | 732 | static struct omap_hwmod dm816x_emac0_mdio_hwmod = { |
733 | .name = "davinci_mdio", | 733 | .name = "davinci_mdio", |
734 | .class = &dm816x_mdio_hwmod_class, | 734 | .class = &dm816x_mdio_hwmod_class, |
735 | .clkdm_name = "alwon_ethernet_clkdm", | 735 | .clkdm_name = "alwon_ethernet_clkdm", |
@@ -747,7 +747,7 @@ struct omap_hwmod dm816x_emac0_mdio_hwmod = { | |||
747 | }, | 747 | }, |
748 | }; | 748 | }; |
749 | 749 | ||
750 | struct omap_hwmod_ocp_if dm816x_emac0__mdio = { | 750 | static struct omap_hwmod_ocp_if dm816x_emac0__mdio = { |
751 | .master = &dm816x_l4_hs_hwmod, | 751 | .master = &dm816x_l4_hs_hwmod, |
752 | .slave = &dm816x_emac0_mdio_hwmod, | 752 | .slave = &dm816x_emac0_mdio_hwmod, |
753 | .user = OCP_USER_MPU, | 753 | .user = OCP_USER_MPU, |
@@ -902,7 +902,7 @@ static struct omap_hwmod_class dm816x_tpcc_hwmod_class = { | |||
902 | .name = "tpcc", | 902 | .name = "tpcc", |
903 | }; | 903 | }; |
904 | 904 | ||
905 | struct omap_hwmod dm816x_tpcc_hwmod = { | 905 | static struct omap_hwmod dm816x_tpcc_hwmod = { |
906 | .name = "tpcc", | 906 | .name = "tpcc", |
907 | .class = &dm816x_tpcc_hwmod_class, | 907 | .class = &dm816x_tpcc_hwmod_class, |
908 | .clkdm_name = "alwon_l3s_clkdm", | 908 | .clkdm_name = "alwon_l3s_clkdm", |
@@ -915,7 +915,7 @@ struct omap_hwmod dm816x_tpcc_hwmod = { | |||
915 | }, | 915 | }, |
916 | }; | 916 | }; |
917 | 917 | ||
918 | struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tpcc = { | 918 | static struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tpcc = { |
919 | .master = &dm816x_alwon_l3_fast_hwmod, | 919 | .master = &dm816x_alwon_l3_fast_hwmod, |
920 | .slave = &dm816x_tpcc_hwmod, | 920 | .slave = &dm816x_tpcc_hwmod, |
921 | .clk = "sysclk4_ck", | 921 | .clk = "sysclk4_ck", |
@@ -935,7 +935,7 @@ static struct omap_hwmod_class dm816x_tptc0_hwmod_class = { | |||
935 | .name = "tptc0", | 935 | .name = "tptc0", |
936 | }; | 936 | }; |
937 | 937 | ||
938 | struct omap_hwmod dm816x_tptc0_hwmod = { | 938 | static struct omap_hwmod dm816x_tptc0_hwmod = { |
939 | .name = "tptc0", | 939 | .name = "tptc0", |
940 | .class = &dm816x_tptc0_hwmod_class, | 940 | .class = &dm816x_tptc0_hwmod_class, |
941 | .clkdm_name = "alwon_l3s_clkdm", | 941 | .clkdm_name = "alwon_l3s_clkdm", |
@@ -948,7 +948,7 @@ struct omap_hwmod dm816x_tptc0_hwmod = { | |||
948 | }, | 948 | }, |
949 | }; | 949 | }; |
950 | 950 | ||
951 | struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc0 = { | 951 | static struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc0 = { |
952 | .master = &dm816x_alwon_l3_fast_hwmod, | 952 | .master = &dm816x_alwon_l3_fast_hwmod, |
953 | .slave = &dm816x_tptc0_hwmod, | 953 | .slave = &dm816x_tptc0_hwmod, |
954 | .clk = "sysclk4_ck", | 954 | .clk = "sysclk4_ck", |
@@ -956,7 +956,7 @@ struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc0 = { | |||
956 | .user = OCP_USER_MPU, | 956 | .user = OCP_USER_MPU, |
957 | }; | 957 | }; |
958 | 958 | ||
959 | struct omap_hwmod_ocp_if dm816x_tptc0__alwon_l3_fast = { | 959 | static struct omap_hwmod_ocp_if dm816x_tptc0__alwon_l3_fast = { |
960 | .master = &dm816x_tptc0_hwmod, | 960 | .master = &dm816x_tptc0_hwmod, |
961 | .slave = &dm816x_alwon_l3_fast_hwmod, | 961 | .slave = &dm816x_alwon_l3_fast_hwmod, |
962 | .clk = "sysclk4_ck", | 962 | .clk = "sysclk4_ck", |
@@ -977,7 +977,7 @@ static struct omap_hwmod_class dm816x_tptc1_hwmod_class = { | |||
977 | .name = "tptc1", | 977 | .name = "tptc1", |
978 | }; | 978 | }; |
979 | 979 | ||
980 | struct omap_hwmod dm816x_tptc1_hwmod = { | 980 | static struct omap_hwmod dm816x_tptc1_hwmod = { |
981 | .name = "tptc1", | 981 | .name = "tptc1", |
982 | .class = &dm816x_tptc1_hwmod_class, | 982 | .class = &dm816x_tptc1_hwmod_class, |
983 | .clkdm_name = "alwon_l3s_clkdm", | 983 | .clkdm_name = "alwon_l3s_clkdm", |
@@ -990,7 +990,7 @@ struct omap_hwmod dm816x_tptc1_hwmod = { | |||
990 | }, | 990 | }, |
991 | }; | 991 | }; |
992 | 992 | ||
993 | struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc1 = { | 993 | static struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc1 = { |
994 | .master = &dm816x_alwon_l3_fast_hwmod, | 994 | .master = &dm816x_alwon_l3_fast_hwmod, |
995 | .slave = &dm816x_tptc1_hwmod, | 995 | .slave = &dm816x_tptc1_hwmod, |
996 | .clk = "sysclk4_ck", | 996 | .clk = "sysclk4_ck", |
@@ -998,7 +998,7 @@ struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc1 = { | |||
998 | .user = OCP_USER_MPU, | 998 | .user = OCP_USER_MPU, |
999 | }; | 999 | }; |
1000 | 1000 | ||
1001 | struct omap_hwmod_ocp_if dm816x_tptc1__alwon_l3_fast = { | 1001 | static struct omap_hwmod_ocp_if dm816x_tptc1__alwon_l3_fast = { |
1002 | .master = &dm816x_tptc1_hwmod, | 1002 | .master = &dm816x_tptc1_hwmod, |
1003 | .slave = &dm816x_alwon_l3_fast_hwmod, | 1003 | .slave = &dm816x_alwon_l3_fast_hwmod, |
1004 | .clk = "sysclk4_ck", | 1004 | .clk = "sysclk4_ck", |
@@ -1019,7 +1019,7 @@ static struct omap_hwmod_class dm816x_tptc2_hwmod_class = { | |||
1019 | .name = "tptc2", | 1019 | .name = "tptc2", |
1020 | }; | 1020 | }; |
1021 | 1021 | ||
1022 | struct omap_hwmod dm816x_tptc2_hwmod = { | 1022 | static struct omap_hwmod dm816x_tptc2_hwmod = { |
1023 | .name = "tptc2", | 1023 | .name = "tptc2", |
1024 | .class = &dm816x_tptc2_hwmod_class, | 1024 | .class = &dm816x_tptc2_hwmod_class, |
1025 | .clkdm_name = "alwon_l3s_clkdm", | 1025 | .clkdm_name = "alwon_l3s_clkdm", |
@@ -1032,7 +1032,7 @@ struct omap_hwmod dm816x_tptc2_hwmod = { | |||
1032 | }, | 1032 | }, |
1033 | }; | 1033 | }; |
1034 | 1034 | ||
1035 | struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc2 = { | 1035 | static struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc2 = { |
1036 | .master = &dm816x_alwon_l3_fast_hwmod, | 1036 | .master = &dm816x_alwon_l3_fast_hwmod, |
1037 | .slave = &dm816x_tptc2_hwmod, | 1037 | .slave = &dm816x_tptc2_hwmod, |
1038 | .clk = "sysclk4_ck", | 1038 | .clk = "sysclk4_ck", |
@@ -1040,7 +1040,7 @@ struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc2 = { | |||
1040 | .user = OCP_USER_MPU, | 1040 | .user = OCP_USER_MPU, |
1041 | }; | 1041 | }; |
1042 | 1042 | ||
1043 | struct omap_hwmod_ocp_if dm816x_tptc2__alwon_l3_fast = { | 1043 | static struct omap_hwmod_ocp_if dm816x_tptc2__alwon_l3_fast = { |
1044 | .master = &dm816x_tptc2_hwmod, | 1044 | .master = &dm816x_tptc2_hwmod, |
1045 | .slave = &dm816x_alwon_l3_fast_hwmod, | 1045 | .slave = &dm816x_alwon_l3_fast_hwmod, |
1046 | .clk = "sysclk4_ck", | 1046 | .clk = "sysclk4_ck", |
@@ -1061,7 +1061,7 @@ static struct omap_hwmod_class dm816x_tptc3_hwmod_class = { | |||
1061 | .name = "tptc3", | 1061 | .name = "tptc3", |
1062 | }; | 1062 | }; |
1063 | 1063 | ||
1064 | struct omap_hwmod dm816x_tptc3_hwmod = { | 1064 | static struct omap_hwmod dm816x_tptc3_hwmod = { |
1065 | .name = "tptc3", | 1065 | .name = "tptc3", |
1066 | .class = &dm816x_tptc3_hwmod_class, | 1066 | .class = &dm816x_tptc3_hwmod_class, |
1067 | .clkdm_name = "alwon_l3s_clkdm", | 1067 | .clkdm_name = "alwon_l3s_clkdm", |
@@ -1074,7 +1074,7 @@ struct omap_hwmod dm816x_tptc3_hwmod = { | |||
1074 | }, | 1074 | }, |
1075 | }; | 1075 | }; |
1076 | 1076 | ||
1077 | struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc3 = { | 1077 | static struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc3 = { |
1078 | .master = &dm816x_alwon_l3_fast_hwmod, | 1078 | .master = &dm816x_alwon_l3_fast_hwmod, |
1079 | .slave = &dm816x_tptc3_hwmod, | 1079 | .slave = &dm816x_tptc3_hwmod, |
1080 | .clk = "sysclk4_ck", | 1080 | .clk = "sysclk4_ck", |
@@ -1082,7 +1082,7 @@ struct omap_hwmod_ocp_if dm816x_alwon_l3_fast__tptc3 = { | |||
1082 | .user = OCP_USER_MPU, | 1082 | .user = OCP_USER_MPU, |
1083 | }; | 1083 | }; |
1084 | 1084 | ||
1085 | struct omap_hwmod_ocp_if dm816x_tptc3__alwon_l3_fast = { | 1085 | static struct omap_hwmod_ocp_if dm816x_tptc3__alwon_l3_fast = { |
1086 | .master = &dm816x_tptc3_hwmod, | 1086 | .master = &dm816x_tptc3_hwmod, |
1087 | .slave = &dm816x_alwon_l3_fast_hwmod, | 1087 | .slave = &dm816x_alwon_l3_fast_hwmod, |
1088 | .clk = "sysclk4_ck", | 1088 | .clk = "sysclk4_ck", |
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 821171cf6b7d..1a352f561113 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c | |||
@@ -31,7 +31,7 @@ struct pdata_init { | |||
31 | void (*fn)(void); | 31 | void (*fn)(void); |
32 | }; | 32 | }; |
33 | 33 | ||
34 | struct of_dev_auxdata omap_auxdata_lookup[]; | 34 | static struct of_dev_auxdata omap_auxdata_lookup[]; |
35 | static struct twl4030_gpio_platform_data twl_gpio_auxdata; | 35 | static struct twl4030_gpio_platform_data twl_gpio_auxdata; |
36 | 36 | ||
37 | #ifdef CONFIG_MACH_NOKIA_N8X0 | 37 | #ifdef CONFIG_MACH_NOKIA_N8X0 |
@@ -128,7 +128,7 @@ static void __init omap3_sbc_t3530_legacy_init(void) | |||
128 | omap3_sbc_t3x_usb_hub_init(167, "sb-t35 usb hub"); | 128 | omap3_sbc_t3x_usb_hub_init(167, "sb-t35 usb hub"); |
129 | } | 129 | } |
130 | 130 | ||
131 | struct ti_st_plat_data wilink_pdata = { | 131 | static struct ti_st_plat_data wilink_pdata = { |
132 | .nshutdown_gpio = 137, | 132 | .nshutdown_gpio = 137, |
133 | .dev_name = "/dev/ttyO1", | 133 | .dev_name = "/dev/ttyO1", |
134 | .flow_cntrl = 1, | 134 | .flow_cntrl = 1, |
@@ -323,7 +323,7 @@ static struct pdata_init auxdata_quirks[] __initdata = { | |||
323 | { /* sentinel */ }, | 323 | { /* sentinel */ }, |
324 | }; | 324 | }; |
325 | 325 | ||
326 | struct of_dev_auxdata omap_auxdata_lookup[] __initdata = { | 326 | static struct of_dev_auxdata omap_auxdata_lookup[] __initdata = { |
327 | #ifdef CONFIG_MACH_NOKIA_N8X0 | 327 | #ifdef CONFIG_MACH_NOKIA_N8X0 |
328 | OF_DEV_AUXDATA("ti,omap2420-mmc", 0x4809c000, "mmci-omap.0", NULL), | 328 | OF_DEV_AUXDATA("ti,omap2420-mmc", 0x4809c000, "mmci-omap.0", NULL), |
329 | OF_DEV_AUXDATA("menelaus", 0x72, "1-0072", &n8x0_menelaus_platform_data), | 329 | OF_DEV_AUXDATA("menelaus", 0x72, "1-0072", &n8x0_menelaus_platform_data), |