All of lore.kernel.org
 help / color / mirror / Atom feed
* [agd5f:amd-staging-drm-next 1841/1993] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c:1095:6: warning: variable 'ret' set but not used
@ 2021-03-10  8:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-10  8:46 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1944 bytes --]

tree:   https://gitlab.freedesktop.org/agd5f/linux.git amd-staging-drm-next
head:   dec2310256916626e4356af784822e02fb807cad
commit: c271eaa4a616a4c09dc289cb5bb6dd6b1f391725 [1841/1993] drm/amd/swsmu: add aldebaran smu13 ip support (v3)
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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 amd-staging-drm-next
        git checkout c271eaa4a616a4c09dc289cb5bb6dd6b1f391725
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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/smu13/aldebaran_ppt.c: In function 'aldebaran_is_dpm_running':
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c:1095:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
    1095 |  int ret = 0;
         |      ^~~


vim +/ret +1095 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c

  1092	
  1093	static bool aldebaran_is_dpm_running(struct smu_context *smu)
  1094	{
> 1095		int ret = 0;
  1096		uint32_t feature_mask[2];
  1097		unsigned long feature_enabled;
  1098		ret = smu_cmn_get_enabled_mask(smu, feature_mask, 2);
  1099		feature_enabled = (unsigned long)((uint64_t)feature_mask[0] |
  1100						  ((uint64_t)feature_mask[1] << 32));
  1101		return !!(feature_enabled & SMC_DPM_FEATURE);
  1102	}
  1103	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 76461 bytes --]

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

only message in thread, other threads:[~2021-03-10  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10  8:46 [agd5f:amd-staging-drm-next 1841/1993] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c:1095:6: warning: variable 'ret' set but not used kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.