lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200802232812.16794-1-ashutosh.dixit@intel.com>
Date:   Sun,  2 Aug 2020 16:28:12 -0700
From:   Ashutosh Dixit <ashutosh.dixit@...el.com>
To:     linux-kernel@...r.kernel.org
Cc:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>, mst@...hat.com,
        sudeep.dutt@...el.com, arnd@...db.de, vincent.whitchurch@...s.com,
        stable@...r.kernel.org
Subject: [PATCH] vop: Add missing __iomem annotation in vop_dc_to_vdev()

Fix the following sparse warnings in drivers/misc/mic/vop//vop_main.c:

551:58: warning: incorrect type in argument 1 (different address spaces)
551:58:    expected void const volatile [noderef] __iomem *addr
551:58:    got restricted __le64 *
560:49: warning: incorrect type in argument 1 (different address spaces)
560:49:    expected struct mic_device_ctrl *dc
560:49:    got struct mic_device_ctrl [noderef] __iomem *dc
579:49: warning: incorrect type in argument 1 (different address spaces)
579:49:    expected struct mic_device_ctrl *dc
579:49:    got struct mic_device_ctrl [noderef] __iomem *dc

Cc: Michael S. Tsirkin <mst@...hat.com>
Cc: Sudeep Dutt <sudeep.dutt@...el.com>
Cc: Arnd Bergmann <arnd@...db.de>
Cc: Vincent Whitchurch <vincent.whitchurch@...s.com>
Cc: stable <stable@...r.kernel.org>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@...el.com>
---
 drivers/misc/mic/vop/vop_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/mic/vop/vop_main.c b/drivers/misc/mic/vop/vop_main.c
index 85942f6717c5..25ed7d731701 100644
--- a/drivers/misc/mic/vop/vop_main.c
+++ b/drivers/misc/mic/vop/vop_main.c
@@ -546,7 +546,7 @@ static int vop_match_desc(struct device *dev, void *data)
 	return vdev->desc == (void __iomem *)data;
 }
 
-static struct _vop_vdev *vop_dc_to_vdev(struct mic_device_ctrl *dc)
+static struct _vop_vdev *vop_dc_to_vdev(struct mic_device_ctrl __iomem *dc)
 {
 	return (struct _vop_vdev *)(unsigned long)readq(&dc->vdev);
 }
-- 
2.26.2.108.g048abe1751

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ