Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1972864pxa; Mon, 3 Aug 2020 04:15:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTeTtx/qQYXvVNbgiB3uM4gpL5hPypLhDIzb05vjn/C3CvsFVqUIA5OeGZ/KBkqIOt+qCB X-Received: by 2002:a17:906:f8c3:: with SMTP id lh3mr16416570ejb.263.1596453347565; Mon, 03 Aug 2020 04:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596453347; cv=none; d=google.com; s=arc-20160816; b=OUedd7j92mzp52NeVmOYH/SFKR9uwwq5FfhTrnTv0FlM9f2WrSFNpyBP2zsuH11fku FbxqKUw56NmAivmk4HMN8xEQT+11IZbhMUp7DVupY+aRdOJFWkRn+8wWRIhwu1172UUh sW7ofywWdFw5gBGj6dRB4WnncZYpWxnffXoUBdUvcCPgFi7BJSGqtlrOVHZaDyegNwjm dLQlum3DbIensvnhzHBar0yAtLf8tlxYbxj7fCoW+4zw71CGviuVBskdjJOkgpghCeIc xKsFEFOzAqzIHr+xQ6kCl6Nr8u2aUi/Q1Ojt8NIvaiyWZh8mnQyhn71IXBoaXCcZZywb m58Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nNHHrbCTCx1Ksr9+Xzh66LKqXmd+gI0piE1Ogw1lz60=; b=gi6RBMGTuLFq2joqpi+SruS3k15g2uzVM5orLIZQqkY0kjQRdfG3IPY2yU5xXEo4c7 aD6tIYojYCfUhNrW7gtQqHcl+STM13Fi6z+D0Vel5fvL2itMpGMGNPzSwThX/eJkYWQP RuYKmm5nnOY+Eo7sNA0LziD2A6xVmJRJ7ls7rrlBCUNAdAsbvfpeQOKb01In4Z9bEfTx 5QIyDGRRwTYG/BBMHNQonhwS66SMPGdreaWB8dosf47+rXqFK0/uj2zJn2iH6+w38wo/ D3PIZHB+TvVsrzaxY+YkgqOAGT0j76UN7u80LCd6BVAHs0UuNWSGTOfvQY3/cTqEKbl5 V9Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NaJI23k4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p3si10710566edq.281.2020.08.03.04.15.25; Mon, 03 Aug 2020 04:15:47 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NaJI23k4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726118AbgHCLMu (ORCPT + 99 others); Mon, 3 Aug 2020 07:12:50 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:45645 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725945AbgHCLMu (ORCPT ); Mon, 3 Aug 2020 07:12:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596453168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nNHHrbCTCx1Ksr9+Xzh66LKqXmd+gI0piE1Ogw1lz60=; b=NaJI23k4nUbUg3RSema/ybrNWyt5cMFhJRe9Yvz/VYPcUjwTiAQg55odx04SgdN53vPGEP oB3Ny6203YilgYn0pxZpm5X259QWogQsg3EMpExCwAfeEcTbGYMdTXR/YBHgL/ZNkqw6wh 4icKddckSxHsRiWmM6E6riFH08GSLnU= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-196-a4gqlMUlMbOKaMh9HbSFWQ-1; Mon, 03 Aug 2020 07:12:46 -0400 X-MC-Unique: a4gqlMUlMbOKaMh9HbSFWQ-1 Received: by mail-qk1-f200.google.com with SMTP id z1so20305835qkg.23 for ; Mon, 03 Aug 2020 04:12:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nNHHrbCTCx1Ksr9+Xzh66LKqXmd+gI0piE1Ogw1lz60=; b=ieeH1b70nJJdpnuX+OceMnBJjvV1E/tWihVVJZKYZwEB9i6MfnjQFqsemoJpyYcGk9 DjhHjht8+G5J8NIEIyJmsPcFxoFg/12yy9ttrQFKJ3iOdbHva6L5b6mF+jIF4T9XbfBO PSAsjjywNeJpxTJMAc+/2uU7SUmuU7Ti5QSEt8Fd6ODL4K6jcwa56fQVJ/FsKJCc6Fv2 fBJjOmjYNyVzxqWp3gz1h4BMJLySb7utnGAF2ljaSnMrKol9hJlwMgJSb01ZBfm+seIo dM58+3d+nWquUAlT7B7lcv+Np1Ysugpo80oejxMYNi7+SVcaOHGoLwO2NvIANJECLNi+ 4xmw== X-Gm-Message-State: AOAM531/JeLCzo0jcRcMMzuBKDr2QkN45gTh6c1Zw01TcUso7O56MgiA BTIG2h/ZK7frS9OjOUzYVgcDJKKhmIu50Fw3taO1UrjS3gdYk3ItEIvJQ3hxD8ALNAZe7bXqsAG uWMk7uj8J/eHub7mmXoatr+eF X-Received: by 2002:a05:620a:2230:: with SMTP id n16mr16158450qkh.268.1596453166399; Mon, 03 Aug 2020 04:12:46 -0700 (PDT) X-Received: by 2002:a05:620a:2230:: with SMTP id n16mr16158433qkh.268.1596453166168; Mon, 03 Aug 2020 04:12:46 -0700 (PDT) Received: from redhat.com (bzq-79-177-102-128.red.bezeqint.net. [79.177.102.128]) by smtp.gmail.com with ESMTPSA id d70sm16687998qkb.71.2020.08.03.04.12.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 04:12:45 -0700 (PDT) Date: Mon, 3 Aug 2020 07:12:40 -0400 From: "Michael S. Tsirkin" To: Ashutosh Dixit Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , sudeep.dutt@intel.com, arnd@arndb.de, vincent.whitchurch@axis.com, stable@vger.kernel.org Subject: Re: [PATCH] vop: Add missing __iomem annotation in vop_dc_to_vdev() Message-ID: <20200803071234-mutt-send-email-mst@kernel.org> References: <20200802232812.16794-1-ashutosh.dixit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200802232812.16794-1-ashutosh.dixit@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 02, 2020 at 04:28:12PM -0700, Ashutosh Dixit wrote: > 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 Acked-by: Michael S. Tsirkin > --- > 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