lib: remove extraneous exports and function prototypes

Remove the function prototype for the function
alloc_from_memory_pool() (this function was never implemented).
The function mem_type_to_memory_pool() was not intended to be
exported, so remove the export and function prototypes.

Change-Id: Iac47d5c8a8aaf21554c2a7a56f42d6f7de689d3e
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
(cherry picked from commit fe7d2ee21af00476fe9e578fcfea1c34a70bd30f)
lib: Remove negative error values from allocate_contiguous_memory_nomap

allocate_contiguous_memory_nomap returns an unsigned long yet it
was returning errno codes for various failures.  Replace all negative
errno codes with 0, which is what all the callers expect on error anyway.

Change-Id: I3f847f70e0d7fa947a3442f43a980b3ffb1bfd96
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
(cherry picked from commit f319151ecf9bdb51295ddbf6ac8385f63fd4ae70)
lib: Add debugfs file for tracking memory allocations

Add caller information to memory allocation calls and
create /sys/kernel/debug/mempool/map to show the current set of
allocations across all memory pools.

Change-Id: I0f3613158595a3a12837c46dfe500e2e3fea57b9
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
(cherry picked from commit 9081938c99b91c714316d6fa3a6618ab27789dc7)

Conflicts:

	arch/arm/mach-msm/memory.c
lib: memory_alloc: Support 64-bit physical addresses

The current memory allocation code does not support physical
addresses above 32-bits, meaning that LPAE is not supported.
Change the types of the code internally to support 64-bit
physical addresses. Full 64-bit virtual addresses may not be
fully supported so this code will still need an update when
that happens.

Change-Id: I0c4a7b76784981ffcd7f4776d51e05f3592bb7b8
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Squashed revert of lib: memory alloc 2/2 compiling error

Revert "lib: memory_alloc: Support 64-bit physical addresses"

This reverts commit c0ba264141abf151c41fd9a04df200f748f1c387.

Revert "lib: Add debugfs file for tracking memory allocations"

This reverts commit 8649f5bc9dd1e5e40975df4dbf909fd4d5f58d80.

Revert "lib: Remove negative error values from allocate_contiguous_memory_nomap"

This reverts commit 8c9427f1a6521d944df68bf99fc63fdc369d2a88.

Revert "lib: remove extraneous exports and function prototypes"

This reverts commit 8f06c09988e8fd071fa888b81826ca0cf837d04b.

Revert "lib: memory alloc"

This reverts commit 832e7fff7d9cee4cf4a49142843b16a9ea9cb264.

Conflicts:
	lib/Makefile