260-fix_function_signatures.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --- a/cpswhal_cpsar.h
  2. +++ b/cpswhal_cpsar.h
  3. @@ -437,10 +437,10 @@ typedef struct
  4. int (*DeviceFindInfo)(int Inst, const char *DeviceName, void *DeviceInfo);
  5. int (*DeviceFindParmUint)(void *DeviceInfo, const char *Parm, bit32u *Value);
  6. int (*DeviceFindParmValue)(void *DeviceInfo, const char *Parm, void *Value);
  7. - void (*Free)(void *MemPtr);
  8. + void (*Free)(const void *MemPtr);
  9. void (*FreeRxBuffer)(OS_RECEIVEINFO *OsReceiveInfo, void *MemPtr);
  10. - void (*FreeDev)(void *MemPtr);
  11. - void (*FreeDmaXfer)(void *MemPtr);
  12. + void (*FreeDev)(const void *MemPtr);
  13. + void (*FreeDmaXfer)(const void *MemPtr);
  14. void (*IsrRegister)(OS_DEVICE *OsDev, int (*halISR)(HAL_DEVICE*, int*), int InterruptBit);
  15. void (*IsrUnRegister)(OS_DEVICE *OsDev, int InterruptBit);
  16. void* (*Malloc)(bit32u size);
  17. --- a/cpswhal_cpaal5.h
  18. +++ b/cpswhal_cpaal5.h
  19. @@ -436,10 +436,10 @@ typedef struct
  20. int (*DeviceFindInfo)(int Inst, const char *DeviceName, void *DeviceInfo);
  21. int (*DeviceFindParmUint)(void *DeviceInfo, const char *Parm, bit32u *Value);
  22. int (*DeviceFindParmValue)(void *DeviceInfo, const char *Parm, void *Value);
  23. - void (*Free)(void *MemPtr);
  24. + void (*Free)(const void *MemPtr);
  25. void (*FreeRxBuffer)(OS_RECEIVEINFO *OsReceiveInfo, void *MemPtr);
  26. - void (*FreeDev)(void *MemPtr);
  27. - void (*FreeDmaXfer)(void *MemPtr);
  28. + void (*FreeDev)(const void *MemPtr);
  29. + void (*FreeDmaXfer)(const void *MemPtr);
  30. void (*IsrRegister)(OS_DEVICE *OsDev, int (*halISR)(HAL_DEVICE*, int*), int InterruptBit);
  31. void (*IsrUnRegister)(OS_DEVICE *OsDev, int InterruptBit);
  32. void* (*Malloc)(bit32u size);
  33. --- a/tn7atm.c
  34. +++ b/tn7atm.c
  35. @@ -2690,7 +2690,7 @@ static int tn7atm_proc_turbodsl_read(str
  36. return 0;
  37. }
  38. -static int tn7atm_proc_qos_write(struct file *fp, const char *buf, unsigned long count, void *data)
  39. +static int tn7atm_proc_qos_write(struct file *fp, const char *buf, size_t count, loff_t *data)
  40. {
  41. char local_buf[32];
  42. --- a/tn7dsl.c
  43. +++ b/tn7dsl.c
  44. @@ -1770,7 +1770,7 @@ static int tn7dsl_proc_stats_open(struct
  45. return single_open(file, tn7dsl_proc_stats, PDE_DATA(inode));
  46. }
  47. -int tn7dsl_proc_write_stats(struct file *fp, const char * buf, unsigned long count, void * data);
  48. +int tn7dsl_proc_write_stats(struct file *fp, const char * buf, size_t count, loff_t * data);
  49. struct file_operations tn7dsl_proc_stats_fops = {
  50. .owner = THIS_MODULE,
  51. @@ -4436,7 +4436,7 @@ int tn7dsl_generic_write( int offsetnum,
  52. }
  53. int tn7dsl_proc_write_stats (struct file *fp, const char *buf,
  54. - unsigned long count, void *data)
  55. + size_t count, loff_t *data)
  56. {
  57. char local_buf[31];
  58. int ret_val = 0;