Netdev List
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Amir Vadai <amir@vadai.me>
Cc: kbuild-all@01.org, netdev@vger.kernel.org
Subject: [net-next:master 1158/1168] net/sched/cls_flower.c:222:28: warning: cast from pointer to integer of different size
Date: Fri, 11 Mar 2016 10:05:17 +0800	[thread overview]
Message-ID: <201603111015.4L0spubs%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2368 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   e8ab563f4b2e51849a16d962c6235b81e429c0d7
commit: 5b33f48842fa1e13e9c0ea8cc59c1d0df19042db [1158/1168] net/flower: Introduce hardware offload support
config: i386-randconfig-r0-201610 (attached as .config)
reproduce:
        git checkout 5b33f48842fa1e13e9c0ea8cc59c1d0df19042db
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   net/sched/cls_flower.c: In function 'fl_destroy':
>> net/sched/cls_flower.c:222:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      fl_hw_destroy_filter(tp, (u64)f);
                               ^
   net/sched/cls_flower.c: In function 'fl_change':
   net/sched/cls_flower.c:557:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
            (u64)fnew,
            ^
   net/sched/cls_flower.c:563:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      fl_hw_destroy_filter(tp, (u64)fold);
                               ^
   net/sched/cls_flower.c: In function 'fl_delete':
   net/sched/cls_flower.c:591:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     fl_hw_destroy_filter(tp, (u64)f);
                              ^

vim +222 net/sched/cls_flower.c

   206	
   207		tc.type = TC_SETUP_CLSFLOWER;
   208		tc.cls_flower = &offload;
   209	
   210		dev->netdev_ops->ndo_setup_tc(dev, tp->q->handle, tp->protocol, &tc);
   211	}
   212	
   213	static bool fl_destroy(struct tcf_proto *tp, bool force)
   214	{
   215		struct cls_fl_head *head = rtnl_dereference(tp->root);
   216		struct cls_fl_filter *f, *next;
   217	
   218		if (!force && !list_empty(&head->filters))
   219			return false;
   220	
   221		list_for_each_entry_safe(f, next, &head->filters, list) {
 > 222			fl_hw_destroy_filter(tp, (u64)f);
   223			list_del_rcu(&f->list);
   224			call_rcu(&f->rcu, fl_destroy_filter);
   225		}
   226		RCU_INIT_POINTER(tp->root, NULL);
   227		if (head->mask_assigned)
   228			rhashtable_destroy(&head->ht);
   229		kfree_rcu(head, rcu);
   230		return true;

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 20575 bytes --]

                 reply	other threads:[~2016-03-11  2:06 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=201603111015.4L0spubs%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=amir@vadai.me \
    --cc=kbuild-all@01.org \
    --cc=netdev@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