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
.config.gz
Description: Binary data
