aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/orion/patches/400-fix-section-mismatch-warnings.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2013-06-04 11:29:01 +0000
committerImre Kaloz <kaloz@openwrt.org>2013-06-04 11:29:01 +0000
commit64b5929539344c5b9741155c0f9454374eac1e89 (patch)
tree315a63e65ef11123acc3f843ffa8f11697bd8c46 /target/linux/orion/patches/400-fix-section-mismatch-warnings.patch
parent6a9bdec862947980a7cfd4bbf38c62df2e0ba7b5 (diff)
downloadmaster-187ad058-64b5929539344c5b9741155c0f9454374eac1e89.tar.gz
master-187ad058-64b5929539344c5b9741155c0f9454374eac1e89.tar.bz2
master-187ad058-64b5929539344c5b9741155c0f9454374eac1e89.zip
[orion]: versioned files and dirs still make no sense when you support only a single kernel...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36836 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/orion/patches/400-fix-section-mismatch-warnings.patch')
-rw-r--r--target/linux/orion/patches/400-fix-section-mismatch-warnings.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/orion/patches/400-fix-section-mismatch-warnings.patch b/target/linux/orion/patches/400-fix-section-mismatch-warnings.patch
new file mode 100644
index 0000000000..84ca91f0a5
--- /dev/null
+++ b/target/linux/orion/patches/400-fix-section-mismatch-warnings.patch
@@ -0,0 +1,31 @@
+--- a/arch/arm/mach-orion5x/common.c
++++ b/arch/arm/mach-orion5x/common.c
+@@ -192,7 +192,7 @@ void __init orion5x_init_early(void)
+
+ int orion5x_tclk;
+
+-int __init orion5x_find_tclk(void)
++static __init int orion5x_find_tclk(void)
+ {
+ u32 dev, rev;
+
+@@ -204,7 +204,7 @@ int __init orion5x_find_tclk(void)
+ return 166666667;
+ }
+
+-static void orion5x_timer_init(void)
++static __init void orion5x_timer_init(void)
+ {
+ orion5x_tclk = orion5x_find_tclk();
+
+--- a/arch/arm/mach-orion5x/addr-map.c
++++ b/arch/arm/mach-orion5x/addr-map.c
+@@ -76,7 +76,7 @@ static int __init cpu_win_can_remap(cons
+ /*
+ * Description of the windows needed by the platform code
+ */
+-static struct __initdata orion_addr_map_cfg addr_map_cfg = {
++static struct orion_addr_map_cfg addr_map_cfg __initdata = {
+ .num_wins = 8,
+ .cpu_win_can_remap = cpu_win_can_remap,
+ .bridge_virt_base = ORION5X_BRIDGE_VIRT_BASE,