📄 1032.gcc40x.patch
字号:
+static __inline__ __u32 __fswab32(__u32 x) { return __arch__swab32(x); }@@ -196,7 +199,8 @@ } #ifdef __BYTEORDER_HAS_U64__-static __inline__ __const__ __u64 __fswab64(__u64 x)+//static __inline__ __const__ __u64 __fswab64(__u64 x)+static __inline__ __u64 __fswab64(__u64 x) { # ifdef __SWAB_64_THRU_32__ __u32 h = x >> 32;diff -Naur --exclude=CVS --exclude='*.o' --exclude='*.a' --exclude='*.so' --exclude='*.elf' --exclude=System.map --exclude=Makefile.d --exclude='*log' --exclude='*log2' --exclude='*~' --exclude='.*~' --exclude='.#*' --exclude='*.bak' --exclude='*.orig' --exclude='*.rej' --exclude='core.[0-9]*' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=vmlinux --exclude=vmlinux.bin --exclude=yamon-02.06-SIGMADESIGNS-01_el.bin linuxmips-2.4.30.ref/include/linux/skbuff.h linuxmips-2.4.30/include/linux/skbuff.h--- linuxmips-2.4.30.ref/include/linux/skbuff.h 2005-03-18 04:13:31.000000000 -0800+++ linuxmips-2.4.30/include/linux/skbuff.h 2007-06-20 14:21:21.000000000 -0700@@ -825,7 +825,8 @@ skb->len-=len; if (skb->len < skb->data_len) out_of_line_bug();- return skb->data+=len;+ skb->data+=len;+ return (char *)skb->data; } /**@@ -843,7 +844,7 @@ { if (len > skb->len) return NULL;- return __skb_pull(skb,len);+ return (unsigned char *)__skb_pull(skb,len); } extern unsigned char * __pskb_pull_tail(struct sk_buff *skb, int delta);@@ -854,14 +855,15 @@ __pskb_pull_tail(skb, len-skb_headlen(skb)) == NULL) return NULL; skb->len -= len;- return skb->data += len;+ skb->data += len;+ return (char *)skb->data; } static inline unsigned char * pskb_pull(struct sk_buff *skb, unsigned int len) { if (len > skb->len) return NULL;- return __pskb_pull(skb,len);+ return (unsigned char *)__pskb_pull(skb,len); } static inline int pskb_may_pull(struct sk_buff *skb, unsigned int len)diff -Naur --exclude=CVS --exclude='*.o' --exclude='*.a' --exclude='*.so' --exclude='*.elf' --exclude=System.map --exclude=Makefile.d --exclude='*log' --exclude='*log2' --exclude='*~' --exclude='.*~' --exclude='.#*' --exclude='*.bak' --exclude='*.orig' --exclude='*.rej' --exclude='core.[0-9]*' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=vmlinux --exclude=vmlinux.bin --exclude=yamon-02.06-SIGMADESIGNS-01_el.bin linuxmips-2.4.30.ref/include/net/icmp.h linuxmips-2.4.30/include/net/icmp.h--- linuxmips-2.4.30.ref/include/net/icmp.h 2001-06-13 10:28:17.000000000 -0700+++ linuxmips-2.4.30/include/net/icmp.h 2007-06-20 14:21:21.000000000 -0700@@ -23,6 +23,7 @@ #include <net/sock.h> #include <net/protocol.h>+#include <net/snmp.h> struct icmp_err { int errno;diff -Naur --exclude=CVS --exclude='*.o' --exclude='*.a' --exclude='*.so' --exclude='*.elf' --exclude=System.map --exclude=Makefile.d --exclude='*log' --exclude='*log2' --exclude='*~' --exclude='.*~' --exclude='.#*' --exclude='*.bak' --exclude='*.orig' --exclude='*.rej' --exclude='core.[0-9]*' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=vmlinux --exclude=vmlinux.bin --exclude=yamon-02.06-SIGMADESIGNS-01_el.bin linuxmips-2.4.30.ref/include/net/ipv6.h linuxmips-2.4.30/include/net/ipv6.h--- linuxmips-2.4.30.ref/include/net/ipv6.h 2004-11-18 16:28:51.000000000 -0800+++ linuxmips-2.4.30/include/net/ipv6.h 2007-06-20 14:21:21.000000000 -0700@@ -19,6 +19,7 @@ #include <asm/hardirq.h> #include <net/ndisc.h> #include <net/flow.h>+#include <net/snmp.h> #define SIN6_LEN_RFC2133 24 diff -Naur --exclude=CVS --exclude='*.o' --exclude='*.a' --exclude='*.so' --exclude='*.elf' --exclude=System.map --exclude=Makefile.d --exclude='*log' --exclude='*log2' --exclude='*~' --exclude='.*~' --exclude='.#*' --exclude='*.bak' --exclude='*.orig' --exclude='*.rej' --exclude='core.[0-9]*' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=vmlinux --exclude=vmlinux.bin --exclude=yamon-02.06-SIGMADESIGNS-01_el.bin linuxmips-2.4.30.ref/init/do_mounts.c linuxmips-2.4.30/init/do_mounts.c--- linuxmips-2.4.30.ref/init/do_mounts.c 2007-06-20 14:19:45.000000000 -0700+++ linuxmips-2.4.30/init/do_mounts.c 2007-06-20 14:21:21.000000000 -0700@@ -51,7 +51,7 @@ int __initdata rd_doload; /* 1 = load RAM disk, 0 = don't load */ int root_mountflags = MS_RDONLY | MS_VERBOSE;-static char root_device_name[64];+char root_device_name[64]; /* this is initialized in init/main.c */ kdev_t ROOT_DEV;diff -Naur --exclude=CVS --exclude='*.o' --exclude='*.a' --exclude='*.so' --exclude='*.elf' --exclude=System.map --exclude=Makefile.d --exclude='*log' --exclude='*log2' --exclude='*~' --exclude='.*~' --exclude='.#*' --exclude='*.bak' --exclude='*.orig' --exclude='*.rej' --exclude='core.[0-9]*' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=vmlinux --exclude=vmlinux.bin --exclude=yamon-02.06-SIGMADESIGNS-01_el.bin linuxmips-2.4.30.ref/kernel/module.c linuxmips-2.4.30/kernel/module.c--- linuxmips-2.4.30.ref/kernel/module.c 2007-06-20 14:20:02.000000000 -0700+++ linuxmips-2.4.30/kernel/module.c 2007-06-20 14:21:21.000000000 -0700@@ -725,11 +725,12 @@ if (mod == &kernel_module) return -EINVAL;- if (!MOD_CAN_QUERY(mod))+ if (!MOD_CAN_QUERY(mod)) { if (put_user(0, ret)) return -EFAULT; else return 0;+ } space = 0; for (i = 0; i < mod->ndeps; ++i) {@@ -769,11 +770,12 @@ if (mod == &kernel_module) return -EINVAL;- if (!MOD_CAN_QUERY(mod))+ if (!MOD_CAN_QUERY(mod)) { if (put_user(0, ret)) return -EFAULT; else return 0;+ } space = 0; for (nrefs = 0, ref = mod->refs; ref ; ++nrefs, ref = ref->next_ref) {@@ -813,11 +815,12 @@ char *strings; unsigned long *vals; - if (!MOD_CAN_QUERY(mod))+ if (!MOD_CAN_QUERY(mod)) { if (put_user(0, ret)) return -EFAULT; else return 0;+ } space = mod->nsyms * 2*sizeof(void *); diff -Naur --exclude=CVS --exclude='*.o' --exclude='*.a' --exclude='*.so' --exclude='*.elf' --exclude=System.map --exclude=Makefile.d --exclude='*log' --exclude='*log2' --exclude='*~' --exclude='.*~' --exclude='.#*' --exclude='*.bak' --exclude='*.orig' --exclude='*.rej' --exclude='core.[0-9]*' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=.depend --exclude='.*.o.flags' --exclude='*.gz' --exclude=vmlinux --exclude=vmlinux.bin --exclude=yamon-02.06-SIGMADESIGNS-01_el.bin linuxmips-2.4.30.ref/README.1032.gcc40x.patch linuxmips-2.4.30/README.1032.gcc40x.patch--- linuxmips-2.4.30.ref/README.1032.gcc40x.patch 1969-12-31 16:00:00.000000000 -0800+++ linuxmips-2.4.30/README.1032.gcc40x.patch 2007-06-20 14:23:52.000000000 -0700@@ -0,0 +1,21 @@+Feature:+--------+Support GCC 4.0.x compiler.++Prerequisite patch numbers:+---------------------------+0000+1000+1009+1024++Primary author:+---------------+YH Lin++Related to which chip version SMP86xx xx=?+-----------------------------------------+all++(linux patches) which CONFIG_... are provided:+----------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -