Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp370332ybj; Wed, 6 May 2020 20:23:55 -0700 (PDT) X-Google-Smtp-Source: APiQypIanJaDtr/ziAYHJsWNak1aY21U0mXqgW5bpbTNcbjGCQcO/zhNroTBO4jaGcsr1XRinZPi X-Received: by 2002:aa7:d0d8:: with SMTP id u24mr10451661edo.138.1588821835081; Wed, 06 May 2020 20:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588821835; cv=none; d=google.com; s=arc-20160816; b=f/XiOHqO9/sY7+t4pl8pkVI83mJDis0EtxT4tiU1y4CvMk16vOdpV4fJCwDuNV5TNb PfcFPBi4LHKN8AwuMKHZel/mCJ7lTaLp2RSkFo30tW2hvEAhT0sEvNQxLappJBJddaem 08tjvnsRf/8PJJ1fnt4L65hLJLoL9rQBXiBrnRNpm6SrvCXDpEWp1Yzw2QE2iO4zKfcq pMlqINRJhdq1rO4fjc5yfVPNkjt7fDcrbtWF2XetW1wTfzJdBYgzoLkUK2SD4HyQHnSI up/fn6fs0F8K7CD9dssgBenGiSJ++vN8fHnGi1Vg5Ya0QVYCpFPvORgsNufo61kRxUJn h8TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=SVcDJvjil8E6ZaxPnLc+31/9rZ0urIJuZGskmmpi1FU=; b=g5jDx7DoLZN4HEvlyPSYr4hCyHzmS4GM49JE8xnbWwxTcqEBSbPZ8/dKvD9BnaeEhZ Jp3iG2OXCqIK7Jev9GIgGlCsJTGJan5bTn2+Owo1ogTZHLZbq3mfGWv0GhPOSWMxQkJN aqtL0GKTLWq7ycXT0WSY8+/y07pto7GBvlGa5VJIRr3MsJ6au8v/DNccdrFw3cFF1l7b YlctLT6cQ3W0VHBIU4lyvT/czAFD8uWurnCdhLeD4xQMsJd3yzuYUbKbj2pqyjhdUou8 AU0pEKI6UIffRYGiuK57WzatNtVOzxA13Azzo9Vzti2hykehIxUGBJD6EfgC6GpEJkiQ SOpw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si2322357edw.260.2020.05.06.20.23.32; Wed, 06 May 2020 20:23:55 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727940AbgEGCeG (ORCPT + 99 others); Wed, 6 May 2020 22:34:06 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3873 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725799AbgEGCeG (ORCPT ); Wed, 6 May 2020 22:34:06 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C4A5C3702A39DD0C0203; Thu, 7 May 2020 10:34:03 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Thu, 7 May 2020 10:33:56 +0800 From: Samuel Zou To: , , CC: , , "Samuel Zou" Subject: [PATCH -next] drm/ast: Make ast_primary_plane_helper_atomic_update static Date: Thu, 7 May 2020 10:40:06 +0800 Message-ID: <1588819206-11406-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/gpu/drm/ast/ast_mode.c:564:6: warning: symbol 'ast_primary_plane_helper_atomic_update' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Samuel Zou --- drivers/gpu/drm/ast/ast_mode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 7062bcd..4ddf770 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -561,8 +561,9 @@ static int ast_primary_plane_helper_atomic_check(struct drm_plane *plane, return 0; } -void ast_primary_plane_helper_atomic_update(struct drm_plane *plane, - struct drm_plane_state *old_state) +static void +ast_primary_plane_helper_atomic_update(struct drm_plane *plane, + struct drm_plane_state *old_state) { struct ast_private *ast = plane->dev->dev_private; struct drm_plane_state *state = plane->state; -- 2.6.2