From: kernel test robot <lkp@intel.com>
To: sylvain.bertrand@legeek.net, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com
Subject: Re: [PATCH] unlock patched C gccs
Date: Tue, 15 Dec 2020 06:54:39 +0800 [thread overview]
Message-ID: <202012150617.70NxJkOG-lkp@intel.com> (raw)
In-Reply-To: <48937guecrhuc8g89g8gqjk89jqkgrcg98g@freedom>
[-- Attachment #1: Type: text/plain, Size: 12619 bytes --]
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linux/master]
[also build test ERROR on kbuild/for-next linus/master v5.10]
[cannot apply to tip/locking/core next-20201214]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/sylvain-bertrand-legeek-net/unlock-patched-C-gccs/20201215-021711
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 09162bc32c880a791c6c0668ce0745cf7958f576
config: arm-randconfig-r022-20201214 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d38205144febf4dc42c9270c6aa3d978f1ef65e1)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/2a8dfb33ffef5f529b5e6b728aa8f69024165f47
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review sylvain-bertrand-legeek-net/unlock-patched-C-gccs/20201215-021711
git checkout 2a8dfb33ffef5f529b5e6b728aa8f69024165f47
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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 scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: implicit declaration of function '__generic' [-Werror,-Wimplicit-function-declaration]
return __READ_ONCE(*(unsigned long *)addr);
^
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:258:2: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), char, (char)0, \
^
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: expected expression
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:258:17: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), char, (char)0, \
^
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: expected expression
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:259:17: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), unsigned char, (unsigned char)0, \
^
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: expected expression
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:260:17: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), signed char, (unsigned char)0, \
^
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: expected expression
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:261:17: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), unsigned short, (unsigned short)0, \
^
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: expected expression
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:262:17: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), signed short, (signed short)0, \
^
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: expected expression
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:263:17: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), unsigned int, (unsigned int)0, \
^
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: expected expression
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:264:17: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), signed int, (signed int)0, \
^
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: expected expression
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:265:17: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), unsigned long, (unsigned long)0, \
^
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: expected expression
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:266:17: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), signed long, (signed long)0, \
^
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: expected expression
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:267:17: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), unsigned long long, (unsigned long long)0, \
^
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:6:
In file included from include/linux/compiler.h:246:
In file included from ./arch/arm/include/generated/asm/rwonce.h:1:
>> include/asm-generic/rwonce.h:67:9: error: expected expression
include/asm-generic/rwonce.h:44:42: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:268:17: note: expanded from macro '__unqual_scalar_typeof'
__generic((x), signed long long, (signed long long)0, \
^
12 errors generated.
make[2]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1196: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/__generic +67 include/asm-generic/rwonce.h
e506ea451254ab1 Will Deacon 2019-10-15 63
e506ea451254ab1 Will Deacon 2019-10-15 64 static __no_sanitize_or_inline
e506ea451254ab1 Will Deacon 2019-10-15 65 unsigned long __read_once_word_nocheck(const void *addr)
e506ea451254ab1 Will Deacon 2019-10-15 66 {
e506ea451254ab1 Will Deacon 2019-10-15 @67 return __READ_ONCE(*(unsigned long *)addr);
e506ea451254ab1 Will Deacon 2019-10-15 68 }
e506ea451254ab1 Will Deacon 2019-10-15 69
---
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: 37998 bytes --]
prev parent reply other threads:[~2020-12-14 22:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-14 17:51 sylvain.bertrand
2020-12-14 22:54 ` kernel test robot [this message]
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=202012150617.70NxJkOG-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sylvain.bertrand@legeek.net \
/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
all inboxes | Powered by JetHome®