From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [peterz-queue:locking/atomics 7/13] include/linux/compiler.h:315:38: error: call to '__compiletime_assert_323' declared with attribute error: Unsupported access size for {READ, WRITE}_ONCE().
Date: Sat, 08 Feb 2020 06:09:39 +0800 [thread overview]
Message-ID: <202002080633.TiRHGuy7%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5349 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/atomics
head: 3c63b288c6c2a5f82e2c11e474e7f63902ed47ab
commit: 1b85c64eab21d1e277c1cc6643359380515ed525 [7/13] READ_ONCE: Enforce atomicity for {READ,WRITE}_ONCE() memory accesses
config: sparc-randconfig-a001-20200207 (attached as .config)
compiler: sparc-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1b85c64eab21d1e277c1cc6643359380515ed525
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:11:0,
from mm/gup.c:2:
mm/gup.c: In function 'follow_pmd_mask.isra.49':
>> include/linux/compiler.h:315:38: error: call to '__compiletime_assert_323' declared with attribute error: Unsupported access size for {READ,WRITE}_ONCE().
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:296:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler.h:315:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:328:2: note: in expansion of macro 'compiletime_assert'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:221:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
compiletime_assert_rwonce_type(x); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:225:22: note: in expansion of macro 'READ_ONCE_NOCHECK'
#define READ_ONCE(x) READ_ONCE_NOCHECK(x)
^~~~~~~~~~~~~~~~~
mm/gup.c:323:11: note: in expansion of macro 'READ_ONCE'
pmdval = READ_ONCE(*pmd);
^~~~~~~~~
include/linux/compiler.h:315:38: error: call to '__compiletime_assert_348' declared with attribute error: Unsupported access size for {READ,WRITE}_ONCE().
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:296:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler.h:315:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:328:2: note: in expansion of macro 'compiletime_assert'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:221:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
compiletime_assert_rwonce_type(x); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:225:22: note: in expansion of macro 'READ_ONCE_NOCHECK'
#define READ_ONCE(x) READ_ONCE_NOCHECK(x)
^~~~~~~~~~~~~~~~~
mm/gup.c:348:12: note: in expansion of macro 'READ_ONCE'
pmdval = READ_ONCE(*pmd);
^~~~~~~~~
vim +/__compiletime_assert_323 +315 include/linux/compiler.h
9a8ab1c39970a4 Daniel Santos 2013-02-21 301
9a8ab1c39970a4 Daniel Santos 2013-02-21 302 #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 303 __compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c39970a4 Daniel Santos 2013-02-21 304
9a8ab1c39970a4 Daniel Santos 2013-02-21 305 /**
9a8ab1c39970a4 Daniel Santos 2013-02-21 306 * compiletime_assert - break build and emit msg if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 307 * @condition: a compile-time constant condition to check
9a8ab1c39970a4 Daniel Santos 2013-02-21 308 * @msg: a message to emit if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 309 *
9a8ab1c39970a4 Daniel Santos 2013-02-21 310 * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 311 * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 312 * compiler has support to do so.
9a8ab1c39970a4 Daniel Santos 2013-02-21 313 */
9a8ab1c39970a4 Daniel Santos 2013-02-21 314 #define compiletime_assert(condition, msg) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 @315 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
9a8ab1c39970a4 Daniel Santos 2013-02-21 316
:::::: The code at line 315 was first introduced by commit
:::::: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG
:::::: TO: Daniel Santos <daniel.santos@pobox.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 23588 bytes --]
reply other threads:[~2020-02-07 22:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202002080633.TiRHGuy7%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 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.