linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Johannes Weiner <hannes@cmpxchg.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [hnaz-mm:master 343/435] arch/riscv/lib/delay.c:77:3: error: implicit declaration of function 'cpu_relax'
Date: Fri, 5 Nov 2021 15:11:20 +0800	[thread overview]
Message-ID: <202111051510.ucX2TyQw-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2456 bytes --]

tree:   https://github.com/hnaz/linux-mm master
head:   b8280145cf2a894c873fdf91fb2af474c52ac6cc
commit: eaadd3a1784064254eb06b36fbd4b653f0228478 [343/435] include/linux/delay.h: replace kernel.h with the necessary inclusions
config: riscv-randconfig-r031-20211103 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 264d3b6d4e08401c5b50a85bd76e80b3461d77e6)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/hnaz/linux-mm/commit/eaadd3a1784064254eb06b36fbd4b653f0228478
        git remote add hnaz-mm https://github.com/hnaz/linux-mm
        git fetch --no-tags hnaz-mm master
        git checkout eaadd3a1784064254eb06b36fbd4b653f0228478
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv 

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 >>):

>> arch/riscv/lib/delay.c:77:3: error: implicit declaration of function 'cpu_relax' [-Werror,-Wimplicit-function-declaration]
                   cpu_relax();
                   ^
   1 error generated.


vim +/cpu_relax +77 arch/riscv/lib/delay.c

6d60b6ee0c9777 Palmer Dabbelt 2017-07-10  71  
6d60b6ee0c9777 Palmer Dabbelt 2017-07-10  72  void __delay(unsigned long cycles)
6d60b6ee0c9777 Palmer Dabbelt 2017-07-10  73  {
6d60b6ee0c9777 Palmer Dabbelt 2017-07-10  74  	u64 t0 = get_cycles();
6d60b6ee0c9777 Palmer Dabbelt 2017-07-10  75  
6d60b6ee0c9777 Palmer Dabbelt 2017-07-10  76  	while ((unsigned long)(get_cycles() - t0) < cycles)
6d60b6ee0c9777 Palmer Dabbelt 2017-07-10 @77  		cpu_relax();
6d60b6ee0c9777 Palmer Dabbelt 2017-07-10  78  }
24948b7ec0f31d Olof Johansson 2017-11-29  79  EXPORT_SYMBOL(__delay);
6d60b6ee0c9777 Palmer Dabbelt 2017-07-10  80  

:::::: The code at line 77 was first introduced by commit
:::::: 6d60b6ee0c9777b92c47f6dc8aad1dd90612e4fa RISC-V: Device, timer, IRQs, and the SBI

:::::: TO: Palmer Dabbelt <palmer@dabbelt.com>
:::::: CC: Palmer Dabbelt <palmer@dabbelt.com>

---
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: 33674 bytes --]

             reply	other threads:[~2021-11-05  7:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-05  7:11 kernel test robot [this message]
2021-11-05 13:25 ` [hnaz-mm:master 343/435] arch/riscv/lib/delay.c:77:3: error: implicit declaration of function 'cpu_relax' Andy Shevchenko

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=202111051510.ucX2TyQw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=hannes@cmpxchg.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    /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;
as well as URLs for NNTP newsgroup(s).