mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
ionic: fix type complaint in ionic_dev_cmd_clean()
[ Upstream commitbc0bf9de6f] Sparse seems to have gotten a little more picky lately and we need to revisit this bit of code to make sparse happy. warning: incorrect type in initializer (different address spaces) expected union ionic_dev_cmd_regs *regs got union ionic_dev_cmd_regs [noderef] __iomem *dev_cmd_regs warning: incorrect type in argument 2 (different address spaces) expected void [noderef] __iomem * got unsigned int * warning: incorrect type in argument 1 (different address spaces) expected void volatile [noderef] __iomem * got union ionic_dev_cmd * Fixes:d701ec326a("ionic: clean up sparse complaints") Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
1ba10e5c39
commit
47402eaf88
|
|
@ -311,10 +311,10 @@ int ionic_adminq_post_wait(struct ionic_lif *lif, struct ionic_admin_ctx *ctx)
|
||||||
|
|
||||||
static void ionic_dev_cmd_clean(struct ionic *ionic)
|
static void ionic_dev_cmd_clean(struct ionic *ionic)
|
||||||
{
|
{
|
||||||
union __iomem ionic_dev_cmd_regs *regs = ionic->idev.dev_cmd_regs;
|
struct ionic_dev *idev = &ionic->idev;
|
||||||
|
|
||||||
iowrite32(0, ®s->doorbell);
|
iowrite32(0, &idev->dev_cmd_regs->doorbell);
|
||||||
memset_io(®s->cmd, 0, sizeof(regs->cmd));
|
memset_io(&idev->dev_cmd_regs->cmd, 0, sizeof(idev->dev_cmd_regs->cmd));
|
||||||
}
|
}
|
||||||
|
|
||||||
int ionic_dev_cmd_wait(struct ionic *ionic, unsigned long max_seconds)
|
int ionic_dev_cmd_wait(struct ionic *ionic, unsigned long max_seconds)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user