linux-mainline-3.8: Fix random segfaults and boot issues seen with gcc-4.8

These are backports from 3.9, tested boot on beaglebone

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Merge pull request #5 from kraj/master

Fix segfaults seen on boot when compiled with gcc-4.8