From ae154077211177c3914d72733d0d0f1223928942 Mon Sep 17 00:00:00 2001 From: Sharat Masetty Date: Wed, 3 May 2017 13:14:51 +0530 Subject: [PATCH] drm/msm: Fix the SNAPSHOT_HEADER macro The "_header" field of the macro was being incorrectly expanded to just "header". This was only working because all the functions which used this macro already had "header" defined in scope. Change-Id: I19e77ae78cfff471ddffd428cb3fd055c6340737 Signed-off-by: Sharat Masetty --- drivers/gpu/drm/msm/msm_snapshot.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_snapshot.h b/drivers/gpu/drm/msm/msm_snapshot.h index 247e1358c885..fd560b2129f1 100644 --- a/drivers/gpu/drm/msm/msm_snapshot.h +++ b/drivers/gpu/drm/msm/msm_snapshot.h @@ -71,8 +71,8 @@ static inline bool _snapshot_header(struct msm_snapshot *snapshot, */ #define SNAPSHOT_HEADER(_snapshot, _header, _id, _dwords) \ _snapshot_header((_snapshot), \ - (struct msm_snapshot_section_header *) &(header), \ - sizeof(header), (_dwords) << 2, (_id)) + (struct msm_snapshot_section_header *) &(_header), \ + sizeof(_header), (_dwords) << 2, (_id)) struct msm_gpu;