* [freescale-fslc:5.12.x+fslc 4/6] drivers/misc/uboot_bootcount.c:65:16: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-05-15 2:58 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-15 2:58 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1945 bytes --]
tree: https://github.com/Freescale/linux-fslc 5.12.x+fslc
head: 533c005dbffa6950950622c514132d7b11c039bf
commit: 78c9cede1e8309fbce3522c4ec751d71e6cbd1d4 [4/6] drivers, misc: add U-Boot bootcount driver
config: powerpc64-randconfig-s031-20210515 (attached as .config)
compiler: powerpc-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-341-g8af24329-dirty
# https://github.com/Freescale/linux-fslc/commit/78c9cede1e8309fbce3522c4ec751d71e6cbd1d4
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.12.x+fslc
git checkout 78c9cede1e8309fbce3522c4ec751d71e6cbd1d4
# 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__' W=1 ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
iwyu warnings: (new ones prefixed by >>)
vim +65 drivers/misc/uboot_bootcount.c
48
49 static int store_str_bootcount(struct device *dev,
50 struct device_attribute *attr,
51 const char *buf,
52 size_t count)
53 {
54 int r;
55 u32 value;
56
57 r = kstrtou32(buf, 0, &value);
58 if (r < 0)
59 return -EINVAL;
60
61 if (single_register)
62 value = (UBOOT_BOOTCOUNT_MAGIC & UBOOT_BOOTCOUNT_MAGIC_MASK) |
63 (value & UBOOT_BOOTCOUNT_COUNT_MASK);
64
> 65 writel(cpu_to_be32(value), mem);
66
67 return count;
68 }
69
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 23532 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-15 2:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-15 2:58 [freescale-fslc:5.12.x+fslc 4/6] drivers/misc/uboot_bootcount.c:65:16: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.