* [linux-next:master 4765/6512] drivers/iommu/sprd-iommu.c:456:42: sparse: sparse: Using plain integer as NULL pointer
@ 2021-03-23 10:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-23 10:06 UTC (permalink / raw)
To: Chunyan Zhang; +Cc: kbuild-all, Linux Memory Management List, Joerg Roedel
[-- Attachment #1: Type: text/plain, Size: 6059 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d949689e7383cd5271470f2b99dbe2fd3199bffd
commit: b23e4fc4e3faed0b8b604079c44a244da3ec941a [4765/6512] iommu: add Unisoc IOMMU basic driver
config: m68k-randconfig-s032-20210323 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.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.3-277-gc089cd2d-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b23e4fc4e3faed0b8b604079c44a244da3ec941a
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout b23e4fc4e3faed0b8b604079c44a244da3ec941a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/iommu/sprd-iommu.c:456:42: sparse: sparse: Using plain integer as NULL pointer
drivers/iommu/sprd-iommu.c: note: in included file (through arch/m68k/include/asm/io.h, include/linux/scatterlist.h, include/linux/dma-mapping.h):
include/asm-generic/io.h:299:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:9: sparse: expected unsigned int volatile [usertype]
include/asm-generic/io.h:299:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:299:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:9: sparse: expected unsigned int volatile [usertype]
include/asm-generic/io.h:299:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:299:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:9: sparse: expected unsigned int volatile [usertype]
include/asm-generic/io.h:299:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:299:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:9: sparse: expected unsigned int volatile [usertype]
include/asm-generic/io.h:299:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:299:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:9: sparse: expected unsigned int volatile [usertype]
include/asm-generic/io.h:299:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:299:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:9: sparse: expected unsigned int volatile [usertype]
include/asm-generic/io.h:299:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:299:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:9: sparse: expected unsigned int volatile [usertype]
include/asm-generic/io.h:299:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:299:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:9: sparse: expected unsigned int volatile [usertype]
include/asm-generic/io.h:299:9: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
vim +456 drivers/iommu/sprd-iommu.c
446
447 /*
448 * Clock is not required, access to some of IOMMUs is controlled by gate
449 * clk, enabled clocks for that kind of IOMMUs before accessing.
450 * Return 0 for success or no clocks found.
451 */
452 static int sprd_iommu_clk_enable(struct sprd_iommu_device *sdev)
453 {
454 struct clk *eb;
455
> 456 eb = clk_get_optional(sdev->dev, 0);
457 if (!eb)
458 return 0;
459
460 if (IS_ERR(eb))
461 return PTR_ERR(eb);
462
463 sdev->eb = eb;
464 return clk_prepare_enable(eb);
465 }
466
---
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: 32698 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-23 10:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 10:06 [linux-next:master 4765/6512] drivers/iommu/sprd-iommu.c:456:42: sparse: sparse: Using plain integer as NULL pointer 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