diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-05-01 13:07:44 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-05-01 13:07:44 +0000 |
commit | e2cd04bfb39f333aeaafaa87668fd364c3e42946 (patch) | |
tree | 4eb926ee8a7adb9975233d7ccc4a0f112a6dc4fc /target/linux/generic/patches-3.3/a02-swconfig-revert-portid-snd_portid-usage.patch | |
parent | 14d0375301f5094ac7213550c74b35909e05f0dd (diff) | |
download | master-31e0f0ae-e2cd04bfb39f333aeaafaa87668fd364c3e42946.tar.gz master-31e0f0ae-e2cd04bfb39f333aeaafaa87668fd364c3e42946.tar.bz2 master-31e0f0ae-e2cd04bfb39f333aeaafaa87668fd364c3e42946.zip |
kernel: fix compile error with gcc-4.8 and kernel 3.3
With gcc-4.8 I get a compile error with kernel 3.3.
This patch fixes this problem by backporting a patch from a more recent kernel version.
CC arch/mips/mm/page.o
arch/mips/mm/page.c:89:6: error: 'clear_page' alias in between function and variable is not supported
void clear_page(void *page) __attribute__((alias("clear_page_array")));
^
arch/mips/mm/page.c:84:12: error: 'clear_page_array' aliased declaration [-Werror]
static u32 clear_page_array[0x120 / 4];
^
arch/mips/mm/page.c:108:6: error: 'copy_page' alias in between function and variable is not supported
void copy_page(void *to, void *from) __attribute__((alias("copy_page_array")));
^
arch/mips/mm/page.c:102:12: error: 'copy_page_array' aliased declaration [-Werror]
static u32 copy_page_array[0x540 / 4];
^
arch/mips/mm/page.c:108:6: error: 'copy_page' alias in between function and variable is not supported
void copy_page(void *to, void *from) __attribute__((alias("copy_page_array")));
^
arch/mips/mm/page.c:102:12: error: 'copy_page_array' aliased declaration [-Werror]
static u32 copy_page_array[0x540 / 4];
^
arch/mips/mm/page.c:89:6: error: 'clear_page' alias in between function and variable is not supported
void clear_page(void *page) __attribute__((alias("clear_page_array")));
^
arch/mips/mm/page.c:84:12: error: 'clear_page_array' aliased declaration [-Werror]
static u32 clear_page_array[0x120 / 4];
^
cc1: all warnings being treated as errors
make[7]: *** [arch/mips/mm/page.o] Error 1
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 40619
Diffstat (limited to 'target/linux/generic/patches-3.3/a02-swconfig-revert-portid-snd_portid-usage.patch')
-rw-r--r-- | target/linux/generic/patches-3.3/a02-swconfig-revert-portid-snd_portid-usage.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/patches-3.3/a02-swconfig-revert-portid-snd_portid-usage.patch b/target/linux/generic/patches-3.3/a02-swconfig-revert-portid-snd_portid-usage.patch index 5fca538bea..03f4685ce5 100644 --- a/target/linux/generic/patches-3.3/a02-swconfig-revert-portid-snd_portid-usage.patch +++ b/target/linux/generic/patches-3.3/a02-swconfig-revert-portid-snd_portid-usage.patch @@ -1,7 +1,7 @@ reverted: --- a/drivers/net/phy/swconfig.c +++ b/drivers/net/phy/swconfig.c -@@ -377,7 +377,7 @@ swconfig_dump_attr(struct swconfig_callb +@@ -378,7 +378,7 @@ swconfig_dump_attr(struct swconfig_callb int id = cb->args[0]; void *hdr; @@ -10,7 +10,7 @@ reverted: NLM_F_MULTI, SWITCH_CMD_NEW_ATTR); if (IS_ERR(hdr)) return -1; -@@ -799,7 +799,7 @@ swconfig_get_attr(struct sk_buff *skb, s +@@ -801,7 +801,7 @@ swconfig_get_attr(struct sk_buff *skb, s if (!msg) goto error; @@ -19,7 +19,7 @@ reverted: 0, cmd); if (IS_ERR(hdr)) goto nla_put_failure; -@@ -902,7 +902,7 @@ static int swconfig_dump_switches(struct +@@ -906,7 +906,7 @@ static int swconfig_dump_switches(struct list_for_each_entry(dev, &swdevs, dev_list) { if (++idx <= start) continue; |