arm64: mm: remove unnecessary BUG_ON
PATCH 1/1 arm64: mm: remove unnecessary BUG_ON
The memblock_alloc() and memblock_alloc_base() will panic on their own if no free memory, remove pointless BUG_ON.
Signed-off-by Kefeng Wang <[email protected]>
--- arch/arm64/mm/mmu.c | 1 - 1 file changed, 1 deletion(-)
arch/arm64/mm/mmu.c +0 -1
@@ -77,7 +77,6 @@ static phys_addr_t __init early_pgtable_alloc(void)void *ptr; phys =memblock_alloc (PAGE_SIZE ,PAGE_SIZE ); -BUG_ON (!phys);/* * The FIX_{PGD,PUD,PMD} slots may be in active use, but the FIX_PTE
Signature · 1 line
2.6.0.GIT
Mark Rutland
reviewerPATCH 1/1 arm64: mm: remove unnecessary BUG_ON
Quoted 4 lines · Kefeng Wang
The
memblock_alloc()andmemblock_alloc_base()will panic on their own if no free memory, remove pointlessBUG_ON.Signed-off-by Kefeng Wang <[email protected]>
For some reason I thought we'd already removed this. FWIW:
Acked-by Mark Rutland <[email protected]>
I believe it's up to Catalin to pick this up.
Mark.
Quoted 19 lines
--- arch/arm64/mm/mmu.c | 1 - 1 file changed, 1 deletion(-)arch/arm64/mm/mmu.c +0
-1@@ -77,7 +77,6 @@ static phys_addr_t __init early_pgtable_alloc(void)void *ptr; phys =memblock_alloc (PAGE_SIZE ,PAGE_SIZE ); -BUG_ON (!phys);/* * The FIX_{PGD,PUD,PMD} slots may be in active use, but the FIX_PTE Signature · 1 line
2.6.0.GIT
PATCH 1/1 arm64: mm: remove unnecessary BUG_ON
In reply to Kefeng WangQuoted 4 lines · Kefeng Wang
The
memblock_alloc()andmemblock_alloc_base()will panic on their own if no free memory, remove pointlessBUG_ON.Signed-off-by Kefeng Wang <[email protected]>
Applied. Thanks.
Signature · 1 line
Catalin