From: kernel test robot <lkp@intel.com>
To: Jinyang He <hejinyang@loongson.cn>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Subject: kernel/kcov.c:180:8: error: implicit declaration of function 'kaslr_offset'
Date: Sun, 24 Jan 2021 19:59:05 +0800 [thread overview]
Message-ID: <202101241959.VreUFZWB-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2665 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e1ae4b0be15891faf46d390e9f3dc9bd71a8cae1
commit: a307a4ce9ecd2e23c71318201330d9d648b3f818 MIPS: Loongson64: Add KASLR support
date: 8 weeks ago
config: mips-randconfig-r004-20210124 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a307a4ce9ecd2e23c71318201330d9d648b3f818
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a307a4ce9ecd2e23c71318201330d9d648b3f818
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/kcov.c: In function 'canonicalize_ip':
>> kernel/kcov.c:180:8: error: implicit declaration of function 'kaslr_offset' [-Werror=implicit-function-declaration]
180 | ip -= kaslr_offset();
| ^~~~~~~~~~~~
kernel/kcov.c: At top level:
kernel/kcov.c:189:14: warning: no previous prototype for '__sanitizer_cov_trace_pc' [-Wmissing-prototypes]
189 | void notrace __sanitizer_cov_trace_pc(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/kaslr_offset +180 kernel/kcov.c
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17 176
903e8ff86753e6f3 Anders Roxell 2018-11-30 177 static notrace unsigned long canonicalize_ip(unsigned long ip)
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17 178 {
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17 179 #ifdef CONFIG_RANDOMIZE_BASE
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17 @180 ip -= kaslr_offset();
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17 181 #endif
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17 182 return ip;
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17 183 }
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17 184
:::::: The code at line 180 was first introduced by commit
:::::: ded97d2c2b2c5f1dcced0bc57133f7753b037dfc kcov: support comparison operands collection
:::::: TO: Victor Chibotaru <tchibo@google.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
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: 27489 bytes --]
reply other threads:[~2021-01-24 12:02 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=202101241959.VreUFZWB-lkp@intel.com \
--to=lkp@intel.com \
--cc=hejinyang@loongson.cn \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/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
all inboxes | Powered by JetHome®