4c35630ccd
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> |
||
---|---|---|
.. | ||
btext.c | ||
cpc700_pic.c | ||
cpc700.h | ||
cpm2_common.c | ||
cpm2_pic.c | ||
cpm2_pic.h | ||
gen550_dbg.c | ||
gen550_kgdb.c | ||
gen550.h | ||
gt64260_pic.c | ||
harrier.c | ||
hawk_common.c | ||
i8259.c | ||
ibm44x_common.c | ||
ibm44x_common.h | ||
ibm440gp_common.c | ||
ibm440gp_common.h | ||
ibm440gx_common.c | ||
ibm440gx_common.h | ||
ibm440sp_common.c | ||
ibm440sp_common.h | ||
ibm_ocp.c | ||
ipic.c | ||
ipic.h | ||
m8xx_setup.c | ||
m8xx_wdt.c | ||
m8xx_wdt.h | ||
m82xx_pci.c | ||
m82xx_pci.h | ||
m8260_pci_erratum9.c | ||
m8260_setup.c | ||
Makefile | ||
mpc8xx_devices.c | ||
mpc8xx_sys.c | ||
mpc10x_common.c | ||
mpc52xx_devices.c | ||
mpc52xx_pci.c | ||
mpc52xx_pci.h | ||
mpc52xx_pic.c | ||
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 | ||
mv64360_pic.c | ||
ocp.c | ||
open_pic2.c | ||
open_pic_defs.h | ||
open_pic.c | ||
pci_auto.c | ||
ppc4xx_dma.c | ||
ppc4xx_pic.c | ||
ppc4xx_setup.c | ||
ppc4xx_sgdma.c | ||
ppc8xx_pic.c | ||
ppc8xx_pic.h | ||
ppc83xx_pci.h | ||
ppc83xx_setup.c | ||
ppc83xx_setup.h | ||
ppc85xx_common.c | ||
ppc85xx_common.h | ||
ppc85xx_rio.c | ||
ppc85xx_rio.h | ||
ppc85xx_setup.c | ||
ppc85xx_setup.h | ||
ppc403_pic.c | ||
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 | ||
virtex_devices.h | ||
xilinx_pic.c |