linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [agd5f:drm-next 243/250] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/amdgpu_smu.c:2277:13: warning: variable 'ret' set but not used
@ 2022-02-03 14:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-03 14:06 UTC (permalink / raw)
  To: Darren Powell; +Cc: kbuild-all, linux-kernel, Alex Deucher

tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head:   53593d1be00c441585cb4fec41a756b8e586b710
commit: 5d64f9bbb6281a5a89a2266b9d39daa1fca1d6b4 [243/250] amdgpu/pm: Implement new API function "emit" that accepts buffer base and write offset
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20220203/202202031511.FRQppMha-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
        git fetch --no-tags agd5f drm-next
        git checkout 5d64f9bbb6281a5a89a2266b9d39daa1fca1d6b4
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/gpu/drm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/amdgpu_smu.c: In function 'smu_emit_ppclk_levels':
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/amdgpu_smu.c:2277:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
    2277 |         int ret = 0;
         |             ^~~


vim +/ret +2277 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/amdgpu_smu.c

  2272	
  2273	static int smu_emit_ppclk_levels(void *handle, enum pp_clock_type type, char *buf, int *offset)
  2274	{
  2275		struct smu_context *smu = handle;
  2276		enum smu_clk_type clk_type;
> 2277		int ret = 0;
  2278	
  2279		clk_type = smu_convert_to_smuclk(type);
  2280		if (clk_type == SMU_CLK_COUNT)
  2281			return -EINVAL;
  2282	
  2283		if (!smu->pm_enabled || !smu->adev->pm.dpm_enabled)
  2284			return -EOPNOTSUPP;
  2285	
  2286		if (!smu->ppt_funcs->emit_clk_levels)
  2287			ret = -ENOENT;
  2288	
  2289		return smu->ppt_funcs->emit_clk_levels(smu, clk_type, buf, offset);
  2290	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-03 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-03 14:06 [agd5f:drm-next 243/250] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/amdgpu_smu.c:2277:13: warning: variable 'ret' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).