All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hector Martin <marcan@marcan.st>
Cc: oe-kbuild-all@lists.linux.dev, Janne Grunau <j@jannau.net>
Subject: [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)
Date: Fri, 29 Nov 2024 14:07:18 +0800	[thread overview]
Message-ID: <202411291432.Wog5QISk-lkp@intel.com> (raw)

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

             reply	other threads:[~2024-11-29  6:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-29  6:07 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

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=202411291432.Wog5QISk-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=j@jannau.net \
    --cc=marcan@marcan.st \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 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.