All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Likun Gao <Likun.Gao@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>,
	clang-built-linux@googlegroups.com,
	Kenneth Feng <kenneth.feng@amd.com>,
	kbuild-all@lists.01.org, dri-devel@lists.freedesktop.org
Subject: [radeon-alex:amd-staging-drm-next 677/1015] drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:5: warning: no previous prototype for function 'sienna_cichlid_set_soft_freq_limited_range'
Date: Sun, 12 Jul 2020 00:44:51 +0800	[thread overview]
Message-ID: <202007120049.0kYBxKuV%lkp@intel.com> (raw)

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

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   3c831e196bd7543977d4acd506064636809f1dcf
commit: ac7413ecad5e406065529cda0adaa29c353cc557 [677/1015] drm/amd/amdgpu: disable gfxoff to retrieve gfxclk
config: powerpc64-randconfig-r004-20200710 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        git checkout ac7413ecad5e406065529cda0adaa29c353cc557
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

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/../powerplay/sienna_cichlid_ppt.c:1718:5: warning: no previous prototype for function 'sienna_cichlid_get_dpm_ultimate_freq' [-Wmissing-prototypes]
   int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
       ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1718:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:5: warning: no previous prototype for function 'sienna_cichlid_set_soft_freq_limited_range' [-Wmissing-prototypes]
   int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
       ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
   ^
   static 
   2 warnings generated.

vim +/sienna_cichlid_set_soft_freq_limited_range +1734 drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c

  1717	
> 1718	int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
  1719					enum smu_clk_type clk_type,
  1720					uint32_t *min, uint32_t *max)
  1721	{
  1722		struct amdgpu_device *adev = smu->adev;
  1723		int ret;
  1724	
  1725		if (clk_type == SMU_GFXCLK)
  1726			amdgpu_gfx_off_ctrl(adev, false);
  1727		ret = smu_v11_0_get_dpm_ultimate_freq(smu, clk_type, min, max);
  1728		if (clk_type == SMU_GFXCLK)
  1729			amdgpu_gfx_off_ctrl(adev, true);
  1730	
  1731		return ret;
  1732	}
  1733	
> 1734	int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
  1735					      enum smu_clk_type clk_type,
  1736					      uint32_t min, uint32_t max)
  1737	{
  1738		struct amdgpu_device *adev = smu->adev;
  1739		int ret;
  1740	
  1741		if (clk_type == SMU_GFXCLK)
  1742			amdgpu_gfx_off_ctrl(adev, false);
  1743		ret = smu_v11_0_set_soft_freq_limited_range(smu, clk_type, min, max);
  1744		if (clk_type == SMU_GFXCLK)
  1745			amdgpu_gfx_off_ctrl(adev, true);
  1746	
  1747		return ret;
  1748	}
  1749	

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

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [radeon-alex:amd-staging-drm-next 677/1015] drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:5: warning: no previous prototype for function 'sienna_cichlid_set_soft_freq_limited_range'
Date: Sun, 12 Jul 2020 00:44:51 +0800	[thread overview]
Message-ID: <202007120049.0kYBxKuV%lkp@intel.com> (raw)

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

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   3c831e196bd7543977d4acd506064636809f1dcf
commit: ac7413ecad5e406065529cda0adaa29c353cc557 [677/1015] drm/amd/amdgpu: disable gfxoff to retrieve gfxclk
config: powerpc64-randconfig-r004-20200710 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        git checkout ac7413ecad5e406065529cda0adaa29c353cc557
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

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/../powerplay/sienna_cichlid_ppt.c:1718:5: warning: no previous prototype for function 'sienna_cichlid_get_dpm_ultimate_freq' [-Wmissing-prototypes]
   int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
       ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1718:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:5: warning: no previous prototype for function 'sienna_cichlid_set_soft_freq_limited_range' [-Wmissing-prototypes]
   int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
       ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
   ^
   static 
   2 warnings generated.

vim +/sienna_cichlid_set_soft_freq_limited_range +1734 drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c

  1717	
> 1718	int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
  1719					enum smu_clk_type clk_type,
  1720					uint32_t *min, uint32_t *max)
  1721	{
  1722		struct amdgpu_device *adev = smu->adev;
  1723		int ret;
  1724	
  1725		if (clk_type == SMU_GFXCLK)
  1726			amdgpu_gfx_off_ctrl(adev, false);
  1727		ret = smu_v11_0_get_dpm_ultimate_freq(smu, clk_type, min, max);
  1728		if (clk_type == SMU_GFXCLK)
  1729			amdgpu_gfx_off_ctrl(adev, true);
  1730	
  1731		return ret;
  1732	}
  1733	
> 1734	int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
  1735					      enum smu_clk_type clk_type,
  1736					      uint32_t min, uint32_t max)
  1737	{
  1738		struct amdgpu_device *adev = smu->adev;
  1739		int ret;
  1740	
  1741		if (clk_type == SMU_GFXCLK)
  1742			amdgpu_gfx_off_ctrl(adev, false);
  1743		ret = smu_v11_0_set_soft_freq_limited_range(smu, clk_type, min, max);
  1744		if (clk_type == SMU_GFXCLK)
  1745			amdgpu_gfx_off_ctrl(adev, true);
  1746	
  1747		return ret;
  1748	}
  1749	

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

             reply	other threads:[~2020-07-11 16:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-11 16:44 kernel test robot [this message]
2020-07-11 16:44 ` [radeon-alex:amd-staging-drm-next 677/1015] drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:5: warning: no previous prototype for function 'sienna_cichlid_set_soft_freq_limited_range' kernel test robot

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=202007120049.0kYBxKuV%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Likun.Gao@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kbuild-all@lists.01.org \
    --cc=kenneth.feng@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 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.