Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5478624yba; Wed, 10 Apr 2019 21:51:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyV97WrprLEY1y2PjOFPGFhRrhRaC51bgZKzK00uwhGpehz8PVr2iUcgKm9YWBcqCB16XwG X-Received: by 2002:a63:1f52:: with SMTP id q18mr46141137pgm.134.1554958319107; Wed, 10 Apr 2019 21:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554958319; cv=none; d=google.com; s=arc-20160816; b=d5IFMnWP4sbtH1Kq52quWPB+YjoXB8mRtDHML6WxB50+t2bN4DrsGmj+njsm2pK9G0 rbCMV3aHlGQMbCLmSI54md7UmFIsg1dUpsnHXqcwYeIewHiIj5Ibzd2RtjpGfWLXmd8/ AcYITr6T2dcQrMn1IwOb/crN29b8sPekF6FUAYoZ1+P3+yLgGzwridy5YrhlAMsTVadq KsfAtt50VhwoZRPnPfoxekbql+KIRycLhTZv+LwjIULkyKe952W/lv3wlNvUnidHDQHX YKPTLuLCsv5LZzb+QHS9Kq1bDo5y/Hlt2SpzsfUaW90UNYWjsWOlUCac8pD6eiiV0/eh Mrhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=P+Hr2vZBj523f/hNumWIvNErsZ9gHDPDeSGq54XWX7k=; b=P8IDSf5PTumWQDOz7gEd8OkuynUiUd7ssdr1JdK82E7mz7R8JwV9m+vpdIWk8Qr8DG 7xOZ1SHUyfiEzFSLHGeLPF3uv4a4H/xhfrAt9W9Foshxvha3n+HfOHMDQ+o+4tdpAbEi NZtolasMtQ6Ej5fhIK8ZokbPA2McW8ZP7z1NzIpvWqoVp8MsLw0jG8sl4u42hZdhvwAU hYj79p8WsnFfxVK0aT+S77VSIjsSqZDwk11RR4cl1pKH4Ivs41WwyPWjqFtuarRpHnyl 4OYnhJkW6cvnrpi+hMVU90S5CYiYstPR8l/ttKkOXwezQcYEwh0YpUQ50gsRI/pLWXVi wgZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m17si34120081pgi.514.2019.04.10.21.51.43; Wed, 10 Apr 2019 21:51:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726705AbfDKEti (ORCPT + 99 others); Thu, 11 Apr 2019 00:49:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37742 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbfDKEti (ORCPT ); Thu, 11 Apr 2019 00:49:38 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4504A307E04C; Thu, 11 Apr 2019 04:49:37 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-65.ams2.redhat.com [10.36.116.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id D291A5D9C4; Thu, 11 Apr 2019 04:49:33 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id A989F16E03; Thu, 11 Apr 2019 06:49:32 +0200 (CEST) From: Gerd Hoffmann To: dri-devel@lists.freedesktop.org Cc: Gerd Hoffmann , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] drm: fix drm_fb_xrgb8888_to_rgb888_dstclip() Date: Thu, 11 Apr 2019 06:49:32 +0200 Message-Id: <20190411044932.13247-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Thu, 11 Apr 2019 04:49:37 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Oops, the __iomem annotation was added to the header file only. Add it to the implementation (and documentation) too. Fixes: 5c5373b51bec ("drm: switch drm_fb_xrgb8888_to_rgb888_dstclip to accept __iomem dst") Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/drm_format_helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_format_helper.c b/drivers/gpu/drm/drm_format_helper.c index 319de608a088..da388012df2a 100644 --- a/drivers/gpu/drm/drm_format_helper.c +++ b/drivers/gpu/drm/drm_format_helper.c @@ -230,7 +230,7 @@ static void drm_fb_xrgb8888_to_rgb888_line(u8 *dbuf, u32 *sbuf, /** * drm_fb_xrgb8888_to_rgb888_dstclip - Convert XRGB8888 to RGB888 clip buffer - * @dst: RGB565 destination buffer + * @dst: RGB565 destination buffer (iomem) * @dst_pitch: destination buffer pitch * @vaddr: XRGB8888 source buffer * @fb: DRM framebuffer @@ -241,9 +241,9 @@ static void drm_fb_xrgb8888_to_rgb888_line(u8 *dbuf, u32 *sbuf, * support XRGB8888. * * This function applies clipping on dst, i.e. the destination is a - * full framebuffer but only the clip rect content is copied over. + * full (iomem) framebuffer but only the clip rect content is copied over. */ -void drm_fb_xrgb8888_to_rgb888_dstclip(void *dst, unsigned int dst_pitch, +void drm_fb_xrgb8888_to_rgb888_dstclip(void __iomem *dst, unsigned int dst_pitch, void *vaddr, struct drm_framebuffer *fb, struct drm_rect *clip) { -- 2.18.1