From patchwork Thu May 7 15:08:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 11534255 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AE818139A for ; Thu, 7 May 2020 15:11:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8CE7A2073A for ; Thu, 7 May 2020 15:11:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="vWmKYhMC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8CE7A2073A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CE61C6EA08; Thu, 7 May 2020 15:11:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id F022E6EA05 for ; Thu, 7 May 2020 15:11:15 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id g13so6817736wrb.8 for ; Thu, 07 May 2020 08:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qj0fciDKm4BgS9H+keoJPPJB0rWTQCvkiCgAsmiMHo8=; b=vWmKYhMCXSt5OB7tdHDNCbhAHtmMxq7KdhSHQ/7WVpDtN3Aj3fxq8GXkzzB6wi48oX b1fV2gvm+i4PsY5sskuCVhFlh0uGehTvrZbMYe6X+d16aZNTAXICs+Mca9S/CcOeyoe4 y2Su6zht1rxwiqecgP9QV8vKvfxizLxh/7eREZplLFO9lObRGWvpZ3JK52iMBgEvp/XZ 50xLzQurcgPoRJZrh1xiHF7kH1KMADmVekQfTXAi3K+dRohjcMULA01YhxVSz/uGYFwj Dzq9/BvUZ7zzDrJDsCXkVneVunCKs0gzVjfBgHKqdcFZxEbD37NZbEJJ10slKgxZrlVb AS1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qj0fciDKm4BgS9H+keoJPPJB0rWTQCvkiCgAsmiMHo8=; b=L4KcSmUKkJjcPutuJDj2UowfavdgCwBesVfkksXQV/NVQmLmVQz2szcY1OycPBsVPT 15vTM4BkfCpPBX3JwNW+460EKDGcklm4tKnGGkLUuvQ+IqG8e5LdzP9Wibm1YGnE20Ns jdHcTfGANsq5hxkfhxnrS0PZ+UOU3Q31E7S+neYiY6AiQGEKPbPxtlPjwRBkxNgCbnGe h3c/5HYITEnT7h1dNUdqgoCVYzOPGsU/K0838PMU6QI5hp90VUu/L1PQnk2TMO4pZsWp zVZVck58K6Ovo39IvH5OMiZBW2VhjM7h8t6E2wBSZ8yQmXpG8B2pe3LUT1DsyUqQJ1SJ Yr9Q== X-Gm-Message-State: AGi0PuYgG4sIIGITebWbdOMhxdIs7K7oMTrb1QcMXUStbDmg7V28/3/U BJSGeRiuiDMmm5/mkUK2P5t0WN1/ X-Google-Smtp-Source: APiQypJAHgeGz0ygl2V55XgZSftdih0CmQKYb04vMwGkRiiNddcyWEXXeK+wKa3Y6yb4Br6QYkipnQ== X-Received: by 2002:a5d:49c3:: with SMTP id t3mr14982385wrs.94.1588864274362; Thu, 07 May 2020 08:11:14 -0700 (PDT) Received: from arch-x1c3.cbg.collabora.co.uk ([2a00:5f00:102:0:9665:9cff:feee:aa4d]) by smtp.gmail.com with ESMTPSA id b66sm8704247wmh.12.2020.05.07.08.11.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 08:11:13 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 16/36] drm/exynos: remove _unlocked suffix in drm_object_put_unlocked Date: Thu, 7 May 2020 16:08:02 +0100 Message-Id: <20200507150822.114464-17-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200507150822.114464-1-emil.l.velikov@gmail.com> References: <20200507150822.114464-1-emil.l.velikov@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Seung-Woo Kim , emil.l.velikov@gmail.com, Joonyoung Shim Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Emil Velikov Spelling out _unlocked for each and every driver is a annoying. Especially if we consider how many drivers, do not know (or need to) about the horror stories involving struct_mutex. Just drop the suffix. It makes the API cleaner. Done via the following script: __from=drm_gem_object_put_unlocked __to=drm_gem_object_put for __file in $(git grep --name-only $__from); do sed -i "s/$__from/$__to/g" $__file; done Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Signed-off-by: Emil Velikov --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 4 ++-- drivers/gpu/drm/exynos/exynos_drm_gem.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index d734d9d51762..642a276e869b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -139,7 +139,7 @@ static int exynos_drm_gem_handle_create(struct drm_gem_object *obj, DRM_DEV_DEBUG_KMS(to_dma_dev(obj->dev), "gem handle = 0x%x\n", *handle); /* drop reference from allocate - handle holds it now. */ - drm_gem_object_put_unlocked(obj); + drm_gem_object_put(obj); return 0; } @@ -333,7 +333,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_put_unlocked(obj); + drm_gem_object_put(obj); return 0; } diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.h b/drivers/gpu/drm/exynos/exynos_drm_gem.h index 42ec67bc262d..0e8d2306c08a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.h +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.h @@ -86,7 +86,7 @@ struct exynos_drm_gem *exynos_drm_gem_get(struct drm_file *filp, */ static inline void exynos_drm_gem_put(struct exynos_drm_gem *exynos_gem) { - drm_gem_object_put_unlocked(&exynos_gem->base); + drm_gem_object_put(&exynos_gem->base); } /* get buffer information to memory region allocated by gem. */