Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1671994pxa; Sun, 2 Aug 2020 16:39:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDzbV9v3YkCeMug8Jh3C4rkq6aDQfHk+hC5QDpdxTsupew/mMuclL9iskRmSN31LuzCOou X-Received: by 2002:a17:906:17cc:: with SMTP id u12mr13776719eje.344.1596411566821; Sun, 02 Aug 2020 16:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596411566; cv=none; d=google.com; s=arc-20160816; b=pcav2aUNx4MW1peDK4Z8Quk4aZh1Ja6CuyyyMNmjJnbS33w60dvlZdRzKCPIEXxxO+ +evKCJzJHSxWO7zWsWTnliwN9cf8vIV/npFs5TwOgdIp3ItkDgti5GKvyiwYhZ94D56b S1MGrrBiZPiY3OWhn4OU5ob+8fQmgLzOvJbdlid0eFPUCEs5vQIk6uoCVf0dhlN7LDSA 6u+Be0ju4ozB/EaN+uQU0nOqJRvo3oGX3icvb0lLR8m9pz7Tk0HR9tfsw+v8hWchVlbk t67TuzM85b/EnZkVwcpyOFSQMcTWo5Dgc4DrPxf8RRR6m/GuLBrIsO6kkEHtI1BiR2qn JyBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=hZBY9uObAf9gk2QOMOunZEdaMmtyOZkxXJ+A4sr+4f4=; b=jvqAMxxlhFscEyKK3qN4/9oKpTPNe2LyhxnMkntvNdZzoDGSOOTUtHP4JU94kn4GKh Oq/Kz8F59DX0v6oF6G++xOqJgs+wIVVV1xIBV0xOF00dURrfrVcbwuc/536tpIePVP7C koN4fpEUbk1th3JOz5jLE9ZN6U6akcaVzk+3ethT7aqhaRaq3n1V54ez45m8iYTI48+L sZiT/vsG+LqnUo1sM0OxCq2FChzV36w0+q0VlA5Jrp4wnEPgAGvj2YgvoAmOcDPEr/l5 Aa10LCSKW1xdfnZM6oakq87W7UZHB8kEIQYYKdARzt0NpPhMGps9S8kblvt9bxfPTv6e 9bPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si9573406edy.92.2020.08.02.16.38.33; Sun, 02 Aug 2020 16:39:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726944AbgHBX2O (ORCPT + 99 others); Sun, 2 Aug 2020 19:28:14 -0400 Received: from mga02.intel.com ([134.134.136.20]:7963 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbgHBX2N (ORCPT ); Sun, 2 Aug 2020 19:28:13 -0400 IronPort-SDR: OuMQsCLubhmGu+wWT3bZIdA3BTzSp6XtzUpgI0hvqZ2zMrDToAP+vJQs/FmVyLUIZluXrN4z1p dPTtMjs6QVoQ== X-IronPort-AV: E=McAfee;i="6000,8403,9701"; a="139979729" X-IronPort-AV: E=Sophos;i="5.75,428,1589266800"; d="scan'208";a="139979729" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2020 16:28:12 -0700 IronPort-SDR: YArqj2r6TsK68EyZcgFirnswYf/9TaBEBQOGQTx92NhjLYvYoXJQ40t6BmustXKC+3ghxS5hoo EAqfwWsyl1Kg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,428,1589266800"; d="scan'208";a="273763970" Received: from orsosgc001.ra.intel.com ([10.23.184.150]) by fmsmga007.fm.intel.com with ESMTP; 02 Aug 2020 16:28:12 -0700 From: Ashutosh Dixit To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , mst@redhat.com, sudeep.dutt@intel.com, arnd@arndb.de, vincent.whitchurch@axis.com, stable@vger.kernel.org Subject: [PATCH] vop: Add missing __iomem annotation in vop_dc_to_vdev() Date: Sun, 2 Aug 2020 16:28:12 -0700 Message-Id: <20200802232812.16794-1-ashutosh.dixit@intel.com> X-Mailer: git-send-email 2.26.2.108.g048abe1751 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Sudeep Dutt Cc: Arnd Bergmann Cc: Vincent Whitchurch Cc: stable Signed-off-by: Ashutosh Dixit --- 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