oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.15 1/2] include/linux/compiler_types.h:334:45: error: call to '__compiletime_assert_814' declared with attribute error: BUILD_BUG_ON failed: sizeof(*payload) != sizeof(prep->payload.data)
@ 2023-02-12 14:05 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-12 14:05 UTC (permalink / raw)
  To: cros-kernel-buildreports, Guenter Roeck; +Cc: oe-kbuild-all

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15
head:   abd7d8e9a3be86fadf24b543e7bb6662399add0f
commit: 98c91ee9e6cbcd3e502ec11d983461379831d479 [1/2] BACKPORT: big_keys: Use struct for internal payload
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230212/202302122216.l4300ZjF-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
        git fetch --no-tags chrome-os chromeos-5.15
        git checkout 98c91ee9e6cbcd3e502ec11d983461379831d479
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302122216.l4300ZjF-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from <command-line>:
   security/keys/big_key.c: In function 'big_key_preparse':
>> include/linux/compiler_types.h:334:45: error: call to '__compiletime_assert_814' declared with attribute error: BUILD_BUG_ON failed: sizeof(*payload) != sizeof(prep->payload.data)
     334 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                             ^
   include/linux/compiler_types.h:315:25: note: in definition of macro '__compiletime_assert'
     315 |                         prefix ## suffix();                             \
         |                         ^~~~~~
   include/linux/compiler_types.h:334:9: note: in expansion of macro '_compiletime_assert'
     334 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   security/keys/big_key.c:67:9: note: in expansion of macro 'BUILD_BUG_ON'
      67 |         BUILD_BUG_ON(sizeof(*payload) != sizeof(prep->payload.data));
         |         ^~~~~~~~~~~~


vim +/__compiletime_assert_814 +334 include/linux/compiler_types.h

eb5c2d4b45e3d2 Will Deacon 2020-07-21  320  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  321  #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21  322  	__compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  323  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  324  /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21  325   * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  326   * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21  327   * @msg:       a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  328   *
eb5c2d4b45e3d2 Will Deacon 2020-07-21  329   * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  330   * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  331   * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21  332   */
eb5c2d4b45e3d2 Will Deacon 2020-07-21  333  #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @334  	_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  335  

:::::: The code at line 334 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h

:::::: TO: Will Deacon <will@kernel.org>
:::::: CC: Will Deacon <will@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-12 14:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-12 14:05 [chrome-os:chromeos-5.15 1/2] include/linux/compiler_types.h:334:45: error: call to '__compiletime_assert_814' declared with attribute error: BUILD_BUG_ON failed: sizeof(*payload) != sizeof(prep->payload.data) kernel test robot

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