[linux-next:master 11959/15435] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_0_ppt.c:3073 smu_v13_0_0_set_ppt_limit() warn: inconsistent indenting
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 4477a78374a57c3809b172ad30cceabda48c47c6 commit: 6c9e0328d1dee58cd2ebbcc34b43eefc342d6d62 [11959/15435] drm/amd/pm: refactor PPT limits by controller and power source config: x86_64-randconfig-161-20260810 (https://download.01.org/0day-ci/archive/20260816/[email protected]/config) compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211) smatch: v0.5.0-9187-g5189e3fb If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ smatch warnings: drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_0_ppt.c:3073 smu_v13_0_0_set_ppt_limit() warn: inconsistent indenting vim +3073 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_0_ppt.c 3041 3042 static int smu_v13_0_0_set_ppt_limit(struct smu_context *smu, 3043 enum smu_ppt_limit_type limit_type, 3044 uint32_t limit) 3045 { 3046 PPTable_t *pptable = smu->smu_table.driver_pptable; 3047 SkuTable_t *skutable = &pptable->SkuTable; 3048 uint32_t msg_limit = skutable->MsgLimits.Power[PPT_THROTTLER_PPT0][POWER_SOURCE_AC]; 3049 struct smu_table_context *table_context = &smu->smu_table; 3050 OverDriveTableExternal_t *od_table = 3051 (OverDriveTableExternal_t *)table_context->overdrive_table; 3052 uint32_t current_limit; 3053 int ret = 0; 3054 3055 if (limit_type != SMU_PPT_LIMIT_PPT0) 3056 return -EINVAL; 3057 3058 ret = smu_v13_0_0_get_ppt_limit(smu, limit_type, ¤t_limit); 3059 if (ret) 3060 return ret; 3061 3062 if (limit <= msg_limit) { 3063 if (current_limit > msg_limit) { 3064 od_table->OverDriveTable.Ppt = 0; 3065 od_table->OverDriveTable.FeatureCtrlMask |= 1U << PP_OD_FEATURE_PPT_BIT; 3066 3067 ret = smu_v13_0_0_upload_overdrive_table(smu, od_table); 3068 if (ret) { 3069 dev_err(smu->adev->dev, "Failed to upload overdrive table!\n"); 3070 return ret; 3071 } 3072 } > 3073 return smu_v13_0_set_ppt_limit(smu, limit_type, limit); 3074 } else if (smu->od_enabled) { 3075 ret = smu_v13_0_set_ppt_limit(smu, limit_type, msg_limit); 3076 if (ret) 3077 return ret; 3078 3079 od_table->OverDriveTable.Ppt = (limit * 100) / msg_limit - 100; 3080 od_table->OverDriveTable.FeatureCtrlMask |= 1U << PP_OD_FEATURE_PPT_BIT; 3081 3082 ret = smu_v13_0_0_upload_overdrive_table(smu, od_table); 3083 if (ret) { 3084 dev_err(smu->adev->dev, "Failed to upload overdrive table!\n"); 3085 return ret; 3086 } 3087 3088 } else { 3089 return -EINVAL; 3090 } 3091 3092 return 0; 3093 } 3094 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki