lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 11 Mar 2016 10:05:17 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	Amir Vadai <amir@...ai.me>
Cc:	kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 1158/1168] net/sched/cls_flower.c:222:28: warning:
 cast from pointer to integer of different size

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

Download attachment ".config.gz" of type "application/octet-stream" (20575 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ