* [asahilinux:bits/080-wifi 7/48] drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c:1544:23: sparse: sparse: incorrect type in assignment (different base types)
@ 2024-11-18 17:02 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-11-18 17:02 UTC (permalink / raw)
To: Hector Martin; +Cc: oe-kbuild-all, Janne Grunau
tree: https://github.com/AsahiLinux/linux bits/080-wifi
head: bae8b9b1d3b8c3fc9e9e35e1b0656cc5bcdae6ec
commit: 6ae91cffd5dfd4ecf2336d3992ff304dd750e9da [7/48] wifi: brcmfmac: Implement the H2D/D2H mailbox data commonring messages
config: riscv-randconfig-r113-20241118 (https://download.01.org/0day-ci/archive/20241119/202411190020.etjEmDHz-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241119/202411190020.etjEmDHz-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411190020.etjEmDHz-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c:1544:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] data @@ got unsigned int [usertype] data @@
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c:1544:23: sparse: expected restricted __le32 [usertype] data
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c:1544:23: sparse: got unsigned int [usertype] data
vim +1544 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
1520
1521
1522 int brcmf_msgbuf_h2d_mb_write(struct brcmf_pub *drvr, u32 data)
1523 {
1524 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd;
1525 struct brcmf_commonring *commonring;
1526 struct msgbuf_h2d_mailbox_data *request;
1527 void *ret_ptr;
1528 int err;
1529
1530 commonring = msgbuf->commonrings[BRCMF_H2D_MSGRING_CONTROL_SUBMIT];
1531 brcmf_commonring_lock(commonring);
1532 ret_ptr = brcmf_commonring_reserve_for_write(commonring);
1533 if (!ret_ptr) {
1534 bphy_err(drvr, "Failed to reserve space in commonring\n");
1535 brcmf_commonring_unlock(commonring);
1536 return -ENOMEM;
1537 }
1538
1539 request = (struct msgbuf_h2d_mailbox_data *)ret_ptr;
1540 request->msg.msgtype = MSGBUF_TYPE_H2D_MAILBOX_DATA;
1541 request->msg.ifidx = -1;
1542 request->msg.flags = 0;
1543 request->msg.request_id = 0;
> 1544 request->data = data;
1545
1546 err = brcmf_commonring_write_complete(commonring);
1547 brcmf_commonring_unlock(commonring);
1548
1549 return err;
1550 }
1551
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [asahilinux:bits/080-wifi 7/48] drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c:1544:23: sparse: sparse: incorrect type in assignment (different base types)
@ 2024-11-29 6:07 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-11-29 6:07 UTC (permalink / raw)
To: Hector Martin; +Cc: oe-kbuild-all, Janne Grunau
tree: https://github.com/AsahiLinux/linux bits/080-wifi
head: 382efbf95f1c08b2ecc4061963a61db6538d9724
commit: 6ae91cffd5dfd4ecf2336d3992ff304dd750e9da [7/48] wifi: brcmfmac: Implement the H2D/D2H mailbox data commonring messages
config: riscv-randconfig-r113-20241118 (https://download.01.org/0day-ci/archive/20241129/202411291432.Wog5QISk-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241129/202411291432.Wog5QISk-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411291432.Wog5QISk-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c:1544:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] data @@ got unsigned int [usertype] data @@
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c:1544:23: sparse: expected restricted __le32 [usertype] data
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c:1544:23: sparse: got unsigned int [usertype] data
vim +1544 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
1520
1521
1522 int brcmf_msgbuf_h2d_mb_write(struct brcmf_pub *drvr, u32 data)
1523 {
1524 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd;
1525 struct brcmf_commonring *commonring;
1526 struct msgbuf_h2d_mailbox_data *request;
1527 void *ret_ptr;
1528 int err;
1529
1530 commonring = msgbuf->commonrings[BRCMF_H2D_MSGRING_CONTROL_SUBMIT];
1531 brcmf_commonring_lock(commonring);
1532 ret_ptr = brcmf_commonring_reserve_for_write(commonring);
1533 if (!ret_ptr) {
1534 bphy_err(drvr, "Failed to reserve space in commonring\n");
1535 brcmf_commonring_unlock(commonring);
1536 return -ENOMEM;
1537 }
1538
1539 request = (struct msgbuf_h2d_mailbox_data *)ret_ptr;
1540 request->msg.msgtype = MSGBUF_TYPE_H2D_MAILBOX_DATA;
1541 request->msg.ifidx = -1;
1542 request->msg.flags = 0;
1543 request->msg.request_id = 0;
> 1544 request->data = data;
1545
1546 err = brcmf_commonring_write_complete(commonring);
1547 brcmf_commonring_unlock(commonring);
1548
1549 return err;
1550 }
1551
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-29 6:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18 17:02 [asahilinux:bits/080-wifi 7/48] drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c:1544:23: sparse: sparse: incorrect type in assignment (different base types) kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-11-29 6:07 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.