Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2922868yba; Tue, 16 Apr 2019 00:27:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqydVVRO9T0wRaXizlY1kzS8BxExoUOOI2Nm/Bse0PxIkWMPRhFNIvpgj7X4lZHIrdaM60rP X-Received: by 2002:a65:6108:: with SMTP id z8mr74977649pgu.106.1555399632358; Tue, 16 Apr 2019 00:27:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555399632; cv=none; d=google.com; s=arc-20160816; b=z27BzdF1y0EwqJsXVPVLsv1zh4qODnUK38ty/JOwmdWiVXGLgtFW6q678AooHZOtuB CxH1A08Ekkk2ltR02FktZZOr6mTDwIP/z18ic7AulxCoMlTxDH+K3Hn//8AZetLyUbVy tRkipe5OwOjntT64ywXA+v/gVp1soMYCfmcbju4raltcr+NEnzj0o1YNZ8kmE02h2tnv ryzeT7k8720WQqu0uq8kdAixi9w7/sawadqLzk/0UulrTYof5DAbqI7e4hR1pXkHUdZw Oc+RmVIVQjaEHM7o9Tj1OoY573Lfwj3Orto8C/WClhvXe4St4EkV8zFXFKRkJO2autYM mHIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=++7GNxojVLlwznIFjjwVt5D6h/jm9btpA+lc+r10FF4=; b=o637BA71a+p/xjbTiPmGdVZl6htVyCsH6q2piIr/4OONbxA6+2U0t47tzg0kbmuEXW PBVzkXuFE7HwKIundQYlDOyAPmpzyRtVojIQXqU4IynnIfsjbiTPdgKW0PfeSxDo9kko tC/zcaf4ul1/qi6pbALbPU+F53UjWNwzruHJcQ97tP2ogzwFMCW6PbdJ2OiogiJzRH5j byb3oNsJOyR/aBwVPPNBuqjecIenNq6+9wHhAZK025cuQBZfvpzctXKWLVyhT7JVBMOO 8YJSBS7ludz8RP9ivoVAt4Fe0elbxiFZKBueEX2wx/4d2VE9VYD8o3SnYRyzvO7G9VZr L47g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=LnjvjKG4; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u70si45411745pgd.455.2019.04.16.00.26.55; Tue, 16 Apr 2019 00:27:12 -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; dkim=fail header.i=@ffwll.ch header.s=google header.b=LnjvjKG4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728569AbfDPHY6 (ORCPT + 99 others); Tue, 16 Apr 2019 03:24:58 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46743 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727828AbfDPHY5 (ORCPT ); Tue, 16 Apr 2019 03:24:57 -0400 Received: by mail-ed1-f66.google.com with SMTP id d1so16939823edd.13 for ; Tue, 16 Apr 2019 00:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=++7GNxojVLlwznIFjjwVt5D6h/jm9btpA+lc+r10FF4=; b=LnjvjKG4+1gvHHKqt+GrmossZ+Cam5CQvr306UV2C0YVdAYmVbHh5mSJ1O7MmSDLl1 MAxudnSTnaDkvolyi9OAfMwZsznm6XasRIZWvr+dLj5w4NHDdEhehn6zTMp5DG3soFhM pdug8gA/L4BbwQE1pf2EIimiIlFuVpRL6t0o0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=++7GNxojVLlwznIFjjwVt5D6h/jm9btpA+lc+r10FF4=; b=RIn/lAGjQ4PIYzEZ0pPBJPSmEsnqNZcEEjJxabpK3I9yHz5J2Ku+nNaHpDignJYGkA IqqXwLrREJNwgd/XS907Rxa1DLnzDHGpWSA3v9jZA4jcSoJpSeFCWb8VLHdzTM/dG9af fFk77moJOkmoP2BbPSXRfuQwykF1BLlC2ezCqzGWJnzS5xH35f0W44QcPIX2FJDYCKyJ /goGdt6iwa/IzZuA8XDWl03JToD0tsS67c+/BgkO5OajFx9UKgH8picCBe31tXBO0vof Q/2NaRu+akzp3r0DmdFfzV6pg7vEYzzPNybgPRBe2DD2Hd5AbBXWda1GCZmOu7i+nJaY 3Jjw== X-Gm-Message-State: APjAAAULlVVL9c/nvVTvxtGS8W3IwLdpKUSa6iVOtT7e6SKLQ8o3yJXV iRhV9eLqzcPLj5QscCr7IYP2hg== X-Received: by 2002:a50:eacb:: with SMTP id u11mr44725846edp.212.1555399496177; Tue, 16 Apr 2019 00:24:56 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id y5sm9315547eds.7.2019.04.16.00.24.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Apr 2019 00:24:55 -0700 (PDT) Date: Tue, 16 Apr 2019 09:24:53 +0200 From: Daniel Vetter To: Gerd Hoffmann Cc: dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , open list Subject: Re: [PATCH] drm: fix drm_fb_xrgb8888_to_rgb888_dstclip() Message-ID: <20190416072453.GL2665@phenom.ffwll.local> Mail-Followup-To: Gerd Hoffmann , dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , open list References: <20190411044932.13247-1-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190411044932.13247-1-kraxel@redhat.com> X-Operating-System: Linux phenom 4.19.0-1-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 11, 2019 at 06:49:32AM +0200, Gerd Hoffmann wrote: > 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. > */ All this nice kerneldoc isn't pulled into the docs in Documentation/gpu/drm-kms-helper.rst anywhere. Can you pls fix that too? Thanks, Daniel > -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 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch