All of lore.kernel.org
 help / color / mirror / Atom feed
* [jpoimboe:sframe 9/10] arch/x86/include/asm/user_unwind.h:6:27: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073709551608' to '-8'
@ 2023-11-09  5:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-09  5:30 UTC (permalink / raw)
  To: Josh Poimboeuf; +Cc: 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-buildonly-randconfig-006-20231109 (https://download.01.org/0day-ci/archive/20231109/202311091351.fO2QPxCn-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231109/202311091351.fO2QPxCn-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/202311091351.fO2QPxCn-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from kernel/unwind/user.c:9:
>> arch/x86/include/asm/user_unwind.h:6:27: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073709551608' to '-8' [-Woverflow]
       6 |         .ra_off         = sizeof(long) * -1,                            \
         |                           ^~~~~~
   kernel/unwind/user.c:12:9: note: in expansion of macro 'ARCH_INIT_USER_FP_FRAME'
      12 |         ARCH_INIT_USER_FP_FRAME
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/user_unwind.h:8:27: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073709551600' to '-16' [-Woverflow]
       8 |         .fp_off         = sizeof(long) * -2,                            \
         |                           ^~~~~~
   kernel/unwind/user.c:12:9: note: in expansion of macro 'ARCH_INIT_USER_FP_FRAME'
      12 |         ARCH_INIT_USER_FP_FRAME
         |         ^~~~~~~~~~~~~~~~~~~~~~~


vim +6 arch/x86/include/asm/user_unwind.h

28efef61435d2fb Josh Poimboeuf 2023-11-07   4  
28efef61435d2fb Josh Poimboeuf 2023-11-07   5  #define ARCH_INIT_USER_FP_FRAME						\
28efef61435d2fb Josh Poimboeuf 2023-11-07  @6  	.ra_off		= sizeof(long) * -1,				\
28efef61435d2fb Josh Poimboeuf 2023-11-07   7  	.cfa_off	= sizeof(long) * 2,				\
28efef61435d2fb Josh Poimboeuf 2023-11-07   8  	.fp_off		= sizeof(long) * -2,				\
28efef61435d2fb Josh Poimboeuf 2023-11-07   9  	.use_fp		= true,
28efef61435d2fb Josh Poimboeuf 2023-11-07  10  

:::::: The code at line 6 was first introduced by commit
:::::: 28efef61435d2fbb42bf26277adae0c630e05cf4 unwind/x86: Add HAVE_USER_UNWIND

:::::: 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  5:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-09  5:30 [jpoimboe:sframe 9/10] arch/x86/include/asm/user_unwind.h:6:27: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073709551608' to '-8' kernel test robot

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.