drm/amd/pm: Fix missing prototype warning
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 23 Feb 2022 05:10:56 +0000 (10:40 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Feb 2022 19:26:36 +0000 (14:26 -0500)
Fix below warning
warning: no previous prototype for '__smu_get_enabled_features' [-Wmissing-prototypes]

Fixes: f141e251474d67 ("drm/amd/pm: validate SMU feature enable message for getting feature enabled mask")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c

index 1bd6edf2be41c4d831938ce5d50f6688c7961f19..590a6ed12d540cd602a1d42f8279b28c7e5de909 100644 (file)
@@ -523,7 +523,7 @@ int smu_cmn_feature_is_supported(struct smu_context *smu,
        return test_bit(feature_id, feature->supported);
 }
 
-int __smu_get_enabled_features(struct smu_context *smu,
+static int __smu_get_enabled_features(struct smu_context *smu,
                               uint64_t *enabled_features)
 {
        return smu_cmn_call_asic_func(get_enabled_mask, smu, enabled_features);