* [linux-next:master 1490/2759] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:594:6: warning: no previous prototype for function 'vangogh_clk_dpm_is_enabled'
@ 2021-01-11 16:37 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-01-11 16:37 UTC (permalink / raw)
To: Xiaojian Du
Cc: kbuild-all, clang-built-linux, Linux Memory Management List,
Alex Deucher, Huang Rui
[-- Attachment #1: Type: text/plain, Size: 3150 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ef8b014ee4a1ccd9e751732690a8c7cdeed945e7
commit: d0e4e112a9461a5e319110b26142a97c34b23c90 [1490/2759] drm/amd/pm: add some basic functions to support umd P-state function for vangogh.
config: powerpc-randconfig-r026-20210111 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 7be3285248bf54d0784a76174cf44cf7c1e780a5)
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
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d0e4e112a9461a5e319110b26142a97c34b23c90
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout d0e4e112a9461a5e319110b26142a97c34b23c90
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
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/smu11/vangogh_ppt.c:594:6: warning: no previous prototype for function 'vangogh_clk_dpm_is_enabled' [-Wmissing-prototypes]
bool vangogh_clk_dpm_is_enabled(struct smu_context *smu,
^
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:594:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool vangogh_clk_dpm_is_enabled(struct smu_context *smu,
^
static
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:626:12: warning: unused function 'vangogh_get_dpm_ultimate_freq' [-Wunused-function]
static int vangogh_get_dpm_ultimate_freq(struct smu_context *smu,
^
2 warnings generated.
vim +/vangogh_clk_dpm_is_enabled +594 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c
593
> 594 bool vangogh_clk_dpm_is_enabled(struct smu_context *smu,
595 enum smu_clk_type clk_type)
596 {
597 enum smu_feature_mask feature_id = 0;
598
599 switch (clk_type) {
600 case SMU_MCLK:
601 case SMU_UCLK:
602 case SMU_FCLK:
603 feature_id = SMU_FEATURE_DPM_FCLK_BIT;
604 break;
605 case SMU_GFXCLK:
606 case SMU_SCLK:
607 feature_id = SMU_FEATURE_DPM_GFXCLK_BIT;
608 break;
609 case SMU_SOCCLK:
610 feature_id = SMU_FEATURE_DPM_SOCCLK_BIT;
611 break;
612 case SMU_VCLK:
613 case SMU_DCLK:
614 feature_id = SMU_FEATURE_VCN_DPM_BIT;
615 break;
616 default:
617 return true;
618 }
619
620 if (!smu_cmn_feature_is_enabled(smu, feature_id))
621 return false;
622
623 return true;
624 }
625
---
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: 22833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [linux-next:master 1490/2759] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:594:6: warning: no previous prototype for function 'vangogh_clk_dpm_is_enabled'
@ 2021-01-11 16:37 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-01-11 16:37 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3226 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ef8b014ee4a1ccd9e751732690a8c7cdeed945e7
commit: d0e4e112a9461a5e319110b26142a97c34b23c90 [1490/2759] drm/amd/pm: add some basic functions to support umd P-state function for vangogh.
config: powerpc-randconfig-r026-20210111 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 7be3285248bf54d0784a76174cf44cf7c1e780a5)
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
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d0e4e112a9461a5e319110b26142a97c34b23c90
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout d0e4e112a9461a5e319110b26142a97c34b23c90
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
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/smu11/vangogh_ppt.c:594:6: warning: no previous prototype for function 'vangogh_clk_dpm_is_enabled' [-Wmissing-prototypes]
bool vangogh_clk_dpm_is_enabled(struct smu_context *smu,
^
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:594:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool vangogh_clk_dpm_is_enabled(struct smu_context *smu,
^
static
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:626:12: warning: unused function 'vangogh_get_dpm_ultimate_freq' [-Wunused-function]
static int vangogh_get_dpm_ultimate_freq(struct smu_context *smu,
^
2 warnings generated.
vim +/vangogh_clk_dpm_is_enabled +594 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c
593
> 594 bool vangogh_clk_dpm_is_enabled(struct smu_context *smu,
595 enum smu_clk_type clk_type)
596 {
597 enum smu_feature_mask feature_id = 0;
598
599 switch (clk_type) {
600 case SMU_MCLK:
601 case SMU_UCLK:
602 case SMU_FCLK:
603 feature_id = SMU_FEATURE_DPM_FCLK_BIT;
604 break;
605 case SMU_GFXCLK:
606 case SMU_SCLK:
607 feature_id = SMU_FEATURE_DPM_GFXCLK_BIT;
608 break;
609 case SMU_SOCCLK:
610 feature_id = SMU_FEATURE_DPM_SOCCLK_BIT;
611 break;
612 case SMU_VCLK:
613 case SMU_DCLK:
614 feature_id = SMU_FEATURE_VCN_DPM_BIT;
615 break;
616 default:
617 return true;
618 }
619
620 if (!smu_cmn_feature_is_enabled(smu, feature_id))
621 return false;
622
623 return true;
624 }
625
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 22833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-11 16:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 16:37 [linux-next:master 1490/2759] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:594:6: warning: no previous prototype for function 'vangogh_clk_dpm_is_enabled' kernel test robot
2021-01-11 16:37 ` 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.