android_kernel_xiaomi_sm8350/arch/powerpc
Michael Ellerman d7a5b2ffa1 [PATCH] powerpc: Always panic if lmb_alloc() fails
Currently most callers of lmb_alloc() don't check if it worked or not, if it
ever does weird bad things will probably happen. The few callers who do check
just panic or BUG_ON.

So make lmb_alloc() panic internally, to catch bugs at the source. The few
callers who did check the result no longer need to.

The only caller that did anything interesting with the return result was
careful_allocation(). For it we create __lmb_alloc_base() which _doesn't_ panic
automatically, a little messy, but passable.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-02-07 22:38:34 +11:00
..
boot powerpc/32: Generate miboot images with ARCH=powerpc 2006-01-15 13:00:08 +11:00
configs [PATCH] e1000: Added disable packet split capability 2006-01-18 16:17:57 -05:00
kernel [PATCH] powerpc: Always panic if lmb_alloc() fails 2006-02-07 22:38:34 +11:00
lib [PATCH] powerpc: Remove lppaca structure from the PACA 2006-01-13 21:17:39 +11:00
mm [PATCH] powerpc: Always panic if lmb_alloc() fails 2006-02-07 22:38:34 +11:00
oprofile [PATCH] powerpc: oprofile cpu type names clash with other code 2006-01-14 11:12:16 +11:00
platforms [PATCH] powerpc: cleanup pmac_newworld variable usage 2006-02-07 22:36:37 +11:00
sysdev [PATCH] powerpc: Always panic if lmb_alloc() fails 2006-02-07 22:38:34 +11:00
xmon [PATCH] powerpc: xmon namespace cleanups 2006-01-12 20:39:14 +11:00
Kconfig [PATCH] powerpc: Kconfig changes for CRASH_DUMP 2006-01-15 16:50:04 +11:00
Kconfig.debug [PATCH] powerpc: Make early debugging configurable via Kconfig 2006-01-11 14:48:26 +11:00
Makefile [PATCH] powerpc/boot: Better use of defaultimage- 2006-01-13 21:14:28 +11:00