linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Xiaojian Du <Xiaojian.Du@amd.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	Linux Memory Management List <linux-mm@kvack.org>,
	Alex Deucher <alexander.deucher@amd.com>,
	Huang Rui <ray.huang@amd.com>
Subject: [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'
Date: Tue, 12 Jan 2021 00:37:37 +0800	[thread overview]
Message-ID: <202101120025.OSzkyvNc-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-01-11 16:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202101120025.OSzkyvNc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Xiaojian.Du@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=ray.huang@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).