All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: kbuild-all@01.org, linux-arm-kernel@lists.infradead.org
Subject: [nomadik:ixp4 5/47] drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16
Date: Tue, 19 Mar 2019 19:28:27 +0800	[thread overview]
Message-ID: <201903191923.dSWwvUam%lkp@intel.com> (raw)

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

                 reply	other threads:[~2019-03-19 11:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201903191923.dSWwvUam%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.