drm/amd/amdgpu: Fix asm/hypervisor.h build error.
authorYongqiang Sun <yongqiang.sun@amd.com>
Fri, 8 Apr 2022 13:26:14 +0000 (09:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Apr 2022 17:50:35 +0000 (13:50 -0400)
commitd9e50239a9611b9a1759e007e9a810c8d178da28
tree5454cf6af2e78155e2621067cfc0674753cf3609
parentedd11922e3d01549fc6f5a1fa1413eb2f7d5be55
drm/amd/amdgpu: Fix asm/hypervisor.h build error.

Add CONFIG_X86 check to fix the build error.

Fixes: 49aa98ca30cd18 ("drm/amd/amdgpu: Only reserve vram for firmware with vega9 MS_HYPERV host.")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c