msm8960: Fixed compilation under GCC 4.7

Various fixes for the GCC 4.7/Linaro compiler. AOSP Master is moving
toward GCC 4.7 so it isn't a bad idea to get compatible with the
toolchain.

Change-Id: I88518ff14cd6fa6e26e2daed4a3a6414e0cd01a0
Signed-off-by: rohan <rohanmathur34@gmail.com>
Linux 3.0.78

Change-Id: If1da0ebbd6204ab5aca9c78d73084bbd489f274b
Signed-off-by: Rohan Mathur <rohanmathur34@gmail.com>
Merge "msm8960: Fixed compilation under GCC 4.7" into cm-10.1
Merge remote-tracking branch 'upstream/cm-10.1' into cm-10.1