llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [alexshi:master 1/1] arch/x86/kernel/ptrace.c:245:2: error: call to '__compiletime_assert_364' declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct pt_regs, r15) != 0
@ 2024-01-27  1:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-27  1:51 UTC (permalink / raw)
  To: Alex Shi; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/alexshi/linux.git master
head:   80997c8b66fd8d73a96cd681a473bacaf75b7d98
commit: 80997c8b66fd8d73a96cd681a473bacaf75b7d98 [1/1] x86/ptrace: move down unused registers
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240127/202401270930.gM767yEo-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240127/202401270930.gM767yEo-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401270930.gM767yEo-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/x86/kernel/ptrace.c:245:2: error: call to '__compiletime_assert_364' declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct pt_regs, r15) != 0
     245 |         BUILD_BUG_ON(offsetof(struct pt_regs, r15) != 0);
         |         ^
   include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^
   include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^
   include/linux/compiler_types.h:435:2: note: expanded from macro 'compiletime_assert'
     435 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^
   include/linux/compiler_types.h:423:2: note: expanded from macro '_compiletime_assert'
     423 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ^
   include/linux/compiler_types.h:416:4: note: expanded from macro '__compiletime_assert'
     416 |                         prefix ## suffix();                             \
         |                         ^
   <scratch space>:147:1: note: expanded from here
     147 | __compiletime_assert_364
         | ^
>> arch/x86/kernel/ptrace.c:245:2: error: call to '__compiletime_assert_364' declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct pt_regs, r15) != 0
   include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^
   include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^
   include/linux/compiler_types.h:435:2: note: expanded from macro 'compiletime_assert'
     435 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^
   include/linux/compiler_types.h:423:2: note: expanded from macro '_compiletime_assert'
     423 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ^
   include/linux/compiler_types.h:416:4: note: expanded from macro '__compiletime_assert'
     416 |                         prefix ## suffix();                             \
         |                         ^
   <scratch space>:147:1: note: expanded from here
     147 | __compiletime_assert_364
         | ^
>> arch/x86/kernel/ptrace.c:245:2: error: call to '__compiletime_assert_364' declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct pt_regs, r15) != 0
   include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^
   include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^
   include/linux/compiler_types.h:435:2: note: expanded from macro 'compiletime_assert'
     435 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^
   include/linux/compiler_types.h:423:2: note: expanded from macro '_compiletime_assert'
     423 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ^
   include/linux/compiler_types.h:416:4: note: expanded from macro '__compiletime_assert'
     416 |                         prefix ## suffix();                             \
         |                         ^
   <scratch space>:147:1: note: expanded from here
     147 | __compiletime_assert_364
         | ^
   3 errors generated.


vim +245 arch/x86/kernel/ptrace.c

2047b08be67b70 Roland McGrath 2008-01-30  242  
2047b08be67b70 Roland McGrath 2008-01-30  243  static unsigned long *pt_regs_access(struct pt_regs *regs, unsigned long offset)
2047b08be67b70 Roland McGrath 2008-01-30  244  {
2047b08be67b70 Roland McGrath 2008-01-30 @245  	BUILD_BUG_ON(offsetof(struct pt_regs, r15) != 0);
2047b08be67b70 Roland McGrath 2008-01-30  246  	return &regs->r15 + (offset / sizeof(regs->r15));
2047b08be67b70 Roland McGrath 2008-01-30  247  }
2047b08be67b70 Roland McGrath 2008-01-30  248  

:::::: The code at line 245 was first introduced by commit
:::::: 2047b08be67b70875d8765fc81d34ce28041bec3 x86: x86 ptrace getreg/putreg merge

:::::: TO: Roland McGrath <roland@redhat.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

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

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

only message in thread, other threads:[~2024-01-27  1:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-27  1:51 [alexshi:master 1/1] arch/x86/kernel/ptrace.c:245:2: error: call to '__compiletime_assert_364' declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct pt_regs, r15) != 0 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).