public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [jpoimboe:sframe 9/10] kernel/unwind/user.c:12:2: warning: implicit conversion from 'unsigned long' to 's32' (aka 'int') changes value from 18446744073709551600 to -16
@ 2023-11-09 21:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-09 21:53 UTC (permalink / raw)
  To: Josh Poimboeuf; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git sframe
head:   ec004e900e02c9c85cf8c89d4c26d4168a6c5d18
commit: 09460e60dd1c2f8ea1abb8d9188195db699ce76f [9/10] unwind: Introduce SFrame user space unwinding
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231110/202311100530.pjdNYUBV-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231110/202311100530.pjdNYUBV-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/202311100530.pjdNYUBV-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> kernel/unwind/user.c:12:2: warning: implicit conversion from 'unsigned long' to 's32' (aka 'int') changes value from 18446744073709551600 to -16 [-Wconstant-conversion]
           ARCH_INIT_USER_FP_FRAME
           ^~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/user_unwind.h:8:26: note: expanded from macro 'ARCH_INIT_USER_FP_FRAME'
           .fp_off         = sizeof(long) * -2,                            \
                             ~~~~~~~~~~~~~^~~~
   kernel/unwind/user.c:12:2: warning: implicit conversion from 'unsigned long' to 's32' (aka 'int') changes value from 18446744073709551608 to -8 [-Wconstant-conversion]
           ARCH_INIT_USER_FP_FRAME
           ^~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/user_unwind.h:6:26: note: expanded from macro 'ARCH_INIT_USER_FP_FRAME'
           .ra_off         = sizeof(long) * -1,                            \
                             ~~~~~~~~~~~~~^~~~
   2 warnings generated.


vim +12 kernel/unwind/user.c

bd5cff471e67cf Josh Poimboeuf 2023-11-07  10  
bd5cff471e67cf Josh Poimboeuf 2023-11-07  11  static struct user_unwind_frame fp_frame = {
bd5cff471e67cf Josh Poimboeuf 2023-11-07 @12  	ARCH_INIT_USER_FP_FRAME
bd5cff471e67cf Josh Poimboeuf 2023-11-07  13  };
bd5cff471e67cf Josh Poimboeuf 2023-11-07  14  

:::::: The code at line 12 was first introduced by commit
:::::: bd5cff471e67cf8d2b2d3bd8db35007ccc86f6a4 unwind: Introduce generic user space unwinding interfaces

:::::: TO: Josh Poimboeuf <jpoimboe@kernel.org>
:::::: CC: Josh Poimboeuf <jpoimboe@kernel.org>

-- 
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:[~2023-11-09 21:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-09 21:53 [jpoimboe:sframe 9/10] kernel/unwind/user.c:12:2: warning: implicit conversion from 'unsigned long' to 's32' (aka 'int') changes value from 18446744073709551600 to -16 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