Commit 0785a8e87be0202744d8681363aecbd4ffbb5f5a
1 parent
de96355c11
Exists in
master
and in
6 other branches
sparc: Fix build with DEBUG_PAGEALLOC enabled.
arch/sparc/mm/init_64.c:1622:22: error: unused variable '__swapper_4m_tsb_phys_patch_end' [-Werror=unused-variable] arch/sparc/mm/init_64.c:1621:22: error: unused variable '__swapper_4m_tsb_phys_patch' [-Werror=unused-variable] Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff
arch/sparc/mm/init_64.c
... | ... | @@ -1618,18 +1618,20 @@ |
1618 | 1618 | { |
1619 | 1619 | extern unsigned int __swapper_tsb_phys_patch; |
1620 | 1620 | extern unsigned int __swapper_tsb_phys_patch_end; |
1621 | - extern unsigned int __swapper_4m_tsb_phys_patch; | |
1622 | - extern unsigned int __swapper_4m_tsb_phys_patch_end; | |
1623 | 1621 | unsigned long ktsb_pa; |
1624 | 1622 | |
1625 | 1623 | ktsb_pa = kern_base + ((unsigned long)&swapper_tsb[0] - KERNBASE); |
1626 | 1624 | patch_one_ktsb_phys(&__swapper_tsb_phys_patch, |
1627 | 1625 | &__swapper_tsb_phys_patch_end, ktsb_pa); |
1628 | 1626 | #ifndef CONFIG_DEBUG_PAGEALLOC |
1627 | + { | |
1628 | + extern unsigned int __swapper_4m_tsb_phys_patch; | |
1629 | + extern unsigned int __swapper_4m_tsb_phys_patch_end; | |
1629 | 1630 | ktsb_pa = (kern_base + |
1630 | 1631 | ((unsigned long)&swapper_4m_tsb[0] - KERNBASE)); |
1631 | 1632 | patch_one_ktsb_phys(&__swapper_4m_tsb_phys_patch, |
1632 | 1633 | &__swapper_4m_tsb_phys_patch_end, ktsb_pa); |
1634 | + } | |
1633 | 1635 | #endif |
1634 | 1636 | } |
1635 | 1637 |