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
gralloc: fix gralloc module

Explicitly setting reserved (in C++) breaks future extensions of the
module format.  Removed these explicit settings for future
compatibility.

Change-Id: Ia7fa1e1ff73114a6eacb5b228e81ef1c30c32f43
Fix two trivial bugs found by gcc 4.7.

1) external.cpp: ext_commit.flags is uninitialized.
2) hwc_mdpcomp.cpp: signed int compared against another signed int
   which is unnecessarily casted to unsigned.

Bug: 7671979
Change-Id: I0e846cf0f7b161ce6f06f380af19a2864a3fd222
Update & cleanup gralloc

Based on https://github.com/CyanogenMod/android_hardware_qcom_display-caf/commit/277b124c636c4bfc891d2481fe939224b93d788e

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

Change-Id: I57d113ea85270bbe4c7ea1f008393d83a5f40ef7
display: Export headers

Display headers used by other components should be at a common
location to avoid issues with future changes in paths.

Change-Id: Iaec21206b82dd7dae03e598b9ec46b3e6f1bbf71
s/display/display-legacy/