All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: mm: remove unnecessary BUG_ON
@ 2016-06-30  2:02 Kefeng Wang
  2016-06-30 15:50 ` Mark Rutland
  2016-06-30 16:55 ` Catalin Marinas
  0 siblings, 2 replies; 3+ messages in thread
From: Kefeng Wang @ 2016-06-30  2:02 UTC (permalink / raw)
  To: linux-arm-kernel

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 <wangkefeng.wang@huawei.com>
---
 arch/arm64/mm/mmu.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index 0f85a46..d120abc 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -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
-- 
2.6.0.GIT

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] arm64: mm: remove unnecessary BUG_ON
  2016-06-30  2:02 [PATCH] arm64: mm: remove unnecessary BUG_ON Kefeng Wang
@ 2016-06-30 15:50 ` Mark Rutland
  2016-06-30 16:55 ` Catalin Marinas
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Rutland @ 2016-06-30 15:50 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jun 30, 2016 at 10:02:04AM +0800, Kefeng Wang wrote:
> 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 <wangkefeng.wang@huawei.com>

For some reason I thought we'd already removed this. FWIW:

Acked-by: Mark Rutland <mark.rutland@arm.com>

I believe it's up to Catalin to pick this up.

Mark.

> ---
>  arch/arm64/mm/mmu.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
> index 0f85a46..d120abc 100644
> --- a/arch/arm64/mm/mmu.c
> +++ b/arch/arm64/mm/mmu.c
> @@ -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
> -- 
> 2.6.0.GIT
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] arm64: mm: remove unnecessary BUG_ON
  2016-06-30  2:02 [PATCH] arm64: mm: remove unnecessary BUG_ON Kefeng Wang
  2016-06-30 15:50 ` Mark Rutland
@ 2016-06-30 16:55 ` Catalin Marinas
  1 sibling, 0 replies; 3+ messages in thread
From: Catalin Marinas @ 2016-06-30 16:55 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jun 30, 2016 at 10:02:04AM +0800, Kefeng Wang wrote:
> 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 <wangkefeng.wang@huawei.com>

Applied. Thanks.

-- 
Catalin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-30 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-30  2:02 [PATCH] arm64: mm: remove unnecessary BUG_ON Kefeng Wang
2016-06-30 15:50 ` Mark Rutland
2016-06-30 16:55 ` Catalin Marinas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.