linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alex Deucher <alexander.deucher@amd.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 3851/3917] drivers/gpu/drm/amd/amdgpu/smuio_v13_0.c:99: warning: expecting prototype for smuio_v13_0_supports_host_gpu_xgmi(). Prototype was for smuio_v13_0_is_host_gpu_xgmi_supported() instead
Date: Thu, 11 Mar 2021 15:54:35 +0800	[thread overview]
Message-ID: <202103111524.3lRp7fHg-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   98546348153dee5f8ced572fd6c4690461d20f51
commit: 35fa30bfdfc6bb5f78c35df740baa70f9b7178ab [3851/3917] Merge remote-tracking branch 'amdgpu/drm-next'
config: x86_64-randconfig-r012-20210311 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 574a9dabc63ba1e7a04c08d4bde2eacd61b44ce1)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=35fa30bfdfc6bb5f78c35df740baa70f9b7178ab
        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 35fa30bfdfc6bb5f78c35df740baa70f9b7178ab
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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/smuio_v13_0.c:99: warning: expecting prototype for smuio_v13_0_supports_host_gpu_xgmi(). Prototype was for smuio_v13_0_is_host_gpu_xgmi_supported() instead


vim +99 drivers/gpu/drm/amd/amdgpu/smuio_v13_0.c

62f6a0a7d844be Hawking Zhang 2020-10-23   90  
62f6a0a7d844be Hawking Zhang 2020-10-23   91  /**
62f6a0a7d844be Hawking Zhang 2020-10-23   92   * smuio_v13_0_supports_host_gpu_xgmi - detect xgmi interface between cpu and gpu/s.
62f6a0a7d844be Hawking Zhang 2020-10-23   93   *
62f6a0a7d844be Hawking Zhang 2020-10-23   94   * @adev: amdgpu device pointer
62f6a0a7d844be Hawking Zhang 2020-10-23   95   *
62f6a0a7d844be Hawking Zhang 2020-10-23   96   * Returns true on success or false otherwise.
62f6a0a7d844be Hawking Zhang 2020-10-23   97   */
62f6a0a7d844be Hawking Zhang 2020-10-23   98  static bool smuio_v13_0_is_host_gpu_xgmi_supported(struct amdgpu_device *adev)
62f6a0a7d844be Hawking Zhang 2020-10-23  @99  {
62f6a0a7d844be Hawking Zhang 2020-10-23  100  	u32 data;
62f6a0a7d844be Hawking Zhang 2020-10-23  101  
62f6a0a7d844be Hawking Zhang 2020-10-23  102  	data = RREG32_SOC15(SMUIO, 0, regSMUIO_MCM_CONFIG);
62f6a0a7d844be Hawking Zhang 2020-10-23  103  	data = REG_GET_FIELD(data, SMUIO_MCM_CONFIG, TOPOLOGY_ID);
62f6a0a7d844be Hawking Zhang 2020-10-23  104  	/* data[4:0]
62f6a0a7d844be Hawking Zhang 2020-10-23  105  	 * bit 0 == 0 host-gpu interface is PCIE
62f6a0a7d844be Hawking Zhang 2020-10-23  106  	 * bit 0 == 1 host-gpu interface is Alternate Protocal
62f6a0a7d844be Hawking Zhang 2020-10-23  107  	 * for AMD, this is XGMI
62f6a0a7d844be Hawking Zhang 2020-10-23  108  	 */
62f6a0a7d844be Hawking Zhang 2020-10-23  109  	data &= SMUIO_MCM_CONFIG__HOST_GPU_XGMI_MASK;
62f6a0a7d844be Hawking Zhang 2020-10-23  110  
62f6a0a7d844be Hawking Zhang 2020-10-23  111  	return data ? true : false;
62f6a0a7d844be Hawking Zhang 2020-10-23  112  }
62f6a0a7d844be Hawking Zhang 2020-10-23  113  

:::::: The code at line 99 was first introduced by commit
:::::: 62f6a0a7d844be7ccc8bbd85bb8decac3145f59a drm/amdgpu: implement smuio v13_0 callbacks

:::::: TO: Hawking Zhang <Hawking.Zhang@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

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

                 reply	other threads:[~2021-03-11  7:55 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=202103111524.3lRp7fHg-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexander.deucher@amd.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    /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).