[GIT PULL] gcc-plugin updates for v4.12-rc4

From: Kees Cook
Date: Thu Jun 01 2017 - 16:25:39 EST


Hi,

Christoph Hellwig recommended that I send these fixes now, rather than
waiting for the v4.13 merge window. These are all initializer and cast
fixes needed for the future randstruct plugin that haven't been picked
up by the respective maintainers. If this is agreeable, please pull these
gcc-plugins updates for v4.12-rc4.

Thanks!

-Kees

The following changes since commit 08332893e37af6ae779367e78e444f8f9571511d:

Linux 4.12-rc2 (2017-05-21 19:30:23 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/gcc-plugins-v4.12-rc4

for you to fetch changes up to 243dd05d39aa14fac2ffde75cc66dee3270896f8:

mtk-vcodec: Use designated initializers (2017-05-28 10:23:02 -0700)

----------------------------------------------------------------
Use designated initializers for mtk-vcodec, powerplay, amdgpu, and sgi-xp.
Use ERR_CAST() to avoid cross-structure cast in ocf2, ntfs, and NFS.

----------------------------------------------------------------
Kees Cook (7):
NFS: Use ERR_CAST() to avoid cross-structure cast
ntfs: Use ERR_CAST() to avoid cross-structure cast
ocfs2: Use ERR_CAST() to avoid cross-structure cast
sgi-xp: Use designated initializers
drm/amdgpu: Use designated initializers
drm/amd/powerplay: Use designated initializers
mtk-vcodec: Use designated initializers

drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 10 +++---
.../gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | 20 ++++++------
.../media/platform/mtk-vcodec/vdec/vdec_h264_if.c | 8 ++---
.../media/platform/mtk-vcodec/vdec/vdec_vp8_if.c | 8 ++---
.../media/platform/mtk-vcodec/vdec/vdec_vp9_if.c | 8 ++---
drivers/misc/sgi-xp/xp.h | 12 +++++++-
drivers/misc/sgi-xp/xp_main.c | 36 +++++-----------------
fs/nfs/namespace.c | 2 +-
fs/ntfs/namei.c | 2 +-
fs/ocfs2/export.c | 2 +-
10 files changed, 48 insertions(+), 60 deletions(-)

--
Kees Cook
Pixel Security