mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[POWERPC] Fix rheap alignment problem
Honor alignment parameter in the rheap allocator. This is needed by qe_lib. Remove compile warning. Signed-off-by: Pantelis Antoniou <[email protected]> Signed-off-by: Li Yang <[email protected]> Acked-by: Kumar Galak <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
07bd1c4a82
commit
5e98082358
3 changed files with 25 additions and 4 deletions
|
|
@ -62,6 +62,10 @@ extern int rh_attach_region(rh_info_t * info, void *start, int size);
|
|||
/* Detach a free region */
|
||||
extern void *rh_detach_region(rh_info_t * info, void *start, int size);
|
||||
|
||||
/* Allocate the given size from the remote heap (with alignment) */
|
||||
extern void *rh_alloc_align(rh_info_t * info, int size, int alignment,
|
||||
const char *owner);
|
||||
|
||||
/* Allocate the given size from the remote heap */
|
||||
extern void *rh_alloc(rh_info_t * info, int size, const char *owner);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue