Received: by 10.192.165.156 with SMTP id m28csp712515imm; Mon, 16 Apr 2018 07:33:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+JaHub47V8xlLAz4Ub4ZqufsSoiJl9VG9rpaWyIpQD/ydmsumbW4Xt6esEoYvzidWbkONp X-Received: by 10.99.126.71 with SMTP id o7mr12957449pgn.366.1523889200919; Mon, 16 Apr 2018 07:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523889200; cv=none; d=google.com; s=arc-20160816; b=t1/BJpGYfi88UmhzgcgOO4CYPLGZbOKl7IW7QDW4QIOTmeRAHPQza79fLGUK3cv4Pu KPfY1uhVeUtElueWo3B4ppNAF0+HufEsa44OJDpIWBdwDthhc3qqvw0Dq9LL8YB2pSvx amZ0UZZZGuN+iVEtjryTq4H60dcNM3lsQ63nROl6/Dna1o4StKm3ktJnjj47MKBQlaGh S1pi/Waxy/Xh25zPvDNLw3mGn68Hewnoo8/soo+D7WO0zoSPUe/ZwJ+ZYbI7gbmrnOZy nBdDq9iBNdnEqT2y8U9p7e4DRCYW35mgbZZ42L2BfKlj8mNs+QHjfPjJ276xh3vj0HwL oTDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=BCk03uBVG5Nx/+bVDafWPuWlcdIRAsOQ0opNPSGj1no=; b=oQeQ0i/RaoEwAIfEkj7G2Pijo3WmcaruYDaD4Zt8pV4Lg98vKb25aVREBmbq4n29xB RK/v7/D5RlPki1fImqbegfCzcY1ENR/JbE04Y5W4Pjpp9X1cdwarx0Q+zy5yFjLDUnzT 77SO8Vrqz0A4J0vSj1qfQwk4IVypPtI1BayNheUnfVnbEn4MiS1d4x4T9GzawqsLLM8Q sBy5Pd+T5XqABwxXkWXMx/Vq5C3j9u6ITFp1zQ1pbym5/BYs/Wg3IP5GiOJovSmtWcpB 0nOF1FefK2SEIoueC3Nfdi5SDRSZW5MOWxhjcoE8LVGclrh8p3oTP6uZ9ff6p/FY2l9W G8tA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 204si5704996pfu.274.2018.04.16.07.33.06; Mon, 16 Apr 2018 07:33:20 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753993AbeDPMYV (ORCPT + 99 others); Mon, 16 Apr 2018 08:24:21 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:2490 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753069AbeDPMYU (ORCPT ); Mon, 16 Apr 2018 08:24:20 -0400 X-IronPort-AV: E=Sophos;i="5.48,459,1517871600"; d="scan'208";a="323043917" Received: from smb-adpcdg1-03.hotspot.hub-one.net (HELO [10.198.7.214]) ([213.174.99.131]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Apr 2018 14:24:19 +0200 Date: Mon, 16 Apr 2018 14:24:19 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Daniel Vetter cc: Joel Stanley , linux-aspeed@lists.ozlabs.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Andrew Jeffery , kbuild-all@01.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] drm: fix drm-get-put.cocci warnings In-Reply-To: <20180416074535.GH31310@phenom.ffwll.local> Message-ID: References: <20180416074535.GH31310@phenom.ffwll.local> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Apr 2018, Daniel Vetter wrote: > On Thu, Apr 12, 2018 at 07:54:10AM +0200, Julia Lawall wrote: > > From: Fengguang Wu > > > > Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and > > drm_*_unreference() helpers. > > > > Generated by: scripts/coccinelle/api/drm-get-put.cocci > > > > Fixes: 6784ac15bc68 ("drm: Add ASPEED GFX driver") > > Signed-off-by: Fengguang Wu > > Signed-off-by: Julia Lawall > > --- > > > > tree: https://github.com/shenki/linux drm-v1 > > This isn't an upstream tree (and the aspeed driver isn't in upstream > afaict), so no need for spamming mailing lists I think. Perhaps you can contact Fengguang about this? I just forward to whoever the automatically generated message says to forward to. And I don't always remember to include the information about the tree, which comes to me in another message, so it can indeed be confusing. > > But thanks for doing all this, great motivation to put more of the drm > refactorings into cocci files. Most welcome :) julia > Cheers, Daniel > > head: 9680ed7979d5d403c6bde36271a048d62c048180 > > commit: 6784ac15bc6889280522b04b97f1fb1208ee45e7 [23/27] drm: Add ASPEED > > GFX > > driver > > > > aspeed_gfx_drv.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > --- a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c > > +++ b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c > > @@ -268,7 +268,7 @@ static int aspeed_gfx_probe(struct platf > > err_unload: > > aspeed_gfx_unload(drm); > > err_free: > > - drm_dev_unref(drm); > > + drm_dev_put(drm); > > > > return ret; > > } > > @@ -279,7 +279,7 @@ static int aspeed_gfx_remove(struct plat > > > > drm_dev_unregister(drm); > > aspeed_gfx_unload(drm); > > - drm_dev_unref(drm); > > + drm_dev_put(drm); > > > > return 0; > > } > > _______________________________________________ > > dri-devel mailing list > > dri-devel@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel > > -- > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch >