android_kernel_xiaomi_sm8350/arch
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
..
alpha utimensat implementation 2007-05-08 11:15:18 -07:00
arm Add IRQF_IRQPOLL flag on arm 2007-05-08 11:15:22 -07:00
arm26 header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
avr32 header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
blackfin blackfin architecture 2007-05-07 12:12:58 -07:00
cris dma_declare_coherent_memory wrong allocation 2007-05-08 11:15:14 -07:00
frv FRV: Miscellaneous fixes 2007-05-08 20:41:14 -07:00
h8300 header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
i386 Revert "fbdev: ignore VESA modes if framebuffer is disabled" 2007-05-08 20:12:30 -07:00
ia64 Add IRQF_IRQPOLL flag on IA64 2007-05-08 11:15:22 -07:00
m32r header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
m68k header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
m68knommu header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
mips Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 2007-05-08 11:57:17 -07:00
parisc Add IRQF_IRQPOLL flag on parisc 2007-05-08 11:15:22 -07:00
powerpc [POWERPC] Change rheap functions to use ulongs instead of pointers 2007-05-09 23:01:43 -05:00
ppc [POWERPC] Change rheap functions to use ulongs instead of pointers 2007-05-09 23:01:43 -05:00
s390 no longer #include <asm/kdebug.h> 2007-05-08 11:15:20 -07:00
sh Add IRQF_IRQPOLL flag on sh 2007-05-08 11:15:22 -07:00
sh64 Simplify kallsyms_lookup() 2007-05-08 11:15:08 -07:00
sparc [SPARC]: Wire up utimensat syscall. 2007-05-08 17:50:14 -07:00
sparc64 [SPARC64]: Optimize fault kprobe handling just like powerpc. 2007-05-08 18:25:14 -07:00
um uml: pcap devices should get MACs from command line 2007-05-08 11:15:20 -07:00
v850 header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
x86_64 x86, serial: convert legacy COM ports to platform devices 2007-05-08 11:15:23 -07:00
xtensa header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00