Advertisement
rockdrilla

0001-x86-mm-fix-cpu_tlbstate-symbol-export.patch

May 8th, 2015
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.77 KB | None | 0 0
  1. 1e02ce4cccdcb9688386e5b8d2c9fa4660b45389 introduces symbol `cpu_tlbstate'
  2. which is exported via EXPORT_SYMBOL_GPL.
  3. Since some non-GPL modules (such as fglrx) are using this symbol,
  4. it's impossible to use them (e.g. via DKMS).
  5.  
  6. ---
  7. arch/x86/mm/init.c | 2 +-
  8.  1 file changed, 1 insertion(+), 1 deletion(-)
  9.  
  10. diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
  11. index 1d55318..987448b 100644
  12. --- a/arch/x86/mm/init.c
  13. +++ b/arch/x86/mm/init.c
  14. @@ -739,7 +739,7 @@ DEFINE_PER_CPU_SHARED_ALIGNED(struct tlb_state, cpu_tlbstate) = {
  15.  #endif
  16.     .cr4 = ~0UL,    /* fail hard if we screw up cr4 shadow initialization */
  17.  };
  18. -EXPORT_SYMBOL_GPL(cpu_tlbstate);
  19. +EXPORT_SYMBOL(cpu_tlbstate);
  20.  
  21.  void update_cache_mode_entry(unsigned entry, enum page_cache_mode cache)
  22.  {
  23. --
  24. 2.1.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement