All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel/kcov.c:180:8: error: implicit declaration of function 'kaslr_offset'
@ 2021-01-24 11:59 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-01-24 11:59 UTC (permalink / raw)
  To: Jinyang He; +Cc: kbuild-all, linux-kernel, Thomas Bogendoerfer

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-24 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-24 11:59 kernel/kcov.c:180:8: error: implicit declaration of function 'kaslr_offset' kernel test robot
2021-01-24 11:59 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.