mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Xiangliang Yu <Xiangliang.Yu@amd.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Jon Mason <jdmason@kudzu.us>, Allen Hubbe <Allen.Hubbe@emc.com>
Subject: drivers/ntb/hw/amd/ntb_hw_amd.c:367:29: sparse: cast removes address space of expression
Date: Sat, 19 Mar 2016 22:58:30 +0800	[thread overview]
Message-ID: <201603192227.ijrPiZDJ%fengguang.wu@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   6b5f04b6cf8ebab9a65d9c0026c650bb2538fd0f
commit: a1b3695820aa490e58915d720a1438069813008b NTB: Add support for AMD PCI-Express Non-Transparent Bridge
date:   8 weeks ago
reproduce:
        # apt-get install sparse
        git checkout a1b3695820aa490e58915d720a1438069813008b
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/ntb/hw/amd/ntb_hw_amd.c:367:29: sparse: cast removes address space of expression
   drivers/ntb/hw/amd/ntb_hw_amd.c:427:31: sparse: cast removes address space of expression

vim +367 drivers/ntb/hw/amd/ntb_hw_amd.c

   351	
   352		spin_lock_irqsave(&ndev->db_mask_lock, flags);
   353		ndev->db_mask &= ~db_bits;
   354		writew((u16)ndev->db_mask, mmio + AMD_DBMASK_OFFSET);
   355		spin_unlock_irqrestore(&ndev->db_mask_lock, flags);
   356	
   357		return 0;
   358	}
   359	
   360	static int amd_ntb_peer_db_addr(struct ntb_dev *ntb,
   361					phys_addr_t *db_addr,
   362					resource_size_t *db_size)
   363	{
   364		struct amd_ntb_dev *ndev = ntb_ndev(ntb);
   365	
   366		if (db_addr)
 > 367			*db_addr = (phys_addr_t)(ndev->peer_mmio + AMD_DBREQ_OFFSET);
   368		if (db_size)
   369			*db_size = sizeof(u32);
   370	
   371		return 0;
   372	}
   373	
   374	static int amd_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits)
   375	{

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

             reply	other threads:[~2016-03-19 14:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-19 14:58 kbuild test robot [this message]
2016-03-21 13:15 ` Allen Hubbe

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=201603192227.ijrPiZDJ%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=Allen.Hubbe@emc.com \
    --cc=Xiangliang.Yu@amd.com \
    --cc=jdmason@kudzu.us \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®