0120-drivers-misc-intel-pti-Rename-the-header-file-to-fre.patch 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. From b46c055fd71f53c0a80cf592805943193438104c Mon Sep 17 00:00:00 2001
  2. From: Ingo Molnar <[email protected]>
  3. Date: Tue, 5 Dec 2017 14:14:47 +0100
  4. Subject: [PATCH 120/242] drivers/misc/intel/pti: Rename the header file to
  5. free up the namespace
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. CVE-2017-5754
  10. We'd like to use the 'PTI' acronym for 'Page Table Isolation' - free up the
  11. namespace by renaming the <linux/pti.h> driver header to <linux/intel-pti.h>.
  12. (Also standardize the header guard name while at it.)
  13. Cc: Peter Zijlstra <[email protected]>
  14. Cc: Thomas Gleixner <[email protected]>
  15. Cc: J Freyensee <[email protected]>
  16. Cc: Greg Kroah-Hartman <[email protected]>
  17. Cc: [email protected]
  18. Signed-off-by: Ingo Molnar <[email protected]>
  19. (cherry picked from commit 1784f9144b143a1e8b19fe94083b040aa559182b)
  20. Signed-off-by: Andy Whitcroft <[email protected]>
  21. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  22. (cherry picked from commit fc05996d0900765640d56179acd2f5d052ad33e2)
  23. Signed-off-by: Fabian Grünbichler <[email protected]>
  24. ---
  25. include/linux/{pti.h => intel-pti.h} | 6 +++---
  26. drivers/misc/pti.c | 2 +-
  27. 2 files changed, 4 insertions(+), 4 deletions(-)
  28. rename include/linux/{pti.h => intel-pti.h} (94%)
  29. diff --git a/include/linux/pti.h b/include/linux/intel-pti.h
  30. similarity index 94%
  31. rename from include/linux/pti.h
  32. rename to include/linux/intel-pti.h
  33. index b3ea01a3197e..2710d72de3c9 100644
  34. --- a/include/linux/pti.h
  35. +++ b/include/linux/intel-pti.h
  36. @@ -22,8 +22,8 @@
  37. * interface to write out it's contents for debugging a mobile system.
  38. */
  39. -#ifndef PTI_H_
  40. -#define PTI_H_
  41. +#ifndef LINUX_INTEL_PTI_H_
  42. +#define LINUX_INTEL_PTI_H_
  43. /* offset for last dword of any PTI message. Part of MIPI P1149.7 */
  44. #define PTI_LASTDWORD_DTS 0x30
  45. @@ -40,4 +40,4 @@ struct pti_masterchannel *pti_request_masterchannel(u8 type,
  46. const char *thread_name);
  47. void pti_release_masterchannel(struct pti_masterchannel *mc);
  48. -#endif /*PTI_H_*/
  49. +#endif /* LINUX_INTEL_PTI_H_ */
  50. diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c
  51. index eda38cbe8530..41f2a9f6851d 100644
  52. --- a/drivers/misc/pti.c
  53. +++ b/drivers/misc/pti.c
  54. @@ -32,7 +32,7 @@
  55. #include <linux/pci.h>
  56. #include <linux/mutex.h>
  57. #include <linux/miscdevice.h>
  58. -#include <linux/pti.h>
  59. +#include <linux/intel-pti.h>
  60. #include <linux/slab.h>
  61. #include <linux/uaccess.h>
  62. --
  63. 2.14.2