History

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]

David S. Miller committed 15 years ago

Commit 0785a8e1 parent de963551 file · +4 −2Browse files

Unified · Split

arch/sparc/mm/init_64.c+4−2
@@ -1618,18 +1618,20 @@ static void ktsb_phys_patch(void) · 1617 unmodified lines
16181618 {
16191619 extern unsigned int __swapper_tsb_phys_patch;
16201620 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;
16231621 unsigned long ktsb_pa;
16241622
16251623 ktsb_pa = kern_base + ((unsigned long)&swapper_tsb[0] - KERNBASE);
16261624 patch_one_ktsb_phys(&__swapper_tsb_phys_patch,
16271625 &__swapper_tsb_phys_patch_end, ktsb_pa);
16281626 #ifndef CONFIG_DEBUG_PAGEALLOC
1627+ {
1628+ extern unsigned int __swapper_4m_tsb_phys_patch;
1629+ extern unsigned int __swapper_4m_tsb_phys_patch_end;
16291630 ktsb_pa = (kern_base +
16301631 ((unsigned long)&swapper_4m_tsb[0] - KERNBASE));
16311632 patch_one_ktsb_phys(&__swapper_4m_tsb_phys_patch,
16321633 &__swapper_4m_tsb_phys_patch_end, ktsb_pa);
1634+ }
16331635 #endif
16341636 }
16351637

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t