aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/ar7-atm
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2017-10-19 15:47:41 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2017-10-29 23:41:00 +0100
commitc77ba7df09564226b791ae693dc3cf3ad9d2385f (patch)
tree85d2854aef971a100e1334ecd1427ce1f1f91a5a /package/kernel/ar7-atm
parentfce2664f1965857077932fb6e0b50582044aa89d (diff)
downloadupstream-c77ba7df09564226b791ae693dc3cf3ad9d2385f.tar.gz
upstream-c77ba7df09564226b791ae693dc3cf3ad9d2385f.tar.bz2
upstream-c77ba7df09564226b791ae693dc3cf3ad9d2385f.zip
ar7-atm: fix function signatures with expected ones
Newer kernels treat differing signatures an error, not just a warning, so fix the signatures to match. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'package/kernel/ar7-atm')
-rw-r--r--package/kernel/ar7-atm/patches-D7.04.03.00/260-fix_function_signatures.patch63
-rw-r--r--package/kernel/ar7-atm/patches-D7.05.01.00/260-fix_function_signatures.patch63
2 files changed, 126 insertions, 0 deletions
diff --git a/package/kernel/ar7-atm/patches-D7.04.03.00/260-fix_function_signatures.patch b/package/kernel/ar7-atm/patches-D7.04.03.00/260-fix_function_signatures.patch
new file mode 100644
index 0000000000..fe13fc5476
--- /dev/null
+++ b/package/kernel/ar7-atm/patches-D7.04.03.00/260-fix_function_signatures.patch
@@ -0,0 +1,63 @@
+--- a/cpswhal_cpsar.h
++++ b/cpswhal_cpsar.h
+@@ -430,10 +430,10 @@ typedef struct
+ int (*DeviceFindInfo)(int Inst, const char *DeviceName, void *DeviceInfo);
+ int (*DeviceFindParmUint)(void *DeviceInfo, const char *Parm, bit32u *Value);
+ int (*DeviceFindParmValue)(void *DeviceInfo, const char *Parm, void *Value);
+- void (*Free)(void *MemPtr);
++ void (*Free)(const void *MemPtr);
+ void (*FreeRxBuffer)(OS_RECEIVEINFO *OsReceiveInfo, void *MemPtr);
+- void (*FreeDev)(void *MemPtr);
+- void (*FreeDmaXfer)(void *MemPtr);
++ void (*FreeDev)(const void *MemPtr);
++ void (*FreeDmaXfer)(const void *MemPtr);
+ void (*IsrRegister)(OS_DEVICE *OsDev, int (*halISR)(HAL_DEVICE*, int*), int InterruptBit);
+ void (*IsrUnRegister)(OS_DEVICE *OsDev, int InterruptBit);
+ void* (*Malloc)(bit32u size);
+--- a/cpswhal_cpaal5.h
++++ b/cpswhal_cpaal5.h
+@@ -430,10 +430,10 @@ typedef struct
+ int (*DeviceFindInfo)(int Inst, const char *DeviceName, void *DeviceInfo);
+ int (*DeviceFindParmUint)(void *DeviceInfo, const char *Parm, bit32u *Value);
+ int (*DeviceFindParmValue)(void *DeviceInfo, const char *Parm, void *Value);
+- void (*Free)(void *MemPtr);
++ void (*Free)(const void *MemPtr);
+ void (*FreeRxBuffer)(OS_RECEIVEINFO *OsReceiveInfo, void *MemPtr);
+- void (*FreeDev)(void *MemPtr);
+- void (*FreeDmaXfer)(void *MemPtr);
++ void (*FreeDev)(const void *MemPtr);
++ void (*FreeDmaXfer)(const void *MemPtr);
+ void (*IsrRegister)(OS_DEVICE *OsDev, int (*halISR)(HAL_DEVICE*, int*), int InterruptBit);
+ void (*IsrUnRegister)(OS_DEVICE *OsDev, int InterruptBit);
+ void* (*Malloc)(bit32u size);
+--- a/tn7atm.c
++++ b/tn7atm.c
+@@ -2481,7 +2481,7 @@ static int tn7atm_proc_qos_read(struct s
+ return 0;
+
+ }
+-static int tn7atm_proc_qos_write(struct file *fp, const char *buf, unsigned long count, void *data)
++static int tn7atm_proc_qos_write(struct file *fp, const char *buf, size_t count, loff_t *data)
+ {
+ char local_buf[32];
+
+--- a/tn7dsl.c
++++ b/tn7dsl.c
+@@ -1712,7 +1712,7 @@ static int tn7dsl_proc_stats_open(struct
+ return single_open(file, tn7dsl_proc_stats, PDE_DATA(inode));
+ }
+
+-int tn7dsl_proc_write_stats (struct file *fp, const char *buf, unsigned long count, void *data);
++int tn7dsl_proc_write_stats (struct file *fp, const char *buf, size_t count, loff_t *data);
+
+ struct file_operations tn7dsl_proc_stats_fops = {
+ .owner = THIS_MODULE,
+@@ -4256,7 +4256,7 @@ int tn7dsl_generic_write( int offsetnum,
+ }
+
+ int tn7dsl_proc_write_stats (struct file *fp, const char *buf,
+- unsigned long count, void *data)
++ size_t count, loff_t *data)
+ {
+ char local_buf[31];
+ int ret_val = 0;
diff --git a/package/kernel/ar7-atm/patches-D7.05.01.00/260-fix_function_signatures.patch b/package/kernel/ar7-atm/patches-D7.05.01.00/260-fix_function_signatures.patch
new file mode 100644
index 0000000000..61a1ff7c83
--- /dev/null
+++ b/package/kernel/ar7-atm/patches-D7.05.01.00/260-fix_function_signatures.patch
@@ -0,0 +1,63 @@
+--- a/cpswhal_cpsar.h
++++ b/cpswhal_cpsar.h
+@@ -437,10 +437,10 @@ typedef struct
+ int (*DeviceFindInfo)(int Inst, const char *DeviceName, void *DeviceInfo);
+ int (*DeviceFindParmUint)(void *DeviceInfo, const char *Parm, bit32u *Value);
+ int (*DeviceFindParmValue)(void *DeviceInfo, const char *Parm, void *Value);
+- void (*Free)(void *MemPtr);
++ void (*Free)(const void *MemPtr);
+ void (*FreeRxBuffer)(OS_RECEIVEINFO *OsReceiveInfo, void *MemPtr);
+- void (*FreeDev)(void *MemPtr);
+- void (*FreeDmaXfer)(void *MemPtr);
++ void (*FreeDev)(const void *MemPtr);
++ void (*FreeDmaXfer)(const void *MemPtr);
+ void (*IsrRegister)(OS_DEVICE *OsDev, int (*halISR)(HAL_DEVICE*, int*), int InterruptBit);
+ void (*IsrUnRegister)(OS_DEVICE *OsDev, int InterruptBit);
+ void* (*Malloc)(bit32u size);
+--- a/cpswhal_cpaal5.h
++++ b/cpswhal_cpaal5.h
+@@ -436,10 +436,10 @@ typedef struct
+ int (*DeviceFindInfo)(int Inst, const char *DeviceName, void *DeviceInfo);
+ int (*DeviceFindParmUint)(void *DeviceInfo, const char *Parm, bit32u *Value);
+ int (*DeviceFindParmValue)(void *DeviceInfo, const char *Parm, void *Value);
+- void (*Free)(void *MemPtr);
++ void (*Free)(const void *MemPtr);
+ void (*FreeRxBuffer)(OS_RECEIVEINFO *OsReceiveInfo, void *MemPtr);
+- void (*FreeDev)(void *MemPtr);
+- void (*FreeDmaXfer)(void *MemPtr);
++ void (*FreeDev)(const void *MemPtr);
++ void (*FreeDmaXfer)(const void *MemPtr);
+ void (*IsrRegister)(OS_DEVICE *OsDev, int (*halISR)(HAL_DEVICE*, int*), int InterruptBit);
+ void (*IsrUnRegister)(OS_DEVICE *OsDev, int InterruptBit);
+ void* (*Malloc)(bit32u size);
+--- a/tn7atm.c
++++ b/tn7atm.c
+@@ -2690,7 +2690,7 @@ static int tn7atm_proc_turbodsl_read(str
+ return 0;
+ }
+
+-static int tn7atm_proc_qos_write(struct file *fp, const char *buf, unsigned long count, void *data)
++static int tn7atm_proc_qos_write(struct file *fp, const char *buf, size_t count, loff_t *data)
+ {
+ char local_buf[32];
+
+--- a/tn7dsl.c
++++ b/tn7dsl.c
+@@ -1770,7 +1770,7 @@ static int tn7dsl_proc_stats_open(struct
+ return single_open(file, tn7dsl_proc_stats, PDE_DATA(inode));
+ }
+
+-int tn7dsl_proc_write_stats(struct file *fp, const char * buf, unsigned long count, void * data);
++int tn7dsl_proc_write_stats(struct file *fp, const char * buf, size_t count, loff_t * data);
+
+ struct file_operations tn7dsl_proc_stats_fops = {
+ .owner = THIS_MODULE,
+@@ -4436,7 +4436,7 @@ int tn7dsl_generic_write( int offsetnum,
+ }
+
+ int tn7dsl_proc_write_stats (struct file *fp, const char *buf,
+- unsigned long count, void *data)
++ size_t count, loff_t *data)
+ {
+ char local_buf[31];
+ int ret_val = 0;