Changeset 40619


Ignore:
Timestamp:
2014-05-01T15:07:44+02:00 (4 years ago)
Author:
hauke
Message:

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@…>

Location:
trunk/target/linux/generic/patches-3.3
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/patches-3.3/001-ARM-7668-1-fix-memset-related-crashes-caused-by-rece.patch

    r39902 r40619  
    9797 1 file changed, 44 insertions(+), 41 deletions(-) 
    9898 
    99 diff --git a/arch/arm/lib/memset.S b/arch/arm/lib/memset.S 
    100 index 650d5923ab83..d912e7397ecc 100644 
    10199--- a/arch/arm/lib/memset.S 
    102100+++ b/arch/arm/lib/memset.S 
     
    251249        mov     pc, lr 
    252250 ENDPROC(memset) 
    253 --  
    254 1.8.3.2 
    255  
  • trunk/target/linux/generic/patches-3.3/002-ARM-7668-1-fix-memset-related-crashes-caused-by-rece.patch

    r39902 r40619  
    2525 1 file changed, 13 insertions(+), 20 deletions(-) 
    2626 
    27 diff --git a/arch/arm/lib/memset.S b/arch/arm/lib/memset.S 
    28 index d912e7397ecc..94b0650ea98f 100644 
    2927--- a/arch/arm/lib/memset.S 
    3028+++ b/arch/arm/lib/memset.S 
     
    7977+       b       1b 
    8078 ENDPROC(memset) 
    81 --  
    82 1.8.3.2 
    83  
  • trunk/target/linux/generic/patches-3.3/a02-swconfig-revert-portid-snd_portid-usage.patch

    r36295 r40619  
    22--- a/drivers/net/phy/swconfig.c 
    33+++ b/drivers/net/phy/swconfig.c 
    4 @@ -377,7 +377,7 @@ swconfig_dump_attr(struct swconfig_callb 
     4@@ -378,7 +378,7 @@ swconfig_dump_attr(struct swconfig_callb 
    55        int id = cb->args[0]; 
    66        void *hdr; 
     
    1111        if (IS_ERR(hdr)) 
    1212                return -1; 
    13 @@ -799,7 +799,7 @@ swconfig_get_attr(struct sk_buff *skb, s 
     13@@ -801,7 +801,7 @@ swconfig_get_attr(struct sk_buff *skb, s 
    1414        if (!msg) 
    1515                goto error; 
     
    2020        if (IS_ERR(hdr)) 
    2121                goto nla_put_failure; 
    22 @@ -902,7 +902,7 @@ static int swconfig_dump_switches(struct 
     22@@ -906,7 +906,7 @@ static int swconfig_dump_switches(struct 
    2323        list_for_each_entry(dev, &swdevs, dev_list) { 
    2424                if (++idx <= start) 
Note: See TracChangeset for help on using the changeset viewer.