1
0

100-compat.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --- a/src/Makefile.in
  2. +++ b/src/Makefile.in
  3. @@ -117,7 +117,7 @@ POST_UNINSTALL = :
  4. # the headerfile of linux kernels 2.6.x contain to much arithmetic
  5. # with void pointers (which is allowed for gcc!)
  6. -@KERNEL_2_6_FALSE@am__append_6 = -Wpointer-arith
  7. +@KERNEL_2_6_FALSE@am__append_6 =
  8. subdir = src
  9. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  10. am__aclocal_m4_deps = $(top_srcdir)/configure.in
  11. --- a/src/common/drv_dsl_cpe_os_linux.c
  12. +++ b/src/common/drv_dsl_cpe_os_linux.c
  13. @@ -11,6 +11,7 @@
  14. #define DSL_INTERN
  15. +#include <linux/device.h>
  16. #include "drv_dsl_cpe_api.h"
  17. #include "drv_dsl_cpe_api_ioctl.h"
  18. @@ -249,14 +250,7 @@ static DSL_long_t DSL_DRV_Ioctls(DSL_DRV
  19. }
  20. #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
  21. - if (pFile->f_dentry != DSL_NULL)
  22. - {
  23. - pINode = pFile->f_dentry->d_inode;
  24. - }
  25. - else
  26. - {
  27. - pINode = DSL_NULL;
  28. - }
  29. + pINode = file_inode(pFile);
  30. #endif
  31. if (pINode == DSL_NULL)
  32. @@ -1203,6 +1197,9 @@ static void DSL_DRV_NlSendMsg(DSL_char_t
  33. }
  34. #endif
  35. +static struct class *dsl_class;
  36. +static dev_t dsl_devt;
  37. +
  38. /* Entry point of driver */
  39. int __init DSL_ModuleInit(void)
  40. {
  41. @@ -1241,6 +1238,10 @@ int __init DSL_ModuleInit(void)
  42. DSL_DRV_DevNodeInit();
  43. + dsl_class = class_create(THIS_MODULE, "dsl_cpe_api0");
  44. + dsl_devt = MKDEV(DRV_DSL_CPE_API_DEV_MAJOR, 0);
  45. + device_create(dsl_class, NULL, dsl_devt, NULL, "dsl_cpe_api0");
  46. +
  47. return 0;
  48. }
  49. @@ -1248,6 +1249,11 @@ void __exit DSL_ModuleCleanup(void)
  50. {
  51. printk("Module will be unloaded"DSL_DRV_CRLF);
  52. + device_destroy(dsl_class, dsl_devt);
  53. + dsl_devt = NULL;
  54. + class_destroy(dsl_class);
  55. + dsl_class = NULL;
  56. +
  57. unregister_chrdev(nMajorNum, DRV_DSL_CPE_API_DEV_NAME);
  58. DSL_DRV_Cleanup();
  59. --- a/src/device/drv_dsl_cpe_device_vrx.c
  60. +++ b/src/device/drv_dsl_cpe_device_vrx.c
  61. @@ -5337,6 +5337,7 @@ DSL_Error_t DSL_DRV_DEV_HybridTypeGet(
  62. #undef DSL_DBG_BLOCK
  63. #define DSL_DBG_BLOCK DSL_DBG_NOTIFICATIONS
  64. +#if 0
  65. DSL_Error_t DSL_DRV_DEV_MeiTcLayerSignaling
  66. (
  67. DSL_Context_t *pContext,
  68. @@ -5384,6 +5385,15 @@ DSL_Error_t DSL_DRV_DEV_MeiTcLayerSignal
  69. return nErrCode;
  70. }
  71. +#else
  72. +DSL_Error_t DSL_DRV_DEV_MeiTcLayerSignaling
  73. +(
  74. + DSL_Context_t *pContext,
  75. + DSL_TcLayerSelection_t nTcLayer)
  76. +{
  77. + return DSL_SUCCESS;
  78. +}
  79. +#endif
  80. DSL_Error_t DSL_DRV_DEV_MeiShowtimeSignaling
  81. (