Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp809144pxf; Thu, 1 Apr 2021 14:16:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMVg/ORB/BpC5Y/8xl8p+HHBWajjoaX1vQcwlGNi/QRKFWMGDB6UrFiFH6/OKvAxNUDcv2 X-Received: by 2002:a50:e702:: with SMTP id a2mr12316093edn.3.1617311794156; Thu, 01 Apr 2021 14:16:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617311794; cv=none; d=google.com; s=arc-20160816; b=JeCs6Fg1xZGcyH6HM02UKxh7qVGkPx/3POtY5qzMOzuOHZNnV0+TM7LT7+O1L+A4bD /wCmUBOAOYfVl8LxoPX3gnia4r6VuLH134Hf/ShcJWDbbgPccnhnI7bfsmsgZ+GYLwbR BtD9gaAvD4oZeKcE48HEXyTy1c6Co1RXL2+EgPjADl+kuSyJnr5wV58WFVXFrC9Y4Xl3 56vJT/hlr03MPKHBpv62t9RxDh1udXGmFPdwy3kJ12YEJOH+xzWDl8BRReuj4vWp85Lq 1CAz2kQhaCqXevB9tqf6IuhEpR9Td9Smq6PpARpPCPYV3jjlUfksanGYiUYu8aW/tdRV kSkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Mz7i+O/62DXgGIQyQsg18R3Fvz4BySpF9dt5BSlgKK8=; b=TXpA3VIM43e0qDCqmZJy5UZUXKkOETwx3KTJLwrZ64P3UUNTObv9AOV7rZMQl8xGgg 1UY4474LjNQ3L1kZfSU3Skeupcqk+BCaNCewFeP9Zb3VY9JXrGtPk+fJK+jzDLRYDRWg 94B065YcpqNikqicYaKZ8UfDcEgfhDsup9COye5mctUQMGnjI89Xto2o40K4XOtP5Q/X Jkc4zyyY5cuMgAR6Uemeu5a7VS7gL63Bke7r4GJZbJeX3XrUgnIoM8VPH97pwJBNalXl +vyyKaATUQ4siCXq95jPLWpbv1BDMxLWpXkeM3rcIhX6flWBDtUg5DmWyk5WQpuXZ/9h NK5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EvINbiO5; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kf17si4870941ejc.308.2021.04.01.14.16.10; Thu, 01 Apr 2021 14:16:34 -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=@gmail.com header.s=20161025 header.b=EvINbiO5; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234065AbhDAVPk (ORCPT + 99 others); Thu, 1 Apr 2021 17:15:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231179AbhDAVPk (ORCPT ); Thu, 1 Apr 2021 17:15:40 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C515C0613E6 for ; Thu, 1 Apr 2021 14:15:40 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id k14-20020a9d7dce0000b02901b866632f29so3374442otn.1 for ; Thu, 01 Apr 2021 14:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Mz7i+O/62DXgGIQyQsg18R3Fvz4BySpF9dt5BSlgKK8=; b=EvINbiO5R9MEULvTambjfGRw/tggaCs6bGmgVlfnQ7EYfraVpcPhuVPvf15SpEqwIA x2SM2sD8JrCgB8leKbD2u0UFdCNZGUD9dXtR+AMaVjMXv8SkVyAlcyxMzmV/dknauBVP tUGfa3cSqdGoPDuTn7gXG9rQ1+8XPNYSyftQAebbFF3g0sdC2BFU1k8pz1SsAQYS095Q c28dAsQnSKv/OVKqpUbboI6WP5Ye1fCtaNneik0QTYeKgAYF9x3hlKqUqw+fUyWF4upe WG/QkSOq/qitsybcG/jGtGzOAOBzgZO0cHVj3WNmL3wZ5qxpw2CO5YnbE/KBi06evgBJ 7W+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Mz7i+O/62DXgGIQyQsg18R3Fvz4BySpF9dt5BSlgKK8=; b=B7MkfYkYBVQgvHvyeQPprdao5qhrxX2utlplzRWJQS1M+OGEIlWQz3UqNF/XWjK+0d gVz5FutTff9WFZ0BhSvUgm8Ahm4JJe7MOvGPQOynJmdyy9IDkBwCPdFABoCj2DOMNHH4 fm3HotMvq/9YkSkZ4yOeFs5jToMXIXYbwNF7siC+oaOc4YJE0kBxPFoGbUTZlrOFa5Xi 4jsvAznd4I0FY7ghbll5ScFA0ZHaFDDb7Y/dO/G4L6r0RIaQswVuzUFOYpPOQzbabxgI NKhli3jeZkWCoG/e0Jks2aofWnPJaDcEdLmTNY1AI45WSuEQfC+UjexEQnPfj+Ffym+Y +lMA== X-Gm-Message-State: AOAM531b9CZix+UtWvNxPwBnnlNZSM7ARpPh522905ATJGtmBylYpU7a yxS080tAI0YfyXZtZ4DUSawWl4zGQagKBNydnkk= X-Received: by 2002:a9d:d89:: with SMTP id 9mr8507614ots.23.1617311739900; Thu, 01 Apr 2021 14:15:39 -0700 (PDT) MIME-Version: 1.0 References: <20201024004706.24518-1-linux@rasmusvillemoes.dk> In-Reply-To: From: Alex Deucher Date: Thu, 1 Apr 2021 17:15:29 -0400 Message-ID: Subject: Re: [PATCH] drm/ttm: add __user annotation in radeon_ttm_vram_read To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Rasmus Villemoes , Alex Deucher , amd-gfx list , LKML , Maling list - DRI developers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Current code already contains the fix. Alex On Thu, Apr 1, 2021 at 9:09 AM Christian K=C3=B6nig wrote: > > Am 24.10.20 um 02:47 schrieb Rasmus Villemoes: > > Keep sparse happy by preserving the __user annotation when casting. > > > > Reported-by: kernel test robot > > Signed-off-by: Rasmus Villemoes > > Reviewed-by: Christian K=C3=B6nig > > Going over old patches and stumbled over that once. > > Alex did you missed to pick it up? > > Regards, > Christian. > > > --- > > > > kernel test robot has already started spamming me due to 9c5743dff. If > > I don't fix those warnings I'll keep getting those emails for > > months, so let me do the easy ones. > > > > > > drivers/gpu/drm/radeon/radeon_ttm.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/rade= on/radeon_ttm.c > > index 36150b7f31a90aa1eece..ecfe88b0a35d8f317712 100644 > > --- a/drivers/gpu/drm/radeon/radeon_ttm.c > > +++ b/drivers/gpu/drm/radeon/radeon_ttm.c > > @@ -1005,7 +1005,7 @@ static ssize_t radeon_ttm_vram_read(struct file *= f, char __user *buf, > > value =3D RREG32(RADEON_MM_DATA); > > spin_unlock_irqrestore(&rdev->mmio_idx_lock, flags); > > > > - r =3D put_user(value, (uint32_t *)buf); > > + r =3D put_user(value, (uint32_t __user *)buf); > > if (r) > > return r; > > > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx