copybit: Fix type conversion error for GCC 4.7

GCC 4.7 has stricter type conversion rules

Change-Id: I699cfe1ceafb5728fb8e6f34f7b1996d3c812e7e
pmemalloc: fix GCC 4.7 errors

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Id5d7bc86780bd716b97257400e15793c29ff4dfb
librgralloc: gralloc_priv.h: Define GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY
Remove PMEM parts
gralloc: Allow legacy devices to use PMEM for ADSP (camera).

Partially bring back PMEM support for legacy devices having proprietary camera
libraries stuck in PMEM. This change allows these devices to continue using
PMEM for the camera, and ION for everything else.

Change-Id: I1afbc7d137b3d49b2ab3e53917b16fd920ea140b

Conflicts:
	libgralloc/Android.mk
	libgralloc/alloc_controller.h
libgralloc: alloc_controller.h: Use smart pointer for PmemAdspAlloc

I have no idea what I'm doing.
pmemalloc: Fix compilation

Thanks to professorpasta on XDA for pointing out why it wasn't compiling.
libgralloc: Add back support for PMEM SMI

Needed for our PMEM video controller and PMEM camera libs.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Merge branch 'cm-11.0_ion' into cm-11.0