public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Fri, 10 Nov 2023 05:53:57 +0800	[thread overview]
Message-ID: <202311100530.pjdNYUBV-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-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

                 reply	other threads:[~2023-11-09 21:54 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=202311100530.pjdNYUBV-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jpoimboe@kernel.org \
    --cc=llvm@lists.linux.dev \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox