Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp1062044pxr; Mon, 11 Apr 2022 14:11:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwflE3l2SqpzUd/yM6tbNLjr7IhmKZCUufELcNjwTibo/QsIRIrH+CQKQNZ8JZgaRMMYPDn X-Received: by 2002:a17:902:6b4a:b0:156:647c:e25c with SMTP id g10-20020a1709026b4a00b00156647ce25cmr34739475plt.9.1649711475656; Mon, 11 Apr 2022 14:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649711475; cv=none; d=google.com; s=arc-20160816; b=ZQzZvcUs1B1VPKP8KlPwMDb9+mmpWfjkXd+MW/6WV7AzdYauRWIL8vkeZwjxMLwpLO ja7P1P4pEaVOK3jUeVMRb98D5/NluYnyxK7D/Qhy8F0XSHgTRBmekEh1apjCtk52mGIS FwkZmbeJleZR4M2MHB6HK79KV3dfw0eByPB9G5AMxF/VrwBUMT7sUMSo723nCbflpoHo IkkkkS0w9hUU3ufqp60cyFv0a0Pq8NRoYis65flluCbpK6VcKg5/IU6ZkuLH/39WiTM5 rCbw7ETXRGkLXGxiKlf0L6rr0bRl3Hwki0OCeYLBAm6KKljZKrxqN/kfUQqs1ktyodcy Qh5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=mX3Lu4zdKVzePtl2No+qL/fFHWZ1/s6zmqaeEKp1LRg=; b=z3qQ+NtjfKyTobNbtWcFcLSKIrN04JvkXAp0sKEvCActy8w6ztk14XdDCPQjd42Xwr hYZ5QqHDgFN9Z8IFQeR/DgzB6fF/j4OtjOvwLRnsvgG+6wpAK97uY8okqYsXInlmA014 C+vaoWhAh0n0cCwD9iZGSY4WdJm6rl3v4DMWUFwUgyGZ4djAneuZl1hMXOwNdBsUe/5S 4nYzkXZJdiI9US2Vqk/Bd/irSH2EXYfNupiaLtNCaHLKCNNMzAJ9SaJmhH8VOg5wHKCB weZGYbeQQa7vSY9+vaFt/AUdmHjcZ/gEPqQeY+s9Qb01SRoCMrJ8bos0nd1E7HKYmfhu +YPQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p27-20020aa79e9b000000b004fa7ffb7267si9683615pfq.102.2022.04.11.14.11.00; Mon, 11 Apr 2022 14:11:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243901AbiDJUbP (ORCPT + 99 others); Sun, 10 Apr 2022 16:31:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236950AbiDJUbO (ORCPT ); Sun, 10 Apr 2022 16:31:14 -0400 Received: from hosting.gsystem.sk (hosting.gsystem.sk [212.5.213.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F3D583FD9A; Sun, 10 Apr 2022 13:28:59 -0700 (PDT) Received: from gsql.ggedos.sk (off-20.infotel.telecom.sk [212.5.213.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by hosting.gsystem.sk (Postfix) with ESMTPSA id 1FE647A0189; Sun, 10 Apr 2022 22:28:59 +0200 (CEST) From: Ondrej Zary To: Helge Deller Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] fbdev: i740fb: use memset_io() to clear screen Date: Sun, 10 Apr 2022 22:28:33 +0200 Message-Id: <20220410202833.26608-1-linux@zary.sk> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 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 --- 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); -- Ondrej Zary