]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: fix compiler 'side-effect' check issue for RAS_EVENT_LOG()
authorYang Wang <kevinyang.wang@amd.com>
Mon, 13 May 2024 23:48:19 +0000 (07:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 May 2024 21:40:37 +0000 (17:40 -0400)
commitb712d7c20133b67f13aa134e7534369f19e1214f
treef1e64de1fff6383b28ba4ddfb820bf9b0582155f
parentd430e856ed009f9a98f12b6d6812d7ee1d7f3e1c
drm/amdgpu: fix compiler 'side-effect' check issue for RAS_EVENT_LOG()

create a new helper function to avoid compiler 'side-effect'
check about RAS_EVENT_LOG() macro.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h