[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202006180451.GvCCocXz%lkp@intel.com>
Date: Thu, 18 Jun 2020 04:03:53 +0800
From: kernel test robot <lkp@...el.com>
To: John Clements <john.clements@....com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Alex Deucher <alexander.deucher@....com>,
Hawking Zhang <Hawking.Zhang@....com>
Subject: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:505:6: warning: no previous
prototype for 'amdgpu_ras_parse_status_code'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1b5044021070efa3259f3e9548dc35d1eb6aa844
commit: a200034b664820da243ff4cd9595b8b5116332af drm/amdgpu: update RAS error handling
date: 7 weeks ago
config: ia64-randconfig-r012-20200617 (attached as .config)
compiler: ia64-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 checkout a200034b664820da243ff4cd9595b8b5116332af
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:89:6: warning: no previous prototype for 'amdgpu_ras_get_error_query_ready' [-Wmissing-prototypes]
89 | bool amdgpu_ras_get_error_query_ready(struct amdgpu_device *adev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:505:6: warning: no previous prototype for 'amdgpu_ras_parse_status_code' [-Wmissing-prototypes]
505 | void amdgpu_ras_parse_status_code(struct amdgpu_device* adev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:854:5: warning: no previous prototype for 'amdgpu_ras_error_cure' [-Wmissing-prototypes]
854 | int amdgpu_ras_error_cure(struct amdgpu_device *adev,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:31:
drivers/gpu/drm/amd/amdgpu/amdgpu.h:189:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
189 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:31:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +/amdgpu_ras_parse_status_code +505 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
504
> 505 void amdgpu_ras_parse_status_code(struct amdgpu_device* adev,
506 const char* invoke_type,
507 const char* block_name,
508 enum ta_ras_status ret)
509 {
510 switch (ret) {
511 case TA_RAS_STATUS__SUCCESS:
512 return;
513 case TA_RAS_STATUS__ERROR_RAS_NOT_AVAILABLE:
514 dev_warn(adev->dev,
515 "RAS WARN: %s %s currently unavailable\n",
516 invoke_type,
517 block_name);
518 break;
519 default:
520 dev_err(adev->dev,
521 "RAS ERROR: %s %s error failed ret 0x%X\n",
522 invoke_type,
523 block_name,
524 ret);
525 }
526 }
527
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (29528 bytes)
Powered by blists - more mailing lists