Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp401234pxf; Wed, 31 Mar 2021 06:22:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySXmZ22YLx6uX74mjyoD0IpxKMG6UQvTueKHn1ad2sxGaXVXtt9kMvt110L8YwkkrtUFSD X-Received: by 2002:a17:907:ea3:: with SMTP id ho35mr3517682ejc.219.1617196962777; Wed, 31 Mar 2021 06:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617196962; cv=none; d=google.com; s=arc-20160816; b=eYLjfvzFxAKkmOfuExCb5XtlkJv7w8rpMdfjzBCKjykxuPFMCTA/+1oHt2zLWzXxMJ 62oQEpzKGuEBv0qwbPT2fNgPIUgemTSZv8F+d3M4hzfl2yRZmTPDzU4lZtVwwj/yd3Gh R76QMIQYeskI9FCOKiocSfTnkC6K9o7WRt8qnggzKCioTrvp2Fc89QaGCR0Nv3/ml/Rr MZ5xRaCKfZhRVZrxX6Lg7lOQyXml+Rs/hsSI4rjuIJzpznOqmW1D3xAKZHCRO7Rp1HhV aSv1U/4Vz/S2i/p5S/pbTnJcE7pMpkGVZwjv5MyOnTeSzBmQzVzwxnhrAR3dTNwVcQBh apPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=fofaY+R2m6ALmx90rflMXETHKN7+Q6oRBOoA1ZFjd+U=; b=bWdDj3WUjZ/KaCLRmfswRSvSE42dHaldl31ZKbVEQsi9ejHDGJ4VNkyoVs599ddQZy tvyFnXI9cG3Uap2sqXoa+m9ymK3QqmR9uTZuuhbrNoTM+WhKBwHhH7zqfYt6Hqyqav4o ej9Cxw/eL51AEron4wUmiVF2Q/dpdX6Xd9MYlQ6tbE1vInLwmW328WpsLE6dT0eNo4e/ 4TmuVeV0GDf3FuDZIllligbVH0id5jcWNnwKZyyd1xqc+tyvSefIjtOL7PMx+K7t8YO9 qmpSJU7glTjkkOJxQ3Av1q6qiBwJtNSr13vcS3Ohp1nQmgFSVYrtyCtFeQu54+EQvH0s udbg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn17si1805337ejb.183.2021.03.31.06.22.19; Wed, 31 Mar 2021 06:22:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235848AbhCaNVp (ORCPT + 99 others); Wed, 31 Mar 2021 09:21:45 -0400 Received: from mail-m121143.qiye.163.com ([115.236.121.143]:34810 "EHLO mail-m121143.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235783AbhCaNVN (ORCPT ); Wed, 31 Mar 2021 09:21:13 -0400 Received: from ubuntu.localdomain (unknown [36.152.145.181]) by mail-m121143.qiye.163.com (Hmail) with ESMTPA id D1121540562; Wed, 31 Mar 2021 21:12:57 +0800 (CST) From: Bernard Zhao To: Christian Koenig , Huang Rui , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Bernard Zhao Subject: [PATCH] drm/ttm: cleanup coding style a bit Date: Wed, 31 Mar 2021 06:12:51 -0700 Message-Id: <20210331131251.60883-1-bernard@vivo.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGEIdQ0xPTxlPGkMfVkpNSkxKQk1ITENLTUpVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6K006Szo4HD8IFjUYNy8ONFYw GBVPCRhVSlVKTUpMSkJNSExDSE1IVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlITVVK TklVSk9OVUpDSllXWQgBWUFKQk1JNwY+ X-HM-Tid: 0a78886a678ab038kuuud1121540562 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: drivers/gpu/drm/ttm/ttm_bo.c:52:1: warning: symbol 'ttm_global_mutex' was not declared. Should it be static? drivers/gpu/drm/ttm/ttm_bo.c:53:10: warning: symbol 'ttm_bo_glob_use_count' was not declared. Should it be static? Signed-off-by: Bernard Zhao --- drivers/gpu/drm/ttm/ttm_bo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 101a68dc615b..eab21643edfb 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -49,8 +49,8 @@ static void ttm_bo_global_kobj_release(struct kobject *kobj); /* * ttm_global_mutex - protecting the global BO state */ -DEFINE_MUTEX(ttm_global_mutex); -unsigned ttm_bo_glob_use_count; +static DEFINE_MUTEX(ttm_global_mutex); +static unsigned int ttm_bo_glob_use_count; struct ttm_bo_global ttm_bo_glob; EXPORT_SYMBOL(ttm_bo_glob); -- 2.31.0