mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:815:5: warning: no previous prototype for 'amdgpu_ras_error_inject_xgmi'
@ 2020-06-18  0:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-18  0:38 UTC (permalink / raw)
  To: John Clements; +Cc: kbuild-all, linux-kernel, Alex Deucher, Hawking Zhang

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1b5044021070efa3259f3e9548dc35d1eb6aa844
commit: 5c23e9e05e42b5ea56a87a17f1da9ccf9b100465 drm/amdgpu: Update RAS XGMI error inject sequence
date:   5 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 5c23e9e05e42b5ea56a87a17f1da9ccf9b100465
        # 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@intel.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:815:5: warning: no previous prototype for 'amdgpu_ras_error_inject_xgmi' [-Wmissing-prototypes]
815 | int amdgpu_ras_error_inject_xgmi(struct amdgpu_device *adev,
|     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:893:5: warning: no previous prototype for 'amdgpu_ras_error_cure' [-Wmissing-prototypes]
893 | 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_error_inject_xgmi +815 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

   813	
   814	/* Trigger XGMI/WAFL error */
 > 815	int amdgpu_ras_error_inject_xgmi(struct amdgpu_device *adev,
   816					 struct ta_ras_trigger_error_input *block_info)
   817	{
   818		int ret;
   819	
   820		if (amdgpu_dpm_set_df_cstate(adev, DF_CSTATE_DISALLOW))
   821			dev_warn(adev->dev, "Failed to disallow df cstate");
   822	
   823		if (amdgpu_dpm_allow_xgmi_power_down(adev, false))
   824			dev_warn(adev->dev, "Failed to disallow XGMI power down");
   825	
   826		ret = psp_ras_trigger_error(&adev->psp, block_info);
   827	
   828		if (amdgpu_ras_intr_triggered())
   829			return ret;
   830	
   831		if (amdgpu_dpm_allow_xgmi_power_down(adev, true))
   832			dev_warn(adev->dev, "Failed to allow XGMI power down");
   833	
   834		if (amdgpu_dpm_set_df_cstate(adev, DF_CSTATE_DISALLOW))
   835			dev_warn(adev->dev, "Failed to allow df cstate");
   836	
   837		return ret;
   838	}
   839	

---
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: 29810 bytes --]

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

only message in thread, other threads:[~2020-06-18  0:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-18  0:38 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:815:5: warning: no previous prototype for 'amdgpu_ras_error_inject_xgmi' 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

all inboxes | Powered by JetHome®