Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4741395imm; Fri, 18 May 2018 09:53:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoX0doxIwJMT7ZPk3h+Psnwvn3SpgWvHKeXTxtqpqdjrBUfhCPJmmrBYwTU8bpX4PHQl2fh X-Received: by 2002:a17:902:6903:: with SMTP id j3-v6mr10281983plk.313.1526662417383; Fri, 18 May 2018 09:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526662417; cv=none; d=google.com; s=arc-20160816; b=yeh7/I4XrHEBBKDZsrVyK+ZHCJ3DPxtxiTvGZaafclwlu36VZB7qlTf4enEBKrbgVA HhUeXESqiroTIDNlQLSuNlNkYfMVy4MhJQNir4OhLu7p5c0aTJLv+3ODFqjLINmLENkN xWbsifNjnesOv/IN74f9w3dz83i7FzVsJN7hIg+r4rhcgG2+iV0jiwmRwngsrfrJwyTy L5w42ZWuKkqWH2uRbq/dCaSaPFau1NVEgTCwfSgwek5fWvSvDG+gjYBNujZTTdUFWU+c BQaALmMdnyLhrCmtUeQSaMi2NcP+TCJFleiLu6+CV2VyV5iCAhY4smBZTC6xk5PInGM3 gDXg== 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:message-id :subject:cc:to:from:date:arc-authentication-results; bh=3TRT6qsY7nxPFbsbEDGiIaVSnBC8hZpKP5V7d/2Ixh4=; b=i8S5zO8gf8kctcuZdzXxVheRyShU+WML42+w5XESSCMAcMLygRzDLT6OOrNS1mUC5k CN73bs4oDCNQWuGGLKe3J73T8iellw9mxA7M+GSYbZx91Ux/2gn2xrPB2Wj6SRzyhVzo jRj/C6Wd1xv8sKReEKCOC8vpFYSw0LZPY6PLl/2EzjWT1RtN6X1NdzF+AMUZqngzx3xL Cvm6mJCeJgvf+BxeMLDNxbPdNM8iw4GOlDtHyIU156DfbnXkSsY8tGSkklHsytCkiXqE MobA/bLMNqGPhKMV4JpUPg4OixEJeDUaarB2jK2xDOspvuo+dCMUp5vSz+b3PGJQzZO9 pkBQ== 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 p9-v6si7624560plo.208.2018.05.18.09.53.23; Fri, 18 May 2018 09:53:37 -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 S1752709AbeERQvh (ORCPT + 99 others); Fri, 18 May 2018 12:51:37 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:25699 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752428AbeERQve (ORCPT ); Fri, 18 May 2018 12:51:34 -0400 X-IronPort-AV: E=Sophos;i="5.49,415,1520895600"; d="scan'208";a="327530475" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 May 2018 18:51:33 +0200 Date: Fri, 18 May 2018 18:51:32 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Ben Skeggs cc: kbuild-all@01.org, David Airlie , Daniel Vetter , Maarten Lankhorst , =?ISO-8859-15?Q?Ville_Syrj=E4l=E4?= , Archit Taneja , Alastair Bridgewater , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/nouveau/kms/nv50-: fix drm-get-put.cocci warnings Message-ID: 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 From: kbuild test robot 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: 30ed49b55b6e ("drm/nouveau/kms/nv50-: move code underneath dispnv50/") Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- tree: https://github.com/skeggsb/linux linux-4.18 head: 6c46d01f25bcf74608d09645c27c35c3f3940ebe commit: 30ed49b55b6e44e004c3095671e74fea93ee84cb [105/165] drm/nouveau/kms/nv50-: move code underneath dispnv50/ disp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -3254,7 +3254,7 @@ nv50_mstm_destroy_connector(struct drm_d mstc->port = NULL; drm_modeset_unlock(&drm->dev->mode_config.connection_mutex); - drm_connector_unreference(&mstc->connector); + drm_connector_put(&mstc->connector); } static void