Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp697425pxr; Mon, 11 Apr 2022 05:03:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeMfFx1ALSoy0TpXvBA0YP1Z5viFhSHhTmSOq7EMlsO5aB/a9b4NOBBa1I4rCa9k8EE5N5 X-Received: by 2002:a17:906:d10f:b0:6e8:94b6:3631 with SMTP id b15-20020a170906d10f00b006e894b63631mr3229982ejz.576.1649678606607; Mon, 11 Apr 2022 05:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649678606; cv=none; d=google.com; s=arc-20160816; b=GRO1/QwMT1qxKT+Xnx4tMlVuVleRHMiM5Er/aBW382njGRpO/Fy2d+yxsydXOuHpxb ZBnn7Ff3J4dK+MnoPc2xPlHquTZEXU3m94VJ83K3oyjAQHevelxvssW0k15nBavrn1ij UTnGobDozX+yn6oQky3EOx+iZRLPQNn3Vq45HV/N+1Ak9aoBJgtSAxIFAGGQ2Jr8Jqi5 NlFm3E7xcME1mDmHbkdcxhGDdNExa7cKXmRzksCFbTVEorGn3c6nB5i5mVnnBDc9Ijes 95Q+uX76QabW399ptfSy297D9hERlpJ9PSUWLBzTkVimjgJbbFGIFDHOBka5wW24p6mn r/kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EKz5CTOSOCB0U5Lh14IzLbtj02mZfhTGNZ9f9cfZX1M=; b=AzHE7exgeicRnatcNVoCwgsOrx9jNNm1Ik/uuiZ7XaFxUylbKXMBR+1LNmPMqegSAc 6c8nRMIYyETKuoilMmOrWPLWH6g4B+gHIgSqisXvPxf5nnnJ2flDGQfoHnSPX6JlMi/2 Fqg3mRMruvd3BQTVKJIoMLnu1r2w2GdW5fxFtgBN+LvGirs++2/5any9r+yDy4RmITTx c5+JBxOB5X3pkgi9kSzH1xSxQqdhO1Pd/u2KCd6cpwPoApMQ9N02S1EztVzATyDYAhgb dxLiGNLO5AshHT1z37Y+dludtwSo00De7sxGw2m5Gpe7Yi0Sbu/+u/YrpifPS3bJnV63 Okcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=DTYxIIxS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v16-20020a170906381000b006e888eed54dsi2856989ejc.783.2022.04.11.05.02.55; Mon, 11 Apr 2022 05:03:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=DTYxIIxS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244888AbiDKGUk (ORCPT + 99 others); Mon, 11 Apr 2022 02:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244322AbiDKGUi (ORCPT ); Mon, 11 Apr 2022 02:20:38 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 201393CFE1; Sun, 10 Apr 2022 23:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1649657900; bh=DEmNhBL/gohEUMJP8JibIxeatvMiK2dGmVjbuB97Fyc=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=DTYxIIxSrTbphxaZpPdNkGBdxIx4xgavKoAi0RQpMqIiaOpWpcmk5Z42kBtiauavl b3y9WRPtqX8Rut1wKJXPtC3kyBZXNsWWHGXhkSnfwZoIM2stMvQUJdmeEMctK3Lnmx 8Ofp7p6LJYUWaEuESkPg+XwcEzuetajM+zfvZJiU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.145.57]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MulqD-1nuMpD1OYl-00rsZa; Mon, 11 Apr 2022 08:18:20 +0200 Message-ID: Date: Mon, 11 Apr 2022 08:16:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] fbdev: i740fb: use memset_io() to clear screen Content-Language: en-US To: Ondrej Zary Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220410202833.26608-1-linux@zary.sk> From: Helge Deller In-Reply-To: <20220410202833.26608-1-linux@zary.sk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:wDZTZbxfEuUfXVVlZgGev+nwA1g7MKEILesmHJFJP4UYp3fOPxV kWzG+kJJSU0aNzxkRa1b1qqPnAMDd/jWqhk9l9kkJpvVvjWTHNTck+l5ISZB6fKiobMXV4+ aP2IFDjxT1BrluJrHO5ppdKmmzC2vX18Ati0IYPmbRz1zXFxxEOZanwyZXkgqYqDuqT0T2G TNF13pw59FCq/9OoG8Amg== X-UI-Out-Filterresults: notjunk:1;V03:K0:jYWVJBqjH/0=:yYvVfny61rLZJasumIHxC3 wW2XCQSzcisl+0gcWX8hz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gAjlooUUGqE= X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/10/22 22:28, Ondrej Zary wrote: > sparse complains that using memset() on __iomem pointer is wrong: > incorrect type in argument 1 (different address spaces) > > Use memset_io() to clear screen instead. > > Tested on real i740 cards. > > Signed-off-by: Ondrej Zary applied. Thanks! Helge > --- > drivers/video/fbdev/i740fb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/fbdev/i740fb.c b/drivers/video/fbdev/i740fb.c > index 52cce0db8bd3..dd45ea8203be 100644 > --- a/drivers/video/fbdev/i740fb.c > +++ b/drivers/video/fbdev/i740fb.c > @@ -740,7 +740,7 @@ static int i740fb_set_par(struct fb_info *info) > if (i) > return i; > > - memset(info->screen_base, 0, info->screen_size); > + memset_io(info->screen_base, 0, info->screen_size); > > vga_protect(par); >