* [nomadik:ixp4 5/47] drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
@ 2019-03-19 11:28 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-03-19 11:28 UTC (permalink / raw)
To: Linus Walleij; +Cc: kbuild-all, linux-arm-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ixp4
head: 4ad185a5d819c08dcf11f0e0db38a8b0fd5d9081
commit: 1b03afbf7272735af1d6bbd3c7e42d418bed40b4 [5/47] mtd: physmap_of: add a hook for Intel IXP4xx flash probing
reproduce:
# apt-get install sparse
git checkout 1b03afbf7272735af1d6bbd3c7e42d418bed40b4
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
sparse warnings: (new ones prefixed by >>)
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
>> drivers/mtd/maps/physmap-ixp4xx.c:47:22: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [unsigned] val @@ got resunsigned short [unsigned] val @@
drivers/mtd/maps/physmap-ixp4xx.c:47:22: expected unsigned short [unsigned] val
drivers/mtd/maps/physmap-ixp4xx.c:47:22: got restricted __be16 [usertype] <noident>
vim +42 drivers/mtd/maps/physmap-ixp4xx.c
39
40 static inline u16 flash_read16(void __iomem *addr)
41 {
> 42 return be16_to_cpu(__raw_readw((void __iomem *)((unsigned long)addr ^ 0x2)));
43 }
44
45 static inline void flash_write16(u16 d, void __iomem *addr)
46 {
> 47 __raw_writew(cpu_to_be16(d), (void __iomem *)((unsigned long)addr ^ 0x2));
48 }
49
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-03-19 11:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-19 11:28 [nomadik:ixp4 5/47] drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 kbuild 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.