public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: James Smart <jsmart2021@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	Justin Tee <justin.tee@broadcom.com>
Subject: arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (369 becomes 69)
Date: Sat, 16 Jul 2022 07:37:43 +0800	[thread overview]
Message-ID: <202207160705.E13ZH3rE-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9b59ec8d50a1f28747ceff9a4f39af5deba9540e
commit: 17b27ac5922454ff7de91cbed458643608c36abc scsi: lpfc: Add rx monitoring statistics
date:   11 months ago
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220716/202207160705.E13ZH3rE-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=17b27ac5922454ff7de91cbed458643608c36abc
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 17b27ac5922454ff7de91cbed458643608c36abc
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/cpufreq/ drivers/irqchip/ drivers/scsi/hisi_sas/ drivers/scsi/lpfc/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
   drivers/scsi/lpfc/lpfc_init.c: note: in included file:
   drivers/scsi/lpfc/lpfc_ids.h:26:28: sparse: sparse: symbol 'lpfc_id_table' was not declared. Should it be static?
   drivers/scsi/lpfc/lpfc_init.c:145:40: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/scsi/lpfc/lpfc_init.c:145:40: sparse:     expected unsigned int [usertype]
   drivers/scsi/lpfc/lpfc_init.c:145:40: sparse:     got restricted __be32 [usertype]
   drivers/scsi/lpfc/lpfc_init.c:385:27: sparse: sparse: restricted __be32 degrades to integer
   drivers/scsi/lpfc/lpfc_init.c:390:34: sparse: sparse: restricted __be32 degrades to integer
   drivers/scsi/lpfc/lpfc_init.c:4442:24: sparse: sparse: cast to restricted __be64
   drivers/scsi/lpfc/lpfc_init.c:4442:24: sparse: sparse: cast to restricted __be64
   drivers/scsi/lpfc/lpfc_init.c:4442:24: sparse: sparse: cast to restricted __be64
   drivers/scsi/lpfc/lpfc_init.c:4442:24: sparse: sparse: cast to restricted __be64
   drivers/scsi/lpfc/lpfc_init.c:4442:24: sparse: sparse: cast to restricted __be64
   drivers/scsi/lpfc/lpfc_init.c:4442:24: sparse: sparse: cast to restricted __be64
   drivers/scsi/lpfc/lpfc_init.c:4442:24: sparse: sparse: cast to restricted __be64
   drivers/scsi/lpfc/lpfc_init.c:4442:24: sparse: sparse: cast to restricted __be64
   drivers/scsi/lpfc/lpfc_init.c:4442:24: sparse: sparse: cast to restricted __be64
   drivers/scsi/lpfc/lpfc_init.c:4442:24: sparse: sparse: cast to restricted __be64
   drivers/scsi/lpfc/lpfc_init.c:6111:32: sparse: sparse: Using plain integer as NULL pointer
   drivers/scsi/lpfc/lpfc_init.c:7518:21: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [addressable] [usertype] wwn @@     got restricted __be64 [usertype] @@
   drivers/scsi/lpfc/lpfc_init.c:7518:21: sparse:     expected unsigned long long [addressable] [usertype] wwn
   drivers/scsi/lpfc/lpfc_init.c:7518:21: sparse:     got restricted __be64 [usertype]
   drivers/scsi/lpfc/lpfc_init.c:7523:21: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned long long [addressable] [usertype] wwn @@     got restricted __be64 [usertype] @@
   drivers/scsi/lpfc/lpfc_init.c:7523:21: sparse:     expected unsigned long long [addressable] [usertype] wwn
   drivers/scsi/lpfc/lpfc_init.c:7523:21: sparse:     got restricted __be64 [usertype]
   drivers/scsi/lpfc/lpfc_init.c:13866:24: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13866:24: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13866:24: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13866:24: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13866:24: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13866:24: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13867:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13867:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13867:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13867:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13867:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13867:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13868:15: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13868:15: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13868:15: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13868:15: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13868:15: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13868:15: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13869:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13869:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13869:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13869:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13869:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c:13869:17: sparse: sparse: cast to restricted __be32
   drivers/scsi/lpfc/lpfc_init.c: note: in included file (through arch/arm64/include/asm/atomic.h, include/linux/atomic.h, include/asm-generic/bitops/atomic.h, ...):
>> arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (369 becomes 69)

vim +88 arch/arm64/include/asm/cmpxchg.h

10b663aef1c2479 Catalin Marinas 2012-03-05  84  
305d454aaa292be Will Deacon     2015-10-08  85  __XCHG_GEN()
305d454aaa292be Will Deacon     2015-10-08  86  __XCHG_GEN(_acq)
305d454aaa292be Will Deacon     2015-10-08  87  __XCHG_GEN(_rel)
305d454aaa292be Will Deacon     2015-10-08 @88  __XCHG_GEN(_mb)
305d454aaa292be Will Deacon     2015-10-08  89  

:::::: The code at line 88 was first introduced by commit
:::::: 305d454aaa292be3a09a9d674e6c35f5b4249a13 arm64: atomics: implement native {relaxed, acquire, release} atomics

:::::: TO: Will Deacon <will.deacon@arm.com>
:::::: CC: Catalin Marinas <catalin.marinas@arm.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

             reply	other threads:[~2022-07-15 23:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-15 23:37 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-07-14  4:45 arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (369 becomes 69) kernel test robot

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=202207160705.E13ZH3rE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jsmart2021@gmail.com \
    --cc=justin.tee@broadcom.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /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