Netdev List
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Alexander Aring <aring@mojatatu.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org,
	Stefan Schmidt <stefan@datenfreihafen.org>
Subject: [net-next:master 479/480] drivers/net/ieee802154/mac802154_hwsim.c:409:17: sparse: incorrect type in assignment (different address spaces)
Date: Wed, 8 Aug 2018 04:03:56 +0800	[thread overview]
Message-ID: <201808080447.ULCQQGwv%fengguang.wu@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   1ba982806ce58baac44c52e6c7812245afad27c8
commit: c5d99d2b35dadebab2408bb10dcd50364eaaf9f4 [479/480] ieee802154: hwsim: fix rcu address annotation
reproduce:
        # apt-get install sparse
        git checkout c5d99d2b35dadebab2408bb10dcd50364eaaf9f4
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   drivers/net/ieee802154/mac802154_hwsim.c:799:18: sparse: incorrect type in assignment (different address spaces) @@    expected struct hwsim_pib [noderef] <asn:4>*pib @@    got  hwsim_pib [noderef] <asn:4>*pib @@
   drivers/net/ieee802154/mac802154_hwsim.c:799:18:    expected struct hwsim_pib [noderef] <asn:4>*pib
   drivers/net/ieee802154/mac802154_hwsim.c:799:18:    got struct hwsim_pib *[assigned] pib
   drivers/net/ieee802154/mac802154_hwsim.c:835:9: sparse: incorrect type in argument 1 (different address spaces) @@    expected struct callback_head *head @@    got struct callback_hstruct callback_head *head @@
   drivers/net/ieee802154/mac802154_hwsim.c:835:9:    expected struct callback_head *head
   drivers/net/ieee802154/mac802154_hwsim.c:835:9:    got struct callback_head [noderef] <asn:4>*<noident>
   drivers/net/ieee802154/mac802154_hwsim.c:113:17: sparse: incorrect type in assignment (different address spaces) @@    expected struct hwsim_pib *pib_old @@    got struct hwsim_pib struct hwsim_pib *pib_old @@
   drivers/net/ieee802154/mac802154_hwsim.c:113:17:    expected struct hwsim_pib *pib_old
   drivers/net/ieee802154/mac802154_hwsim.c:113:17:    got struct hwsim_pib [noderef] <asn:4>*pib
>> drivers/net/ieee802154/mac802154_hwsim.c:409:17: sparse: incorrect type in assignment (different address spaces) @@    expected struct hwsim_edge_info [noderef] <asn:4>*info @@    got  hwsim_edge_info [noderef] <asn:4>*info @@
   drivers/net/ieee802154/mac802154_hwsim.c:409:17:    expected struct hwsim_edge_info [noderef] <asn:4>*info
   drivers/net/ieee802154/mac802154_hwsim.c:409:17:    got struct hwsim_edge_info *[assigned] einfo
   drivers/net/ieee802154/mac802154_hwsim.c:417:9: sparse: incorrect type in argument 1 (different address spaces) @@    expected struct callback_head *head @@    got struct callback_hstruct callback_head *head @@
   drivers/net/ieee802154/mac802154_hwsim.c:417:9:    expected struct callback_head *head
   drivers/net/ieee802154/mac802154_hwsim.c:417:9:    got struct callback_head [noderef] <asn:4>*<noident>

vim +409 drivers/net/ieee802154/mac802154_hwsim.c

f25da51f Alexander Aring 2018-07-14  392  
f25da51f Alexander Aring 2018-07-14  393  static struct hwsim_edge *hwsim_alloc_edge(struct hwsim_phy *endpoint, u8 lqi)
f25da51f Alexander Aring 2018-07-14  394  {
f25da51f Alexander Aring 2018-07-14  395  	struct hwsim_edge_info *einfo;
f25da51f Alexander Aring 2018-07-14  396  	struct hwsim_edge *e;
f25da51f Alexander Aring 2018-07-14  397  
f25da51f Alexander Aring 2018-07-14  398  	e = kzalloc(sizeof(*e), GFP_KERNEL);
f25da51f Alexander Aring 2018-07-14  399  	if (!e)
f25da51f Alexander Aring 2018-07-14  400  		return NULL;
f25da51f Alexander Aring 2018-07-14  401  
f25da51f Alexander Aring 2018-07-14  402  	einfo = kzalloc(sizeof(*einfo), GFP_KERNEL);
f25da51f Alexander Aring 2018-07-14  403  	if (!einfo) {
f25da51f Alexander Aring 2018-07-14  404  		kfree(e);
f25da51f Alexander Aring 2018-07-14  405  		return NULL;
f25da51f Alexander Aring 2018-07-14  406  	}
f25da51f Alexander Aring 2018-07-14  407  
f25da51f Alexander Aring 2018-07-14  408  	einfo->lqi = 0xff;
f25da51f Alexander Aring 2018-07-14 @409  	e->info = einfo;
f25da51f Alexander Aring 2018-07-14  410  	e->endpoint = endpoint;
f25da51f Alexander Aring 2018-07-14  411  
f25da51f Alexander Aring 2018-07-14  412  	return e;
f25da51f Alexander Aring 2018-07-14  413  }
f25da51f Alexander Aring 2018-07-14  414  

:::::: The code at line 409 was first introduced by commit
:::::: f25da51fdc381ca2863248c7060b3662632f0872 ieee802154: hwsim: add replacement for fakelb

:::::: TO: Alexander Aring <aring@mojatatu.com>
:::::: CC: Stefan Schmidt <stefan@datenfreihafen.org>

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

                 reply	other threads:[~2018-08-07 22:20 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=201808080447.ULCQQGwv%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=aring@mojatatu.com \
    --cc=kbuild-all@01.org \
    --cc=netdev@vger.kernel.org \
    --cc=stefan@datenfreihafen.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