tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head: 4c79594f528d6847963d0bea6a5f771704e8b02f
commit: 0e61f7ea3b4a0a807009594f5a8f51bb7e15fbf4 [5/10] Merge branch
'locking/atomics'
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-180-g0558317d-dirty
git checkout 0e61f7ea3b4a0a807009594f5a8f51bb7e15fbf4
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> net/802/garp.c:583:9: sparse: sparse: incorrect type in argument
1 (different address spaces) @@ expected void const volatile *ptr @@ got struct
garp_applicant [noderef] <asn:4>void const volatile *ptr @@
net/802/garp.c:583:9: sparse: expected void const volatile *ptr
net/802/garp.c:583:9: sparse: got struct garp_applicant [noderef] <asn:4>
*[noderef] <asn:4> *
net/802/garp.c:583:9: sparse: sparse: cast removes address space
'<asn:4>' of expression
> net/802/garp.c:583:9: sparse: sparse: incorrect type in argument
1 (different address spaces) @@ expected void const volatile *ptr @@ got struct
garp_applicant [noderef] <asn:4>void const volatile *ptr @@
net/802/garp.c:583:9: sparse: expected void const volatile *ptr
net/802/garp.c:583:9: sparse: got struct garp_applicant [noderef] <asn:4>
*[noderef] <asn:4> *
net/802/garp.c:583:9: sparse: sparse: cast removes address space
'<asn:4>' of expression
net/802/garp.c:222:9: sparse: sparse: cast truncates bits from constant value (100
becomes 0)
net/802/garp.c:583:9: sparse: sparse: dereference of noderef expression
net/802/garp.c:583:9: sparse: sparse: dereference of noderef expression
--
> net/802/mrp.c:864:9: sparse: sparse: incorrect type in argument 1
(different address spaces) @@ expected void const volatile *ptr @@ got struct
mrp_applicant [noderef] <asn:4>void const volatile *ptr @@
net/802/mrp.c:864:9: sparse: expected void const volatile *ptr
net/802/mrp.c:864:9: sparse: got struct mrp_applicant [noderef] <asn:4>
*[noderef] <asn:4> *
net/802/mrp.c:864:9: sparse: sparse: cast removes address space '<asn:4>'
of expression
> net/802/mrp.c:864:9: sparse: sparse: incorrect type in argument 1
(different address spaces) @@ expected void const volatile *ptr @@ got struct
mrp_applicant [noderef] <asn:4>void const volatile *ptr @@
net/802/mrp.c:864:9: sparse: expected void const volatile *ptr
net/802/mrp.c:864:9: sparse: got struct mrp_applicant [noderef] <asn:4>
*[noderef] <asn:4> *
net/802/mrp.c:864:9: sparse: sparse: cast removes address space '<asn:4>'
of expression
net/802/mrp.c:864:9: sparse: sparse: dereference of noderef expression
net/802/mrp.c:864:9: sparse: sparse: dereference of noderef expression
vim +583 net/802/garp.c
eca9ebac651f77 Patrick McHardy 2008-07-05 555
eca9ebac651f77 Patrick McHardy 2008-07-05 556 int garp_init_applicant(struct net_device
*dev, struct garp_application *appl)
eca9ebac651f77 Patrick McHardy 2008-07-05 557 {
eca9ebac651f77 Patrick McHardy 2008-07-05 558 struct garp_applicant *app;
eca9ebac651f77 Patrick McHardy 2008-07-05 559 int err;
eca9ebac651f77 Patrick McHardy 2008-07-05 560
eca9ebac651f77 Patrick McHardy 2008-07-05 561 ASSERT_RTNL();
eca9ebac651f77 Patrick McHardy 2008-07-05 562
3cc77ec74e1583 Eric Dumazet 2010-10-24 563 if (!rtnl_dereference(dev->garp_port))
{
eca9ebac651f77 Patrick McHardy 2008-07-05 564 err = garp_init_port(dev);
eca9ebac651f77 Patrick McHardy 2008-07-05 565 if (err < 0)
eca9ebac651f77 Patrick McHardy 2008-07-05 566 goto err1;
eca9ebac651f77 Patrick McHardy 2008-07-05 567 }
eca9ebac651f77 Patrick McHardy 2008-07-05 568
eca9ebac651f77 Patrick McHardy 2008-07-05 569 err = -ENOMEM;
eca9ebac651f77 Patrick McHardy 2008-07-05 570 app = kzalloc(sizeof(*app), GFP_KERNEL);
eca9ebac651f77 Patrick McHardy 2008-07-05 571 if (!app)
eca9ebac651f77 Patrick McHardy 2008-07-05 572 goto err2;
eca9ebac651f77 Patrick McHardy 2008-07-05 573
22bedad3ce112d Jiri Pirko 2010-04-01 574 err = dev_mc_add(dev,
appl->proto.group_address);
eca9ebac651f77 Patrick McHardy 2008-07-05 575 if (err < 0)
eca9ebac651f77 Patrick McHardy 2008-07-05 576 goto err3;
eca9ebac651f77 Patrick McHardy 2008-07-05 577
eca9ebac651f77 Patrick McHardy 2008-07-05 578 app->dev = dev;
eca9ebac651f77 Patrick McHardy 2008-07-05 579 app->app = appl;
eca9ebac651f77 Patrick McHardy 2008-07-05 580 app->gid = RB_ROOT;
eca9ebac651f77 Patrick McHardy 2008-07-05 581 spin_lock_init(&app->lock);
eca9ebac651f77 Patrick McHardy 2008-07-05 582 skb_queue_head_init(&app->queue);
eca9ebac651f77 Patrick McHardy 2008-07-05 @583
rcu_assign_pointer(dev->garp_port->applicants[appl->type], app);
e99e88a9d2b067 Kees Cook 2017-10-16 584 timer_setup(&app->join_timer,
garp_join_timer, 0);
eca9ebac651f77 Patrick McHardy 2008-07-05 585 garp_join_timer_arm(app);
eca9ebac651f77 Patrick McHardy 2008-07-05 586 return 0;
eca9ebac651f77 Patrick McHardy 2008-07-05 587
eca9ebac651f77 Patrick McHardy 2008-07-05 588 err3:
eca9ebac651f77 Patrick McHardy 2008-07-05 589 kfree(app);
eca9ebac651f77 Patrick McHardy 2008-07-05 590 err2:
eca9ebac651f77 Patrick McHardy 2008-07-05 591 garp_release_port(dev);
eca9ebac651f77 Patrick McHardy 2008-07-05 592 err1:
eca9ebac651f77 Patrick McHardy 2008-07-05 593 return err;
eca9ebac651f77 Patrick McHardy 2008-07-05 594 }
eca9ebac651f77 Patrick McHardy 2008-07-05 595 EXPORT_SYMBOL_GPL(garp_init_applicant);
eca9ebac651f77 Patrick McHardy 2008-07-05 596
:::::: The code at line 583 was first introduced by commit
:::::: eca9ebac651f774d8b10fce7c5d173c3c3d3394f net: Add GARP applicant-only participant
:::::: TO: Patrick McHardy <kaber(a)trash.net>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org