mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/spi/spi-fsl-dspi.c:261:17: sparse: sparse: incorrect type in assignment (different base types)
@ 2020-05-27 20:16 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-27 20:16 UTC (permalink / raw)
  To: Vladimir Oltean; +Cc: kbuild-all, linux-kernel, Mark Brown

[-- Attachment #1: Type: text/plain, Size: 2410 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b0c3ba31be3e45a130e13b278cf3b90f69bda6f6
commit: 6c1c26ecd9a31c24f9ea7dfb174528141dd32361 spi: spi-fsl-dspi: Accelerate transfers using larger word size if possible
date:   3 months ago
config: arm64-randconfig-s031-20200527 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-240-gf0fe1cd9-dirty
        git checkout 6c1c26ecd9a31c24f9ea7dfb174528141dd32361
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

>> drivers/spi/spi-fsl-dspi.c:261:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/spi/spi-fsl-dspi.c:261:17: sparse:     expected unsigned int [usertype]
   drivers/spi/spi-fsl-dspi.c:261:17: sparse:     got restricted __be32 [usertype]
   drivers/spi/spi-fsl-dspi.c:267:28: sparse: sparse: cast to restricted __be32
>> drivers/spi/spi-fsl-dspi.c:273:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be16 [usertype] @@
   drivers/spi/spi-fsl-dspi.c:273:17: sparse:     expected unsigned int [usertype]
   drivers/spi/spi-fsl-dspi.c:273:17: sparse:     got restricted __be16 [usertype]
   drivers/spi/spi-fsl-dspi.c:279:28: sparse: sparse: cast to restricted __be16

vim +261 drivers/spi/spi-fsl-dspi.c

   258	
   259	static void dspi_8on32_host_to_dev(struct fsl_dspi *dspi, u32 *txdata)
   260	{
 > 261		*txdata = cpu_to_be32(*(u32 *)dspi->tx);
   262		dspi->tx += sizeof(u32);
   263	}
   264	
   265	static void dspi_8on32_dev_to_host(struct fsl_dspi *dspi, u32 rxdata)
   266	{
   267		*(u32 *)dspi->rx = be32_to_cpu(rxdata);
   268		dspi->rx += sizeof(u32);
   269	}
   270	
   271	static void dspi_8on16_host_to_dev(struct fsl_dspi *dspi, u32 *txdata)
   272	{
 > 273		*txdata = cpu_to_be16(*(u16 *)dspi->tx);
   274		dspi->tx += sizeof(u16);
   275	}
   276	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42984 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-27 20:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27 20:16 drivers/spi/spi-fsl-dspi.c:261:17: sparse: sparse: incorrect type in assignment (different base types) kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®