031-06-MIPS-BCM77xx-Remove-legacy-__cpuinit-data-sections-t.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. From 50d68dfef385127a1da2957813272c610c691157 Mon Sep 17 00:00:00 2001
  2. From: Paul Gortmaker <paul.gortmaker@windriver.com>
  3. Date: Mon, 27 Apr 2015 18:47:56 -0400
  4. Subject: [PATCH] MIPS: BCM77xx: Remove legacy __cpuinit{,data} sections that
  5. crept in
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. We removed __cpuinit support (leaving no-op stubs) quite some time ago.
  10. However a few more crept in as of commit 6ee1d93455384cef8a0426effe85da2
  11. ("MIPS: BCM47XX: Detect more then 128 MiB of RAM (HIGHMEM)")
  12. Since we want to clobber the stubs soon, get this removed now.
  13. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
  14. Cc: Rafał Miłecki <zajec5@gmail.com>
  15. Cc: linux-mips@linux-mips.org
  16. Cc: linux-kernel@vger.kernel.org
  17. Patchwork: https://patchwork.linux-mips.org/patch/9892/
  18. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  19. ---
  20. arch/mips/bcm47xx/prom.c | 2 +-
  21. arch/mips/include/asm/pgtable-32.h | 2 +-
  22. arch/mips/mm/tlb-r4k.c | 2 +-
  23. 3 files changed, 3 insertions(+), 3 deletions(-)
  24. --- a/arch/mips/bcm47xx/prom.c
  25. +++ b/arch/mips/bcm47xx/prom.c
  26. @@ -126,7 +126,7 @@ void __init prom_free_prom_memory(void)
  27. /* Stripped version of tlb_init, with the call to build_tlb_refill_handler
  28. * dropped. Calling it at this stage causes a hang.
  29. */
  30. -void __cpuinit early_tlb_init(void)
  31. +void early_tlb_init(void)
  32. {
  33. write_c0_pagemask(PM_DEFAULT_MASK);
  34. write_c0_wired(0);
  35. --- a/arch/mips/include/asm/pgtable-32.h
  36. +++ b/arch/mips/include/asm/pgtable-32.h
  37. @@ -18,7 +18,7 @@
  38. #include <asm-generic/pgtable-nopmd.h>
  39. -extern int temp_tlb_entry __cpuinitdata;
  40. +extern int temp_tlb_entry;
  41. /*
  42. * - add_temporary_entry() add a temporary TLB entry. We use TLB entries
  43. --- a/arch/mips/mm/tlb-r4k.c
  44. +++ b/arch/mips/mm/tlb-r4k.c
  45. @@ -423,7 +423,7 @@ int __init has_transparent_hugepage(void
  46. * lifetime of the system
  47. */
  48. -int temp_tlb_entry __cpuinitdata;
  49. +int temp_tlb_entry;
  50. __init int add_temporary_entry(unsigned long entrylo0, unsigned long entrylo1,
  51. unsigned long entryhi, unsigned long pagemask)