Skip to content

Commit

Permalink
msm: memory: Use phys_addr_t as the return type for ebi functions
Browse files Browse the repository at this point in the history
On LPAE systems, ebi allocations may be greater than 32-bits.
Use phys_addr_t as the return type for these allocations.

Change-Id: I35a4f66d2c322869f2619253f99f339b6de7464a
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
  • Loading branch information
labbott committed Apr 11, 2013
1 parent 938d750 commit 771c304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/include/mach/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extern unsigned long ebi1_phys_offset;

#ifndef __ASSEMBLY__
void *allocate_contiguous_ebi(unsigned long, unsigned long, int);
unsigned long allocate_contiguous_ebi_nomap(unsigned long, unsigned long);
phys_addr_t allocate_contiguous_ebi_nomap(unsigned long, unsigned long);
void clean_and_invalidate_caches(unsigned long, unsigned long, unsigned long);
void clean_caches(unsigned long, unsigned long, unsigned long);
void invalidate_caches(unsigned long, unsigned long, unsigned long);
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ void *allocate_contiguous_ebi(unsigned long size,
}
EXPORT_SYMBOL(allocate_contiguous_ebi);

unsigned long allocate_contiguous_ebi_nomap(unsigned long size,
phys_addr_t allocate_contiguous_ebi_nomap(unsigned long size,
unsigned long align)
{
return _allocate_contiguous_memory_nomap(size, get_ebi_memtype(),
Expand Down

0 comments on commit 771c304

Please sign in to comment.