Commit 9822ba2e authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/powerplay: fix compile error with ARCH=arc

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: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 33d63b1f
...@@ -173,7 +173,8 @@ int smu_v11_0_init_microcode(struct smu_context *smu) ...@@ -173,7 +173,8 @@ int smu_v11_0_init_microcode(struct smu_context *smu)
chip_name = "sienna_cichlid"; chip_name = "sienna_cichlid";
break; break;
default: default:
BUG(); dev_err(adev->dev, "Unsupported ASIC type %d\n", adev->asic_type);
return -EINVAL;
} }
snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_smc.bin", chip_name); snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_smc.bin", chip_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment