lkml.org 
[lkml]   [2019]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectkernel/kcov.c:85:8: error: implicit declaration of function 'kaslr_offset'; did you mean '__swp_offset'?
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 80a0c2e511a97e11d82e0ec11564e2c3fe624b0d
commit: dcf78ee660888d8302a0f0888bf746a164d267fa MIPS: allow building with kcov coverage
date: 5 weeks ago
config: mips-randconfig-a001-20191219 (attached as .config)
compiler: mips-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout dcf78ee660888d8302a0f0888bf746a164d267fa
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=mips

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

kernel/kcov.c: In function 'canonicalize_ip':
>> kernel/kcov.c:85:8: error: implicit declaration of function 'kaslr_offset'; did you mean '__swp_offset'? [-Werror=implicit-function-declaration]
ip -= kaslr_offset();
^~~~~~~~~~~~
__swp_offset
cc1: some warnings being treated as errors

vim +85 kernel/kcov.c

ded97d2c2b2c5f Victor Chibotaru 2017-11-17 81
903e8ff86753e6 Anders Roxell 2018-11-30 82 static notrace unsigned long canonicalize_ip(unsigned long ip)
ded97d2c2b2c5f Victor Chibotaru 2017-11-17 83 {
ded97d2c2b2c5f Victor Chibotaru 2017-11-17 84 #ifdef CONFIG_RANDOMIZE_BASE
ded97d2c2b2c5f Victor Chibotaru 2017-11-17 @85 ip -= kaslr_offset();
ded97d2c2b2c5f Victor Chibotaru 2017-11-17 86 #endif
ded97d2c2b2c5f Victor Chibotaru 2017-11-17 87 return ip;
ded97d2c2b2c5f Victor Chibotaru 2017-11-17 88 }
ded97d2c2b2c5f Victor Chibotaru 2017-11-17 89

:::::: The code at line 85 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 kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2019-12-19 03:27    [W:0.021 / U:1.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site