cris-header.patch 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. diff -Nur linux-2.6.32.65.orig/arch/cris/include/arch-v10/arch/Kbuild linux-2.6.32.65/arch/cris/include/arch-v10/arch/Kbuild
  2. --- linux-2.6.32.65.orig/arch/cris/include/arch-v10/arch/Kbuild 2014-12-13 15:16:21.000000000 +0100
  3. +++ linux-2.6.32.65/arch/cris/include/arch-v10/arch/Kbuild 2015-05-20 10:00:19.000000000 +0200
  4. @@ -1,4 +1,5 @@
  5. header-y += user.h
  6. +header-y += ptrace.h
  7. header-y += svinto.h
  8. header-y += sv_addr_ag.h
  9. header-y += sv_addr.agh
  10. diff -Nur linux-2.6.32.65.orig/arch/cris/include/arch-v32/arch/Kbuild linux-2.6.32.65/arch/cris/include/arch-v32/arch/Kbuild
  11. --- linux-2.6.32.65.orig/arch/cris/include/arch-v32/arch/Kbuild 2014-12-13 15:16:21.000000000 +0100
  12. +++ linux-2.6.32.65/arch/cris/include/arch-v32/arch/Kbuild 2015-05-20 10:00:19.000000000 +0200
  13. @@ -1,2 +1,3 @@
  14. header-y += user.h
  15. +header-y += ptrace.h
  16. header-y += cryptocop.h
  17. diff -Nur linux-2.6.32.65.orig/arch/cris/include/asm/Kbuild linux-2.6.32.65/arch/cris/include/asm/Kbuild
  18. --- linux-2.6.32.65.orig/arch/cris/include/asm/Kbuild 2014-12-13 15:16:21.000000000 +0100
  19. +++ linux-2.6.32.65/arch/cris/include/asm/Kbuild 2015-05-20 10:39:33.000000000 +0200
  20. @@ -1,7 +1,7 @@
  21. include include/asm-generic/Kbuild.asm
  22. -header-y += arch-v10/
  23. -header-y += arch-v32/
  24. +header-y += ../arch-v10/arch/
  25. +header-y += ../arch-v32/arch/
  26. header-y += ethernet.h
  27. header-y += rtc.h
  28. diff -Nur linux-2.6.32.65.orig/arch/cris/include/asm/pgtable.h linux-2.6.32.65/arch/cris/include/asm/pgtable.h
  29. --- linux-2.6.32.65.orig/arch/cris/include/asm/pgtable.h 2014-12-13 15:16:21.000000000 +0100
  30. +++ linux-2.6.32.65/arch/cris/include/asm/pgtable.h 2015-05-20 11:56:24.000000000 +0200
  31. @@ -14,6 +14,9 @@
  32. #endif
  33. #include <arch/pgtable.h>
  34. +#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
  35. + remap_pfn_range(vma, vaddr, pfn, size, prot)
  36. +
  37. /*
  38. * The Linux memory management assumes a three-level page table setup. On
  39. * CRIS, we use that, but "fold" the mid level into the top-level page
  40. diff -Nur linux-2.6.32.65.orig/include/asm-generic/bug.h linux-2.6.32.65/include/asm-generic/bug.h
  41. --- linux-2.6.32.65.orig/include/asm-generic/bug.h 2014-12-13 15:16:21.000000000 +0100
  42. +++ linux-2.6.32.65/include/asm-generic/bug.h 2015-05-20 13:39:24.000000000 +0200
  43. @@ -119,6 +119,14 @@
  44. })
  45. #endif
  46. +#ifndef WARN_RATELIMIT
  47. +#define WARN_RATELIMIT(condition, format...) ({ \
  48. + int __ret_warn_on = !!(condition); \
  49. + unlikely(__ret_warn_on); \
  50. +})
  51. +#endif
  52. +
  53. +
  54. #ifndef WARN
  55. #define WARN(condition, format...) ({ \
  56. int __ret_warn_on = !!(condition); \