From: kernel test robot <lkp@intel.com>
To: Arvind Sankar <nivedita@alum.mit.edu>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Nick Desaulniers <ndesaulniers@google.com>,
Kees Cook <keescook@chromium.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [linux-next:master 2035/2472] include/asm-generic/barrier.h:78:18: error: implicit declaration of function 'barrier'
Date: Sat, 31 Oct 2020 21:07:11 +0800 [thread overview]
Message-ID: <202010312104.Dk9VQJYb-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2818 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 4e78c578cb987725eef1cec7d11b6437109e9a49
commit: b9de06783f01100a2d2fb2864e6f2a802b7bc57f [2035/2472] compiler.h: fix barrier_data() on clang
config: alpha-defconfig (attached as .config)
compiler: alpha-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/next/linux-next.git/commit/?id=b9de06783f01100a2d2fb2864e6f2a802b7bc57f
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 b9de06783f01100a2d2fb2864e6f2a802b7bc57f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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 >>):
In file included from arch/alpha/include/asm/barrier.h:21,
from arch/alpha/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/dcache.h:5,
from fs/nfs/export.c:7:
arch/alpha/include/asm/atomic.h: In function 'atomic_add_return_relaxed':
>> include/asm-generic/barrier.h:78:18: error: implicit declaration of function 'barrier' [-Werror=implicit-function-declaration]
78 | #define smp_mb() barrier()
| ^~~~~~~
arch/alpha/include/asm/atomic.h:72:2: note: in expansion of macro 'smp_mb'
72 | smp_mb(); \
| ^~~~~~
arch/alpha/include/asm/atomic.h:149:2: note: in expansion of macro 'ATOMIC_OP_RETURN'
149 | ATOMIC_OP_RETURN(op, op##l) \
| ^~~~~~~~~~~~~~~~
arch/alpha/include/asm/atomic.h:155:1: note: in expansion of macro 'ATOMIC_OPS'
155 | ATOMIC_OPS(add)
| ^~~~~~~~~~
cc1: some warnings being treated as errors
vim +/barrier +78 include/asm-generic/barrier.h
0890a264794f33d Linus Torvalds 2015-07-01 76
470c27e4695add2 Vineet Gupta 2015-03-11 77 #ifndef smp_mb
885df91ca3571af David Howells 2012-03-28 @78 #define smp_mb() barrier()
470c27e4695add2 Vineet Gupta 2015-03-11 79 #endif
470c27e4695add2 Vineet Gupta 2015-03-11 80
:::::: The code at line 78 was first introduced by commit
:::::: 885df91ca3571afd4b3f50f3391329bbf3c9e262 Create asm-generic/barrier.h
:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.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: 13867 bytes --]
next reply other threads:[~2020-10-31 13:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-31 13:07 kernel test robot [this message]
2020-11-01 17:31 ` [PATCH] compiler.h: Move barrier() back into compiler-*.h Arvind Sankar
2020-11-01 17:38 ` Matthew Wilcox
2020-11-01 17:48 ` Randy Dunlap
2020-11-01 17:53 ` Matthew Wilcox
2020-11-01 19:51 ` Arvind Sankar
2020-11-01 19:52 ` Matthew Wilcox
2020-11-01 19:59 ` Arvind Sankar
2020-11-01 20:40 ` Randy Dunlap
2020-11-01 21:59 ` Stephen Rothwell
2020-11-01 21:56 ` Stephen Rothwell
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=202010312104.Dk9VQJYb-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=kbuild-all@lists.01.org \
--cc=keescook@chromium.org \
--cc=linux-mm@kvack.org \
--cc=ndesaulniers@google.com \
--cc=nivedita@alum.mit.edu \
/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