diff --git a/projects/amdsmi/example/amd_smi_drm_example.cc b/projects/amdsmi/example/amd_smi_drm_example.cc index 47155f7324..2092eecdbf 100644 --- a/projects/amdsmi/example/amd_smi_drm_example.cc +++ b/projects/amdsmi/example/amd_smi_drm_example.cc @@ -1389,7 +1389,7 @@ int main() { << "(UINTX MAX are unsupported for the version in question) ** " << "\n\n"; // Get nearest GPUs - char *topology_link_type_str[] = { + const char *topology_link_type_str[] = { "AMDSMI_LINK_TYPE_INTERNAL", "AMDSMI_LINK_TYPE_XGMI", "AMDSMI_LINK_TYPE_PCIE", diff --git a/projects/amdsmi/example/amd_smi_nodrm_example.cc b/projects/amdsmi/example/amd_smi_nodrm_example.cc index 583af1a178..7860b735bc 100644 --- a/projects/amdsmi/example/amd_smi_nodrm_example.cc +++ b/projects/amdsmi/example/amd_smi_nodrm_example.cc @@ -327,7 +327,7 @@ int main() { } // Get nearest GPUs - char *topology_link_type_str[] = { + const char *topology_link_type_str[] = { "AMDSMI_LINK_TYPE_INTERNAL", "AMDSMI_LINK_TYPE_XGMI", "AMDSMI_LINK_TYPE_PCIE",