Skip to content

Commit e6132d0

Browse files
Evan Quangregkh
authored andcommitted
drm/amd/powerplay: fix compile error with ARCH=arc
[ Upstream commit 9822ba2 ] Fix the compile error below: drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c: In function 'smu_v11_0_init_microcode': >> arch/arc/include/asm/bug.h:22:2: error: implicit declaration of function 'pr_warn'; did you mean 'pci_warn'? [-Werror=implicit-function-declaration] 22 | pr_warn("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \ | ^~~~~~~ drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c:176:3: note: in expansion of macro 'BUG' 176 | BUG(); Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Evan Quan <evan.quan@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent bb4960c commit e6132d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/gpu/drm/amd/powerplay/smu_v11_0.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ int smu_v11_0_init_microcode(struct smu_context *smu)
159159
chip_name = "navi12";
160160
break;
161161
default:
162-
BUG();
162+
dev_err(adev->dev, "Unsupported ASIC type %d\n", adev->asic_type);
163+
return -EINVAL;
163164
}
164165

165166
snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_smc.bin", chip_name);

0 commit comments

Comments
 (0)