From: kernel test robot <lkp@intel.com>
To: yipechai <YiPeng.Chai@amd.com>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Alex Deucher <alexander.deucher@amd.com>,
Hawking Zhang <Hawking.Zhang@amd.com>,
John Clements <john.clements@amd.com>,
Tao Zhou <tao.zhou1@amd.com>
Subject: [linux-next:master 11777/12034] drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:869:5: warning: no previous prototype for 'amdgpu_ras_block_match_default'
Date: Wed, 12 Jan 2022 22:17:10 +0800 [thread overview]
Message-ID: <202201122203.RnVlhR9G-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 32ce2abb03cfae17a9eb42bd6b1b619b72f23f20
commit: 5f5727195efd4856308c078b1391094384cf1a00 [11777/12034] drm/amdgpu: Unify ras block interface for each ras block
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220112/202201122203.RnVlhR9G-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=5f5727195efd4856308c078b1391094384cf1a00
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 5f5727195efd4856308c078b1391094384cf1a00
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/
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/amdgpu_ras.c:869:5: warning: no previous prototype for 'amdgpu_ras_block_match_default' [-Wmissing-prototypes]
869 | int amdgpu_ras_block_match_default(struct amdgpu_ras_block_object* block_obj, enum amdgpu_ras_block block)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:880:40: warning: 'amdgpu_ras_get_ras_block' defined but not used [-Wunused-function]
880 | static struct amdgpu_ras_block_object* amdgpu_ras_get_ras_block(struct amdgpu_device *adev,
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/amdgpu_ras_block_match_default +869 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
868
> 869 int amdgpu_ras_block_match_default(struct amdgpu_ras_block_object* block_obj, enum amdgpu_ras_block block)
870 {
871 if(!block_obj)
872 return -EINVAL;
873
874 if (block_obj->block == block)
875 return 0;
876
877 return -EINVAL;
878 }
879
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-01-12 14:23 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=202201122203.RnVlhR9G-lkp@intel.com \
--to=lkp@intel.com \
--cc=Hawking.Zhang@amd.com \
--cc=YiPeng.Chai@amd.com \
--cc=alexander.deucher@amd.com \
--cc=john.clements@amd.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=tao.zhou1@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