android_kernel_xiaomi_sm8350/arch/ppc/syslib
Timur Tabi 4c35630ccd [POWERPC] Change rheap functions to use ulongs instead of pointers
The rheap allocation functions return a pointer, but the actual value is based
on how the heap was initialized, and so it can be anything, e.g. an offset
into a buffer.  A ulong is a better representation of the value returned by
the allocation functions.

This patch changes all of the relevant rheap functions to use a unsigned long
integers instead of a pointer.  In case of an error, the value returned is
a negative error code that has been cast to an unsigned long.  The caller can
use the IS_ERR_VALUE() macro to check for this.

All code which calls the rheap functions is updated accordingly.  Macros
IS_MURAM_ERR() and IS_DPERR(), have been deleted in favor of IS_ERR_VALUE().

Also added error checking to rh_attach_region().

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2007-05-09 23:01:43 -05:00
..
btext.c
cpc700_pic.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
cpc700.h [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
cpm2_common.c [POWERPC] Change rheap functions to use ulongs instead of pointers 2007-05-09 23:01:43 -05:00
cpm2_pic.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
cpm2_pic.h [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
gen550_dbg.c
gen550_kgdb.c
gen550.h
gt64260_pic.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
harrier.c
hawk_common.c
i8259.c [PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2007-02-14 08:09:54 -08:00
ibm44x_common.c
ibm44x_common.h
ibm440gp_common.c
ibm440gp_common.h
ibm440gx_common.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
ibm440gx_common.h
ibm440sp_common.c
ibm440sp_common.h
ibm_ocp.c
ipic.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
ipic.h
m8xx_setup.c [POWERPC] Remove the unused HTDMSOUND driver 2007-04-30 11:02:05 +10:00
m8xx_wdt.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
m8xx_wdt.h
m82xx_pci.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
m82xx_pci.h
m8260_pci_erratum9.c [POWERPC] ppc: use syslog macro for the printk log level 2007-02-08 15:29:22 +11:00
m8260_setup.c
Makefile [POWERPC] Stop using ppc_sys for Xilinx Virtex boards 2007-04-30 11:02:04 +10:00
mpc8xx_devices.c [POWERPC] 8xx: Off-by-one fixes to SCC parameter RAM definitions 2006-12-04 20:39:40 +11:00
mpc8xx_sys.c
mpc10x_common.c
mpc52xx_devices.c
mpc52xx_pci.c
mpc52xx_pci.h
mpc52xx_pic.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
mpc52xx_setup.c
mpc52xx_sys.c
mpc83xx_devices.c
mpc83xx_sys.c
mpc85xx_devices.c
mpc85xx_sys.c
mv64x60_dbg.c
mv64x60_win.c
mv64x60.c mv643xx_eth: Place explicit port number in mv643xx_eth_platform_data 2007-03-06 06:14:54 -05:00
mv64360_pic.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
ocp.c
open_pic2.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
open_pic_defs.h
open_pic.c
pci_auto.c
ppc4xx_dma.c
ppc4xx_pic.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
ppc4xx_setup.c
ppc4xx_sgdma.c Merge branch 'linux-2.6' 2007-05-08 13:37:51 +10:00
ppc8xx_pic.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
ppc8xx_pic.h
ppc83xx_pci.h
ppc83xx_setup.c
ppc83xx_setup.h
ppc85xx_common.c
ppc85xx_common.h
ppc85xx_rio.c [POWERPC] Add "is_power_of_2" checking to log2.h. 2007-02-07 14:03:19 +11:00
ppc85xx_rio.h
ppc85xx_setup.c
ppc85xx_setup.h
ppc403_pic.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00
ppc405_pci.c
ppc440spe_pcie.c
ppc440spe_pcie.h
ppc_sys.c
pq2_devices.c
pq2_sys.c
prep_nvram.c
qspan_pci.c
todc_time.c
virtex_devices.c [POWERPC] New registration for common Xilinx Virtex ppc405 platform devices 2007-04-30 11:02:04 +10:00
virtex_devices.h xilinxfb: xilinx framebuffer device driver 2007-05-08 11:15:34 -07:00
xilinx_pic.c [POWERPC] ARCH=ppc pt_regs fixes 2006-10-10 11:55:25 +10:00