From patchwork Thu Jun 7 13:36:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 137891 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2108592lji; Thu, 7 Jun 2018 06:36:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKcwUbYSD6CJm/8wVHZKK1FzdQ/jLbYWbu+xgiXkVR+EW4+vdn7tYYO2xRRwoaQkRy8Ahfy X-Received: by 2002:a17:902:8a8c:: with SMTP id p12-v6mr2083295plo.94.1528378584717; Thu, 07 Jun 2018 06:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528378584; cv=none; d=google.com; s=arc-20160816; b=blmWr/T/juDvYwVVfAd9RyejuPjEJejTJA6C0qu3xPFdmp0RCbsckBuCDSvBD3zl9v Orzg9GSFvwjBKy7xeXsIjfVcT+r3dfxCwSpRQJysMck1izeOfqYiFxeP00rioR6/7e06 KA44g+GA9xx/8ytP63Y0FMs7aMM5Lau2svhUIrJgyig7g4cv2fMmQ0R2pNgtz6SLRxRb rRkk4aPwJo0qyyQRsTMe2ClAIuAjmWQD/Q/C3BotUSrSjWvxalXS0efP8/acXaLGsuBD PEicx7LqkUh1azV83VepucmLs+n6DoXsZAT0tRw+69EAB5bmsTk1XDo06Ic4rUutJXW7 hfPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=AefKi3G/Jz5No2tMch2tHPLG/fR6mziSu8pA7Dgq+II=; b=A0XpxrME6NuW8D7WVBel6ls8E534/bNa85c7plBdJIcv2qcLkWzhQa+2ZP5+oLn1EH SIEFHP3D68jTcNHpT5ep1gj2yxynnMa5UC9eNHzFN+u740Yr/iaSnlr1lZJ3SHZ9GcgI JPg9jM2zcCZ/cFnjjVade+uA+7yasiMPBqfQ2j6NgXvnNXEotBo1EqgyIwGTLUPWsUAV zcD07HEpo0rxQyGN1vU59Vh3mn8OFZfrXMPg4DMTzgN9rIC1XPT9/BYuvQiGwRYZgceh xsIl8eDXtFRdcjEj6NYNKqVFuxtnbF3vaqwGn0L+oQqvaz/8qW+78C5/1JpEl55zvo7N 4pEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=VF0Emv0V; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h127-v6si57919045pfb.111.2018.06.07.06.36.24; Thu, 07 Jun 2018 06:36:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=VF0Emv0V; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932489AbeFGNgX (ORCPT + 3 others); Thu, 7 Jun 2018 09:36:23 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:54082 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932578AbeFGNgV (ORCPT ); Thu, 7 Jun 2018 09:36:21 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180607133619euoutp02dbd30b58cb8dd4695023141cb970159a~15Dh6xXgS0788307883euoutp02J; Thu, 7 Jun 2018 13:36:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180607133619euoutp02dbd30b58cb8dd4695023141cb970159a~15Dh6xXgS0788307883euoutp02J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1528378579; bh=+tmMf8pRD+fFgbBw2lk3wiHek9Cz51/raOXAwsgJsVo=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=VF0Emv0V8JUpSkfjzzK99SmMTpu4gCA9VqZzZGnmsi9JHeO2mPzuEDuAJ7bg4CJsV V4KCq3WhSLc/Zl5cL5qy2+DOdpvwJGnGFwdYKcyUI4JXTpih6+3GQugOwDTCDxEfI7 5+CKm1TX+Gjaf5xj3Q1ICByU4dxWH/hMMuqdx+9E= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180607133618eucas1p2b16d0bcbd29790d2649d50ab1c2dea5e~15DhJMBR_2920229202eucas1p2P; Thu, 7 Jun 2018 13:36:18 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 47.A9.10409.2D4391B5; Thu, 7 Jun 2018 14:36:18 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180607133617eucas1p11a0b97f50b125b2167b05e5f7a60fc8f~15Dfz29vL2931029310eucas1p15; Thu, 7 Jun 2018 13:36:17 +0000 (GMT) X-AuditID: cbfec7f5-b45ff700000028a9-73-5b1934d2c204 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 0D.A0.04183.1D4391B5; Thu, 7 Jun 2018 14:36:17 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P9Y00B59GGBIO30@eusync4.samsung.com>; Thu, 07 Jun 2018 14:36:17 +0100 (BST) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Inki Dae , Seung-Woo Kim , Andrzej Hajda , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Tobias Jakobi Subject: [PATCH 4/4] drm/exynos: gem: Switch to drm_gem_object_put_unlocked() helper Date: Thu, 07 Jun 2018 15:36:09 +0200 Message-id: <20180607133609.28397-5-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20180607133609.28397-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRmVeSWpSXmKPExsWy7djPc7qXTCSjDf5f57W4te4cq8XGGetZ La58fc9mMen+BBaL8+c3sFvMOL+PyWLtkbtA1uSXbBZtqz+wOnB6bFrVyeZxv/s4k8e/Y+we fVtWMXp83iQXwBrFZZOSmpNZllqkb5fAldHzZT1jwSLOiiPzZ7A1MH5i72Lk5JAQMJE4//sE axcjF4eQwApGic6Hq5khnM+MEnu7LzHBVJ3umskMYgsJLGOU2LFPEaKogUli9p7dbCAJNgFD ia63XWC2iICbRNPhmWBjmQU2MklsfjQRbJKwQJjEkY0/wYpYBFQlFu58wAhi8wrYSnTP/sgM sU1eYvWGA2A2p4CdxOT3O8FOkhCYwCax7/t1FogiF4npt/uhnhCWeHV8C5QtI3F5cjcLREMz o0T7jFnsEE4Po8TWOTvYIKqsJQ4fv8gKYjML8ElM2jYdaAUHUJxXoqNNCKLEQ6L53kMmiD8n Mkr8Xd/HOIFRcgEjwypG8dTS4tz01GLjvNRyveLE3OLSvHS95PzcTYzAuDz97/jXHYz7/iQd YhTgYFTi4W24Lx4txJpYVlyZe4hRgoNZSYQ38ZJYtBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHe OI26KCGB9MSS1OzU1ILUIpgsEwenVANjmEikYhDT2Yxpi+b83rj2fvvz/QU7KtYleqSVH541 f/rq6ytvhed/Ofrih8PdaTfWfFyzxfzHcwaPhy8039lp1Z3S6fgbFdZvx3bl4D3Z+SFXpQo+ 9L2cs2/Ps/v7JJwlFwYcifBUcam+Ou31T11m9hM3er88LyrYKyorIbqlzlTXyvftRtkvZkos xRmJhlrMRcWJAMmHMlnHAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprILMWRmVeSWpSXmKPExsVy+t/xa7oXTSSjDZrvy1ncWneO1WLjjPWs Fle+vmezmHR/AovF+fMb2C1mnN/HZLH2yF0ga/JLNou21R9YHTg9Nq3qZPO4332cyePfMXaP vi2rGD0+b5ILYI3isklJzcksSy3St0vgyuj5sp6xYBFnxZH5M9gaGD+xdzFyckgImEic7prJ 3MXIxSEksIRRYub2c6wQThOTxO5t+xlBqtgEDCW63naxgdgiAm4STYdnghUxC2xmkug53g9W JCwQJnHzzVwWEJtFQFVi4c4HYHFeAVuJ7tkfmSHWyUus3nAAzOYUsJOY/H4nmC0EVLPuzWK2 CYw8CxgZVjGKpJYW56bnFhvpFSfmFpfmpesl5+duYgQG1LZjP7fsYOx6F3yIUYCDUYmH98ZD 8Wgh1sSy4srcQ4wSHMxKIryJl8SihXhTEiurUovy44tKc1KLDzFKc7AoifOeN6iMEhJITyxJ zU5NLUgtgskycXBKNTBGiU1d+W3BLudE27mm+/XM33X+myTy+J2ZxuzPgh6l52TdDW4vnTA7 4PyOrMlxLFulLD1TvTkmcvAZBO5ha1VKdZ6/w1r0DXeWGPe7aaKpf3LzroUtOSJqwbzp0B6V wIVf793etClAdqd08vnkCyeOKfQ1hc5Z8vd45022VYc9tv6W4dVcfihXiaU4I9FQi7moOBEA NxWqPCQCAAA= X-CMS-MailID: 20180607133617eucas1p11a0b97f50b125b2167b05e5f7a60fc8f X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180607133617eucas1p11a0b97f50b125b2167b05e5f7a60fc8f References: <20180607133609.28397-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org drm_gem_object_unreference() function is just a compatibility alias for drm_gem_object_put() and should not be used by the new code, so convert all users of compatibility functions to use the new API. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index 0b8c6f8fc48a..34ace85feb68 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -143,7 +143,7 @@ static int exynos_drm_gem_handle_create(struct drm_gem_object *obj, DRM_DEBUG_KMS("gem handle = 0x%x\n", *handle); /* drop reference from allocate - handle holds it now. */ - drm_gem_object_unreference_unlocked(obj); + drm_gem_object_put_unlocked(obj); return 0; } @@ -335,7 +335,7 @@ int exynos_drm_gem_get_ioctl(struct drm_device *dev, void *data, args->flags = exynos_gem->flags; args->size = exynos_gem->size; - drm_gem_object_unreference_unlocked(obj); + drm_gem_object_put_unlocked(obj); return 0; }