From: kernel test robot <lkp@intel.com>
To: Felix Kuehling <Felix.Kuehling@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>,
Philip Yang <Philip.Yang@amd.com>
Subject: [linux-next:master 13374/15421] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c:284:6: warning: no previous prototype for function 'svm_migrate_put_sys_page'
Date: Thu, 29 Apr 2021 20:37:11 +0800 [thread overview]
Message-ID: <202104292007.f4xy1UbD-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2669 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 9e5cff2a1315fec1da1f497714395670366506b6
commit: 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda [13374/15421] drm/amdkfd: HMM migrate vram to ram
config: x86_64-randconfig-a011-20210429 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9131a078901b00e68248a27a4f8c4b11bb1db1ae)
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=48ff079b28d82dbce000cc45c0fd35b6ae9ffbda
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 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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/../amdkfd/kfd_migrate.c:284:6: warning: no previous prototype for function 'svm_migrate_put_sys_page' [-Wmissing-prototypes]
void svm_migrate_put_sys_page(unsigned long addr)
^
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c:284:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void svm_migrate_put_sys_page(unsigned long addr)
^
static
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c:513:29: warning: variable 'mm' is uninitialized when used here [-Wuninitialized]
svm_range_prefault(prange, mm);
^~
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c:494:22: note: initialize the variable 'mm' to silence this warning
struct mm_struct *mm;
^
= NULL
2 warnings generated.
vim +/svm_migrate_put_sys_page +284 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c
283
> 284 void svm_migrate_put_sys_page(unsigned long addr)
285 {
286 struct page *page;
287
288 page = pfn_to_page(addr >> PAGE_SHIFT);
289 unlock_page(page);
290 put_page(page);
291 }
292
---
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: 33312 bytes --]
reply other threads:[~2021-04-29 12: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=202104292007.f4xy1UbD-lkp@intel.com \
--to=lkp@intel.com \
--cc=Felix.Kuehling@amd.com \
--cc=Philip.Yang@amd.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