All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Thu, 9 Nov 2023 13:30:09 +0800	[thread overview]
Message-ID: <202311091351.fO2QPxCn-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-11-09  5:30 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=202311091351.fO2QPxCn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jpoimboe@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.