From: kbuild test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: kbuild-all@01.org, Stafford Horne <shorne@gmail.com>,
Will Deacon <will.deacon@arm.com>,
Paul McKenney <paulmck@linux.vnet.ibm.com>,
Jonas Bonn <jonas@southpole.se>,
Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>,
David Howells <dhowells@redhat.com>,
Arnd Bergmann <arnd@arndb.de>,
linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: asm-generic: Disallow no-op mb() for SMP systems
Date: Sat, 3 Feb 2018 03:14:01 +0800 [thread overview]
Message-ID: <201802030203.kIXRmGUe%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180131130034.GR2269@hirez.programming.kicks-ass.net>
[-- Attachment #1: Type: text/plain, Size: 3964 bytes --]
Hi Peter,
I love your patch! Yet something to improve:
[auto build test ERROR on asm-generic/master]
[also build test ERROR on v4.15 next-20180202]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Peter-Zijlstra/asm-generic-Disallow-no-op-mb-for-SMP-systems/20180203-000108
base: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master
config: mn10300-asb2364_defconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=mn10300
All errors (new ones prefixed by >>):
warning: (MN10300) selects HAVE_NMI_WATCHDOG which has unmet direct dependencies (HAVE_NMI)
warning: (MN10300) selects HAVE_NMI_WATCHDOG which has unmet direct dependencies (HAVE_NMI)
In file included from ./arch/mn10300/include/generated/asm/barrier.h:1:0,
from arch/mn10300/include/asm/bitops.h:21,
from include/linux/bitops.h:36,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from arch/mn10300/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from arch/mn10300/include/asm/current.h:14,
from include/linux/sched.h:11,
from arch/mn10300/kernel/asm-offsets.c:7:
include/asm-generic/atomic-long.h: In function 'atomic_long_read_acquire':
>> include/asm-generic/barrier.h:64:20: error: implicit declaration of function 'mb'; did you mean 'rmb'? [-Werror=implicit-function-declaration]
#define __smp_mb() mb()
^
include/asm-generic/barrier.h:143:2: note: in expansion of macro '__smp_mb'
__smp_mb(); \
^~~~~~~~
include/asm-generic/barrier.h:167:29: note: in expansion of macro '__smp_load_acquire'
#define smp_load_acquire(p) __smp_load_acquire(p)
^~~~~~~~~~~~~~~~~~
include/linux/atomic.h:26:34: note: in expansion of macro 'smp_load_acquire'
#define atomic_read_acquire(v) smp_load_acquire(&(v)->counter)
^~~~~~~~~~~~~~~~
include/asm-generic/atomic-long.h:33:28: note: in expansion of macro 'atomic_read_acquire'
#define ATOMIC_LONG_PFX(x) atomic ## x
^~~~~~
include/asm-generic/atomic-long.h:42:15: note: in expansion of macro 'ATOMIC_LONG_PFX'
return (long)ATOMIC_LONG_PFX(_read##mo)(v); \
^~~~~~~~~~~~~~~
include/asm-generic/atomic-long.h:45:1: note: in expansion of macro 'ATOMIC_LONG_READ_OP'
ATOMIC_LONG_READ_OP(_acquire)
^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [arch/mn10300/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2
vim +64 include/asm-generic/barrier.h
885df91c David Howells 2012-03-28 62
a9e4252a Michael S. Tsirkin 2015-12-27 63 #ifndef __smp_mb
a9e4252a Michael S. Tsirkin 2015-12-27 @64 #define __smp_mb() mb()
a9e4252a Michael S. Tsirkin 2015-12-27 65 #endif
a9e4252a Michael S. Tsirkin 2015-12-27 66
:::::: The code at line 64 was first introduced by commit
:::::: a9e4252a9b147043142282ebb65da94dcb951e2a asm-generic: add __smp_xxx wrappers
:::::: TO: Michael S. Tsirkin <mst@redhat.com>
:::::: CC: Michael S. Tsirkin <mst@redhat.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 9403 bytes --]
next prev parent reply other threads:[~2018-02-02 19:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-31 13:00 Peter Zijlstra
2018-01-31 13:17 ` Will Deacon
2018-01-31 13:26 ` Peter Zijlstra
2018-02-01 12:27 ` Stafford Horne
2018-02-01 13:29 ` Peter Zijlstra
2018-02-01 13:32 ` Will Deacon
2018-02-01 13:53 ` Peter Zijlstra
2018-02-01 15:39 ` Will Deacon
2018-02-01 15:50 ` Peter Zijlstra
2018-02-01 15:52 ` Peter Zijlstra
2018-02-02 13:48 ` Stafford Horne
2018-02-02 19:14 ` kbuild test robot [this message]
2018-02-03 11:43 ` Peter Zijlstra
2018-02-02 20:00 ` kbuild test robot
2018-02-02 20:25 ` Peter Zijlstra
2018-02-02 21:08 ` Alan Cox
2018-02-03 11:42 ` Peter Zijlstra
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=201802030203.kIXRmGUe%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=dhowells@redhat.com \
--cc=jonas@southpole.se \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
--cc=peterz@infradead.org \
--cc=shorne@gmail.com \
--cc=stefan.kristiansson@saunalahti.fi \
--cc=tglx@linutronix.de \
--cc=will.deacon@arm.com \
/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
Powered by JetHome