Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [stefandoesinger-zx297520:dlink 70/120] drivers/spi/spi-zx.c:477:17: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551614 to 4294967294
@ 2026-06-23 13:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-23 13:13 UTC (permalink / raw)
  To: Stefan Dösinger ; +Cc: llvm, oe-kbuild-all

tree:   https://gitlab.com/stefandoesinger/zx297520-kernel dlink
head:   e837c4a4d860d6896e61ca44c5bac69b2500abcc
commit: 679817917e82e5c1fc5cddd6add8729171bcfc4e [70/120] zx29 qspi driver
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20260623/202606232147.eVluRCks-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260623/202606232147.eVluRCks-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/202606232147.eVluRCks-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/spi/spi-zx.c:477:17: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551614 to 4294967294 [-Wconstant-conversion]
     477 |         writel_relaxed(~ZX_QSPI_EN, qspi->io_base + ZX_QSPI_EN_REG);
         |         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/io.h:88:39: note: expanded from macro 'writel_relaxed'
      88 | #define writel_relaxed(v, a) __writel(v, a)
         |                              ~~~~~~~~ ^
   1 warning generated.


vim +477 drivers/spi/spi-zx.c

   473	
   474	static void zx_qspi_remove(struct platform_device *pdev)
   475	{
   476		struct zx_qspi *qspi = platform_get_drvdata(pdev);
 > 477		writel_relaxed(~ZX_QSPI_EN, qspi->io_base + ZX_QSPI_EN_REG);
   478	}
   479	

--
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:[~2026-06-23 13:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23 13:13 [stefandoesinger-zx297520:dlink 70/120] drivers/spi/spi-zx.c:477:17: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551614 to 4294967294 kernel test robot

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