Advertisement
Guest User

fglrx linux 4.11 patch v2

a guest
May 25th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.09 KB | None | 0 0
  1. --- archive_files/common/lib/modules/fglrx/build_mod/firegl_public.c.pre    2017-05-25 19:18:22.773622548 +0200
  2. +++ archive_files/common/lib/modules/fglrx/build_mod/firegl_public.c    2017-05-25 19:17:13.929285722 +0200
  3. @@ -203,6 +203,10 @@
  4.  #include <asm/fpu/internal.h>
  5.  #endif
  6.  #endif
  7. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
  8. +#include <linux/mm.h>
  9. +#include <linux/sched/signal.h>
  10. +#endif
  11.  
  12.  #include "firegl_public.h"
  13.  #include "kcl_osconfig.h"
  14. @@ -4196,6 +4200,29 @@
  15.     return ret;
  16.  #endif
  17.  
  18. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
  19. +
  20. +static int ip_vm_fault(struct vm_fault *vmf) {
  21. +    TRACE_FAULT(do_vm_fault, vmf->vma, vmf);
  22. +}
  23. +static int ip_vm_shm_fault(struct vm_fault *vmf) {
  24. +    TRACE_FAULT(do_vm_shm_fault, vmf->vma, vmf);
  25. +}
  26. +static int ip_vm_dma_fault(struct vm_fault *vmf) {
  27. +    TRACE_FAULT(do_vm_dma_fault, vmf->vma, vmf);
  28. +}
  29. +static int ip_vm_kmap_fault(struct vm_fault *vmf) {
  30. +    TRACE_FAULT(do_vm_kmap_fault, vmf->vma, vmf);
  31. +}
  32. +static int ip_vm_pcie_fault(struct vm_fault *vmf) {
  33. +    TRACE_FAULT(do_vm_pcie_fault, vmf->vma, vmf);
  34. +}
  35. +static int ip_vm_gart_fault(struct vm_fault *vmf) {
  36. +    TRACE_FAULT(do_vm_gart_fault, vmf->vma, vmf);
  37. +}
  38. +
  39. +#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0) */
  40. +
  41.  static int ip_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
  42.  {
  43.      TRACE_FAULT(do_vm_fault, vma, vmf);
  44. @@ -4226,6 +4253,8 @@
  45.      TRACE_FAULT(do_vm_gart_fault, vma, vmf);
  46.  }
  47.  
  48. +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0) */
  49. +
  50.  #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) */
  51.  
  52.  static struct vm_operations_struct vm_ops =
  53. --- archive_files/common/lib/modules/fglrx/build_mod/kcl.c.pre  2017-05-25 19:18:22.776955783 +0200
  54. +++ archive_files/common/lib/modules/fglrx/build_mod/kcl.c  2017-05-25 19:18:19.697047011 +0200
  55. @@ -30,6 +30,11 @@
  56.  #include <linux/slab.h>
  57.  #include <linux/pci.h>
  58.  
  59. +#include <linux/version.h>
  60. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
  61. +#include <linux/sched/signal.h>
  62. +#endif
  63. +
  64.  #define SUSPEND_CONSOLE  (MAX_NR_CONSOLES-1)
  65.  
  66.  /** \brief Send signal to a specified pid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement